C# Class ApexLumia.Location

Afficher le fichier Open project: ApexHAB/apex-lumia Class Usage Examples

Méthodes publiques

Méthode Description
Location ( ) : System

Constructor: Creates the GeoCoordinateWatcher object, sets the Positioning accuracy, movement threshold and Event Handlers.

start ( ) : void

Starts the location service in a new thread.

stop ( ) : void

Stops the location service.

Private Methods

Méthode Description
startLocationService ( ) : void

Tries to start the location service.

watcherPositionChanged ( object sender, GeoPositionChangedEventArgs e ) : void

Event Handler: Called whenever the position changes and updates the class properties to the latest data.

watcherStatusChanged ( object sender, GeoPositionStatusChangedEventArgs e ) : void

Event Handler: Handles status change of location service.

Method Details

Location() public méthode

Constructor: Creates the GeoCoordinateWatcher object, sets the Positioning accuracy, movement threshold and Event Handlers.
public Location ( ) : System
Résultat System

start() public méthode

Starts the location service in a new thread.
public start ( ) : void
Résultat void

stop() public méthode

Stops the location service.
public stop ( ) : void
Résultat void