Namespaces
Variants
Actions
(Difference between revisions)

Archived:Location Settings Launch Symbian API

Jump to: navigation, search
m (Automated change of text from {{NoteS}} to {{Note|. (using newer note template))
m (Hamishwillee - Bot change of template (Template:CodeSnippet) - now using Template:ArticleMetaData)
Line 3: Line 3:
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
{{KBCS}}
 
{{KBCS}}
{{CodeSnippet
+
{{ArticleMetaData
 
|id=CS001035
 
|id=CS001035
 
|platform=S60 3rd Edition, FP2
 
|platform=S60 3rd Edition, FP2
Line 11: Line 11:
 
|creationdate=June 13, 2008
 
|creationdate=June 13, 2008
 
|keywords=Location Settings Launch API
 
|keywords=Location Settings Launch API
 +
 +
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
 +
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 +
|sdk=<!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
 +
|devicecompatability=<!-- Compatible devices (e.g.: All* (must have GPS) ) -->
 +
|signing=<!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
 +
|capabilities=<!-- Capabilities required (e.g. Location, NetworkServices. -->)
 +
|author=[[User:Technical writer 1]]
 
}}
 
}}
  

Revision as of 11:31, 24 June 2011

Template:KBCS

Article Metadata

Compatibility
Platform(s): S60 3rd Edition, FP2

Platform Security
Capabilities: )

Article
Keywords: Location Settings Launch API
Created: User:Technical writer 1 (13 Jun 2008)
Last edited: hamishwillee (24 Jun 2011)


Note.png
Note: :This API is not part of the public SDK. It can be found in the SDK API Plug-in.

Purpose

The Location Settings Launch API is used for launching the Location Notation Prefences Settings UI and the Position Method Settings UI.

Header files

 locsettingsuiclient.h

Link against

 locsettingsuiclient.lib


Code examples

The client-side resource class to launch the Location settings UI is done using the CLocSettingsUiClient class. The following code is used to initialize the class.

 CLocSettingsUiClient* iLocSettingsUi = CLocSettingsUiClient::NewL();

Launching the Position Method Settings UI:

 // UID for launching Position Method Settings 
// const TInt KLocPsySettingsUID = 0x10275062;
TRAPD(err, iLocSettingsUi->LaunchSettingsUiAsEmbeddedAppL(TUid::Uid
(KLocPsySettingsUID),KDefaultParamValue,iStatus));

Launching the Location Notation Preferences Setting UI:

 // UID for launching Location Notation Prefences Settings UI is 
// const TInt KLocNotPrefSettingsUID = 0x1020690F;
TRAPD(err, iLocSettingsUi->LaunchSettingsUiAsEmbeddedAppL(
TUid::Uid(KLocNotPrefSettingsUID), KDefaultParamValue, iStatus ));

Canceling an already launched settings UI:

 iLocSettingsUi->CancelLaunchedSettingsUi();

Releasing code:

 delete iLocSettingsUi;


Example project

File:LocalSettingUi.zip

507 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved