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 directory services address.
Note: This is a protected API and it is only available to scripts with the appropriate permissions. Without them, the functions in this namespace won't do anything and will return empty values.
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. |
addBookmark
|
None |
Adds a new bookmark or replaces an existing one. |
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 directory services address associated with a bookmark. |
getBookmarks
|
object |
Gets the details of all bookmarks. |
getHomeLocationAddress
|
string |
Gets the directory services address associated with the "Home" bookmark. |
removeBookmark
|
None |
Deletes a bookmark, if it exists. |
setHomeLocationToAddress
|
None |
Sets the directory services 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) addBookmark( name, url ) | |||||||||
|---|---|---|---|---|---|---|---|---|---|
|
Adds a new bookmark or replaces an existing one. Parameters
|
| (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 directory services address for the bookmark. If the bookmark does not exist, "" is returned.
|
||||||
|---|---|---|---|---|---|---|
|
Gets the directory services address associated with a bookmark. Parameters
ExampleReport the "Home" bookmark's directory services address.
|
|
(static) getBookmarks( ) → {object}
Returns: The current bookmarks in an object where the keys are the bookmark names and the values are the bookmark URLs. |
|---|
|
Gets the details of all bookmarks. ExampleList the names and URLs of all the bookmarks.
|
|
(static) getHomeLocationAddress( ) → {string}
Returns: The directory services address for the "Home" bookmark. |
|---|
|
Gets the directory services address associated with the "Home" bookmark. |
| (static) removeBookmark( name ) | ||||||
|---|---|---|---|---|---|---|
|
Deletes a bookmark, if it exists. Parameters
|
| (static) setHomeLocationToAddress( address ) | ||||||
|---|---|---|---|---|---|---|
|
Sets the directory services address associated with the "Home" bookmark. Parameters
|
