Landmarks UI Selector APIChanges in Landmarks UI Selector API Specification documentation
Changes in Virtual Phonebook View Definition API
PurposeThe purpose of Landmarks UI Selector API is to provide UI components to applications for listing and selecting one or more landmarks or categories, which exist in the landmark database. This interface allows displaying a dialog for the user to list landmarks or categories , to select landmarks or categories and return the IDs of the selected items. DependenciesLandmarks UI Selector API internally utilizes:
API descriptionLandmarks UI Selector API is typically used by applications that need to provide landmarks/categories listing or selection functionality that exist in the landmarks database. The following are snap-shots of single and multiple landmarks selector dialogs.
The following are snap-shots of single and multiple categories selector dialogs.
Use casesThe main use cases of Landmarks UI Selector API are as follows
API class structureThis section describes the Landmarks UI Selector API class structure.
Landmarks UI Selector API consists of the classes
The
The
The
Related APIs
Using Landmarks UI Selector APILaunching a single landmark selector dialog
The client can use this API to launch a dialog that allows the end-user
to select one landmark from a list of landmarks. The single landmark selector
dialog is launched by creating an instance of
Once the user selects a landmark and confirms (by pressing "ok" ) the dialog
is closed and the selected landmark's Id and database handle can be retrieved
by the client application using
The client can set its view or AppUI as the parent object of the landmark
\ category selector dialog, thereby creating a network of object providers
using the
Following diagram illustrates steps involved in launching a single landmark selector dialog and retrieving the selected landmark's Id and database handle after user's selection. The following code snippet shows launching of single landmark selector dialog.
Related APIs
Launching a multiple landmark selector dialog
The client can do this by creating an object of
While launching the dialog , the client can also set some landmarks to
be shown as already pre-selected and this is done by adding the landmark Ids
of such landmarks to the same array of
The following diagram illustrates steps involved in launching a multiple landmark selector dialog. The landmarks that are sent while launching the dialog are shown as pre-selected. Following code snippet shows launching of multiple landmark selector dialog.
Related APIs
Launching a single category selector dialog
The client can use this API to launch a dialog that allows the end-user
to select one category from a list of categories. The single category selector
dialog is launched by creating an instance of the
Rest of the usage of Single category selector is same as the single landmark selector described above. The following diagram illustrates steps involved in launching a single category selector dialog.
Related APIs
Launching a multiple category selector dialog
The client can launch a multiple category selector dialog by creating an
object of
While launching the dialog , client can also set some categories to be
shown as already pre-selected and this is done by adding the category Ids
of such categories to the same array of
Following diagram illustrates steps involved in launching a multiple category selector dialog. The categories that are sent while launching the dialog are shown as pre-selected.
Related APIs
Error handlingLandmark UI Selector API uses the standard Symbian error reporting mechanism. The errors are reported through leaves GlossaryAbbreviations
Definitions
|