LocationBookmarks

Description

Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts

The LocationBookmarks API provides facilities for working with location bookmarks. A location bookmark associates a name with a directory services 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 directory services address associated with a bookmark.

getHomeLocationAddress string

Gets the directory services address associated with the "Home" bookmark.

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) 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

Name Type Description
bookmarkName string

Name of the bookmark to get the directory services address for (case sensitive).

Example

Report the "Home" bookmark's directory services address.

print("Home bookmark's address: " + LocationBookmarks.getAddress("Home"));
(static) getHomeLocationAddress( ) → {string}
Returns: The directory services address for the "Home" bookmark.

Gets the directory services address associated with the "Home" bookmark.

(static) setHomeLocationToAddress( address )

Sets the directory services address associated with the "Home" bookmark.

Parameters

Name Type Description
address string

The directory services address to set the "Home" bookmark to.