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

Inheritance: LocationServiceBase
显示文件 Open project: Cimbalino/Cimbalino-Phone-Toolkit

Public Methods

Method Description
CurrentLocationHelper ( System.TimeSpan timeout, Exception>.Action actionToExecute ) : System
Start ( GeoPositionAccuracy desiredAccuracy ) : void
Stop ( ) : void

Protected Methods

Method Description
OnPositionChanged ( GeoPositionChangedEventArgs e ) : void
OnStatusChanged ( GeoPositionStatusChangedEventArgs e ) : void

Private Methods

Method Description
CheckCurrentState ( ) : void
CheckForLocationAvailable ( ) : void
TimerTick ( object sender, EventArgs e ) : void

Method Details

CurrentLocationHelper() public method

public CurrentLocationHelper ( System.TimeSpan timeout, Exception>.Action actionToExecute ) : System
timeout System.TimeSpan
actionToExecute Exception>.Action
return System

OnPositionChanged() protected method

protected OnPositionChanged ( GeoPositionChangedEventArgs e ) : void
e GeoPositionChangedEventArgs
return void

OnStatusChanged() protected method

protected OnStatusChanged ( GeoPositionStatusChangedEventArgs e ) : void
e GeoPositionStatusChangedEventArgs
return void

Start() public method

public Start ( GeoPositionAccuracy desiredAccuracy ) : void
desiredAccuracy GeoPositionAccuracy
return void

Stop() public method

public Stop ( ) : void
return void