IGeoPositionWatcher<T>.Start Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initiate the acquisition of location data.
Overloads
Start() |
Initiate the acquisition of location data. |
Start(Boolean) |
Start acquiring location data, specifying whether or not to suppress prompting for permissions. This method returns synchronously. |
Start()
Initiate the acquisition of location data.
public:
void Start();
public void Start ();
abstract member Start : unit -> unit
Public Sub Start ()
Applies to
Start(Boolean)
Start acquiring location data, specifying whether or not to suppress prompting for permissions. This method returns synchronously.
public:
void Start(bool suppressPermissionPrompt);
public void Start (bool suppressPermissionPrompt);
abstract member Start : bool -> unit
Public Sub Start (suppressPermissionPrompt As Boolean)
Parameters
- suppressPermissionPrompt
- Boolean
If true
, do not prompt the user to enable location providers and only start if location data is already enabled.
If false
, a dialog box may be displayed to prompt the user to enable location sensors that are disabled.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för