C# Class ApexLumia.Location

Show file Open project: ApexHAB/apex-lumia Class Usage Examples

Public Methods

Method 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

Method 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 method

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

start() public method

Starts the location service in a new thread.
public start ( ) : void
return void

stop() public method

Stops the location service.
public stop ( ) : void
return void