×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Location Settings Launch Symbian API

From Nokia Developer Wiki
Jump to: navigation, search
debjit.roy (Talk | contribs)
(Debjit.roy -)
hamishwillee (Talk | contribs)
Line 1: Line 1:
[[Category:Symbian C++]][[Category:S60 3rd Edition, Feature Pack 2]][[Category:Code Examples]][[Category:Code Snippet]]
+
[[Category:Symbian C++]][[Category:S60 3rd Edition FP2]][[Category:Code Examples]][[Category:Code Snippet]]
 
__NOTOC__
 
__NOTOC__
 
__NOEDITSECTION__
 
__NOEDITSECTION__

Revision as of 08:04, 9 May 2012

Template:KBCS

Article Metadata
Compatibility
Platform(s): S60 3rd Edition, FP2
S60 3rd Edition FP2
Platform Security
Capabilities: )
Article
Keywords: Location Settings Launch API
Created: User:Technical writer 1 (13 Jun 2008)
Last edited: hamishwillee (09 May 2012)


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

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

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

108 page views in the last 30 days.
×