C# Class Cimbalino.Phone.Toolkit.Services.LocationServiceBase

Base class for device location capabilities.
Show file Open project: Cimbalino/Cimbalino-Phone-Toolkit

Public Methods

Method Description
Stop ( ) : void

Stops the acquisition of data from the location service.

Protected Methods

Method Description
OnPositionChanged ( GeoPositionChangedEventArgs e ) : void

Invoked when the location service detects a change in position.

OnStatusChanged ( GeoPositionStatusChangedEventArgs e ) : void

Invoked when the status of the location service changes.

Private Methods

Method Description
GeoCoordinateWatcherPositionChanged ( object sender, GeoPositionChangedEventArgs e ) : void
GeoCoordinateWatcherStatusChanged ( object sender, GeoPositionStatusChangedEventArgs e ) : void
Start ( GeoPositionAccuracy desiredAccuracy, double movementThreshold ) : void

Method Details

OnPositionChanged() protected abstract method

Invoked when the location service detects a change in position.
protected abstract OnPositionChanged ( GeoPositionChangedEventArgs e ) : void
e GeoPositionChangedEventArgs The instance containing the event data.
return void

OnStatusChanged() protected abstract method

Invoked when the status of the location service changes.
protected abstract OnStatusChanged ( GeoPositionStatusChangedEventArgs e ) : void
e GeoPositionStatusChangedEventArgs The instance containing the event data.
return void

Stop() public method

Stops the acquisition of data from the location service.
public Stop ( ) : void
return void