High Fidelity API Reference
Tools Used: JavaScript, JSDoc, GitHub Pages, Markdown, HTML, CSS
AvatarBookmarks
The AvatarBookmarks API provides facilities for working with avatar bookmarks ("favorites" in the Avatar app). An avatar bookmark associates a name with an avatar model, scale, and avatar entities (wearables).
Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts
Methods
| Name | Return Value | Summary |
|---|---|---|
None | Adds a new (or updates an existing) avatar bookmark with your current avatar model, scale, and avatar entities. | |
None | Performs no action. Deprecated: This function is deprecated and will be removed. | |
AvatarBookmarks.BookmarkData | Object | Gets the details of an avatar bookmark. | |
Object.<string, AvatarBookmarks.BookmarkData> | Gets the details of all avatar bookmarks. | |
None | Loads an avatar bookmark, setting your avatar model, scale, and avatar entities (or attachments if an old bookmark) to those in the bookmark. | |
None | Deletes an avatar bookmark. | |
None | Updates an existing bookmark with your current avatar model, scale, and wearables. No action is taken if the bookmark doesn't exist. | |
None | Updates the avatar entities and their properties. Current avatar entities not included in the list provided are deleted. Deprecated: This function is deprecated and will be removed. Use the MyAvatar API instead. |
Signals
| Name | Summary |
|---|---|
Triggered when a new avatar bookmark is added or an existing avatar bookmark is updated with the addBookmark method. | |
Triggered when an avatar bookmark is deleted. | |
Triggered when an avatar bookmark is loaded, setting your avatar model, scale, and avatar entities (or attachments if an old bookmark) to those in the bookmark. |
Type Definitions
BookmarkDataBookmarkData Type: object | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Details of an avatar bookmark. Properties
|
Method Details
addBookmark(static) addBookmark( bookmarkName ) | ||||||
|---|---|---|---|---|---|---|
Adds a new (or updates an existing) avatar bookmark with your current avatar model, scale, and avatar entities. Parameters
Add a new avatar bookmark and report the bookmark data |
deleteBookmark(static) deleteBookmark( ) |
|---|
Performs no action. Deprecated: This function is deprecated and will be removed. |
(static) getBookmark( bookmarkName ) → { AvatarBookmarks.BookmarkData|Object } Returns: The bookmark data if the bookmark exists, | ||||||
|---|---|---|---|---|---|---|
Gets the details of an avatar bookmark. Parameters
|
getBookmarks(static) getBookmarks( ) → { Object.<string, AvatarBookmarks.BookmarkData> } Returns: The current avatar bookmarks in an object where the keys are the bookmark names and the values are the bookmark details. |
|---|
Gets the details of all avatar bookmarks. Example: List the names and URLs of all the avatar bookmarks |
loadBookmarks(static) loadBookmark( bookmarkName ) | ||||||
|---|---|---|---|---|---|---|
Loads an avatar bookmark, setting your avatar model, scale, and avatar entities (or attachments if an old bookmark) to those in the bookmark. Parameters
|
removeBookmark(static) removeBookmark( bookmarkName ) | ||||||
|---|---|---|---|---|---|---|
Deletes an avatar bookmark. Parameters
|
saveBookmark(static) saveBookmark( bookmarkName ) | ||||||
|---|---|---|---|---|---|---|
Updates an existing bookmark with your current avatar model, scale, and wearables. No action is taken if the bookmark doesn't exist. Parameters
|
updateAvatarEntities(static) updateAvatarEntities( avatarEntities ) |
|---|
Updates the avatar entities and their properties. Current avatar entities not included in the list provided are deleted. Deprecated: This function is deprecated and will be removed. Use the MyAvatar API instead. |
Signal Details
bookmarkAddedbookmarkAdded( bookmarkName ) Returns: Signal | ||||||
|---|---|---|---|---|---|---|
Triggered when a new avatar bookmark is added or an existing avatar bookmark is updated, using addBookmark. Parameters
|
bookmarkDeletedbookmarkDeleted( bookmarkName ) Returns: Signal | ||||||
|---|---|---|---|---|---|---|
Triggered when an avatar bookmark is deleted. Parameters
Example: Report when a bookmark is deleted |
bookmarkLoadedbookmarkLoaded( bookmarkName ) Returns: Signal | ||||||
|---|---|---|---|---|---|---|
Triggered when an avatar bookmark is loaded, setting your avatar model, scale, and avatar entities (or attachments if an old bookmark) to those in the bookmark. Parameters
|