IGeoPositionWatcher<T>.TryStart(Boolean, TimeSpan) 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.
Start acquiring location data, specifying an initialization timeout. This method returns synchronously.
public:
bool TryStart(bool suppressPermissionPrompt, TimeSpan timeout);
public bool TryStart (bool suppressPermissionPrompt, TimeSpan timeout);
abstract member TryStart : bool * TimeSpan -> bool
Public Function TryStart (suppressPermissionPrompt As Boolean, timeout As TimeSpan) 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.
- timeout
- TimeSpan
Time in milliseconds to wait for initialization to complete.
Returns
true
if succeeded, false
if timed out.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για