Description
Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts
TheLocationBookmarks API provides facilities
for working with location bookmarks. A location bookmark
associates a name with a metaverse address.
Methods
| Name | Return Value | Summary |
|---|---|---|
addBookmark
|
None |
Prompts the user to bookmark their current location. The user can specify the name of the bookmark in the dialog that is opened. |
deleteBookmark
|
None |
Prompts the user to delete a bookmark. The user can select the bookmark to delete in the dialog that is opened. |
getAddress
|
string |
Gets the metaverse address associated with a bookmark. |
getHomeLocationAddress
|
string |
Gets the metaverse address associated with the "Home" bookmark. |
setHomeLocationToAddress
|
None |
Sets the metaverse address associated with the "Home" bookmark. |
Method Details
| (static) addBookmark( ) |
|---|
|
Prompts the user to bookmark their current location. The user can specify the name of the bookmark in the dialog that is opened. |
| (static) deleteBookmark( ) |
|---|
|
Prompts the user to delete a bookmark. The user can select the bookmark to delete in the dialog that is opened. |
|
(static)
getAddress( bookmarkName
) →
{string}
Returns: The metaverse address for the bookmark. If the bookmark does not exist, "" is returned.
|
||||||
|---|---|---|---|---|---|---|
|
Gets the metaverse address associated with a bookmark. Parameters
ExampleReport the "Home" bookmark's metaverse address.
|
|
(static)
getHomeLocationAddress(
) →
{string}
Returns: The metaverse address for the "Home" bookmark. |
|---|
|
Gets the metaverse address associated with the "Home" bookmark. |
| (static) setHomeLocationToAddress( address ) | ||||||
|---|---|---|---|---|---|---|
|
Sets the metaverse address associated with the "Home" bookmark. Parameters
|
