LocationService Class |
Namespace: Cimbalino.Toolkit.Services
public class LocationService : ILocationService
The LocationService type exposes the following members.
Name | Description | |
---|---|---|
LocationService |
Initializes a new instance of the LocationService class.
|
Name | Description | |
---|---|---|
DesiredAccuracy |
Gets the accuracy level at which the location service provides location updates.
| |
DesiredAccuracyInMeters |
Gets the desired accuracy in meters for data returned from the location service.
| |
MovementThreshold |
Gets or sets the distance of movement, in meters, relative to the coordinate from the last PositionChanged event, that is required for the location service to raise a PositionChanged event.
| |
ReportInterval |
Gets or sets the requested minimum time interval between location updates, in milliseconds. If your application requires updates infrequently, set this value so that the location provider can conserve power by calculating location only when needed.
| |
Status |
Gets the status that indicates the ability of the location service to provide location updates.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetPositionAsync |
Starts an asynchronous operation to retrieve the current location.
| |
GetPositionAsync(LocationServiceAccuracy) |
Starts an asynchronous operation to retrieve the current location.
| |
GetPositionAsync(TimeSpan, TimeSpan) |
Starts an asynchronous operation to retrieve the current location.
| |
GetPositionAsync(LocationServiceAccuracy, TimeSpan, TimeSpan) |
Starts an asynchronous operation to retrieve the current location.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RaisePositionChanged |
Raises the PositionChanged event with the provided event data.
| |
RaiseStatusChanged |
Raises the StatusChanged event with the provided event data.
| |
Start |
Starts the acquisition of data from the location service.
| |
Start(Int32) |
Starts the acquisition of data from the location service.
| |
Start(LocationServiceAccuracy) |
Starts the acquisition of data from the location service.
| |
Stop |
Stops the acquisition of data from the location service.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
PositionChanged |
Occurs when the location service detects a change in position.
| |
StatusChanged |
Occurs when the status of the location service changes.
|
Name | Description | |
---|---|---|
AddEventHandler |
Adds an event handler to an event source.
(Defined by ObjectExtensions.) | |
GetPropertyValue(String) | Overloaded.
Searches for the public property with the specified name and gets its value.
(Defined by ObjectExtensions.) | |
GetPropertyValueTObject(String) | Overloaded.
Searches for the public property with the specified name and gets its value.
(Defined by ObjectExtensions.) | |
InvokeMethod(String, Object) | Overloaded.
Searches for the public method with the specified name and invokes it using the specified parameters.
(Defined by ObjectExtensions.) | |
InvokeMethodTObject(String, Object) | Overloaded.
Searches for the public method with the specified name and invokes it using the specified parameters, returning the result.
(Defined by ObjectExtensions.) | |
RemoveEventHandler |
Removes an event handler from an event source.
(Defined by ObjectExtensions.) | |
SetPropertyValueTObject |
Searches for the public property with the specified name and sets its value.
(Defined by ObjectExtensions.) |