Method | Description | |
---|---|---|
GetPosition ( Exception>.Action |
Retrieves the current location.
|
|
GetPosition ( LocationServiceAccuracy desiredAccuracy, Exception>.Action |
Retrieves the current location.
|
|
GetPosition ( LocationServiceAccuracy desiredAccuracy, System.TimeSpan maximumAge, System.TimeSpan timeout, Exception>.Action |
Retrieves the current location.
|
|
GetPosition ( TimeSpan maximumAge, TimeSpan timeout, Exception>.Action |
Retrieves the current location.
|
|
GetPositionAsync ( ) : Task |
Starts an asynchronous operation to retrieve the current location.
|
|
GetPositionAsync ( LocationServiceAccuracy desiredAccuracy ) : Task |
Starts an asynchronous operation to retrieve the current location.
|
|
GetPositionAsync ( LocationServiceAccuracy desiredAccuracy, TimeSpan maximumAge, TimeSpan timeout ) : Task |
Starts an asynchronous operation to retrieve the current location.
|
|
GetPositionAsync ( TimeSpan maximumAge, TimeSpan timeout ) : Task |
Starts an asynchronous operation to retrieve the current location.
|
|
LocationService ( ) : System |
Initializes a new instance of the LocationService class.
|
|
Start ( ) : void |
Starts the acquisition of data from the location service.
|
|
Start ( LocationServiceAccuracy desiredAccuracy ) : void |
Starts the acquisition of data from the location service.
|
|
Start ( int desiredAccuracyInMeters ) : void |
Starts the acquisition of data from the location service.
|
|
Stop ( ) : void |
Stops the acquisition of data from the location service.
|
Method | Description | |
---|---|---|
OnPositionChanged ( GeoPositionChangedEventArgs |
Processed the watcher GeoCoordinateWatcher.PositionChanged event.
|
|
OnStatusChanged ( GeoPositionStatusChangedEventArgs e ) : void |
Processes the watcher GeoCoordinateWatcher.StatusChanged event.
|
Method | Description | |
---|---|---|
GeolocatorPositionChanged ( Geolocator sender, PositionChangedEventArgs args ) : void | ||
GeolocatorStatusChanged ( Geolocator sender, StatusChangedEventArgs args ) : void | ||
RaisePositionChangedEvent ( ) : void | ||
ReportTimerTick ( object sender, EventArgs e ) : void |
public GetPosition ( Exception>.Action |
||
locationResult | Exception>.Action | The current location. |
return | void |
public GetPosition ( LocationServiceAccuracy desiredAccuracy, Exception>.Action |
||
desiredAccuracy | LocationServiceAccuracy | The desired accuracy. |
locationResult | Exception>.Action | The current location. |
return | void |
public GetPosition ( LocationServiceAccuracy desiredAccuracy, System.TimeSpan maximumAge, System.TimeSpan timeout, Exception>.Action |
||
desiredAccuracy | LocationServiceAccuracy | The desired accuracy. |
maximumAge | System.TimeSpan | The maximum acceptable age of cached location data. |
timeout | System.TimeSpan | The timeout. |
locationResult | Exception>.Action | The current location. |
return | void |
public GetPosition ( TimeSpan maximumAge, TimeSpan timeout, Exception>.Action |
||
maximumAge | TimeSpan | The maximum acceptable age of cached location data. |
timeout | TimeSpan | The timeout. |
locationResult | Exception>.Action | The current location. |
return | void |
public GetPositionAsync ( LocationServiceAccuracy desiredAccuracy ) : Task |
||
desiredAccuracy | LocationServiceAccuracy | The desired accuracy. |
return | Task |
public GetPositionAsync ( LocationServiceAccuracy desiredAccuracy, TimeSpan maximumAge, TimeSpan timeout ) : Task |
||
desiredAccuracy | LocationServiceAccuracy | The desired accuracy. |
maximumAge | TimeSpan | The maximum acceptable age of cached location data. |
timeout | TimeSpan | The timeout. |
return | Task |
public GetPositionAsync ( TimeSpan maximumAge, TimeSpan timeout ) : Task |
||
maximumAge | TimeSpan | The maximum acceptable age of cached location data. |
timeout | TimeSpan | The timeout. |
return | Task |
protected OnPositionChanged ( GeoPositionChangedEventArgs |
||
e | GeoPositionChangedEventArgs |
The |
return | void |
protected OnStatusChanged ( GeoPositionStatusChangedEventArgs e ) : void | ||
e | GeoPositionStatusChangedEventArgs | The |
return | void |
public Start ( LocationServiceAccuracy desiredAccuracy ) : void | ||
desiredAccuracy | LocationServiceAccuracy | The desired accuracy. |
return | void |
public Start ( int desiredAccuracyInMeters ) : void | ||
desiredAccuracyInMeters | int | The desired accuracy in meters for data returned from the location service. |
return | void |