C# 클래스 Cimbalino.Phone.Toolkit.Services.LocationService

Represents an implementation of the ILocationService.
상속: LocationServiceBase, ILocationService
파일 보기 프로젝트 열기: Cimbalino/Cimbalino-Phone-Toolkit

공개 메소드들

메소드 설명
GetPosition ( Exception>.Action locationResult ) : void

Retrieves the current location.

GetPosition ( LocationServiceAccuracy desiredAccuracy, Exception>.Action locationResult ) : void

Retrieves the current location.

GetPosition ( LocationServiceAccuracy desiredAccuracy, System.TimeSpan maximumAge, System.TimeSpan timeout, Exception>.Action locationResult ) : void

Retrieves the current location.

GetPosition ( TimeSpan maximumAge, TimeSpan timeout, Exception>.Action locationResult ) : void

Retrieves the current location.

GetPositionAsync ( ) : Task

Starts an asynchronous operation to retrieve the current location.

GetPositionAsync ( LocationServiceAccuracy desiredAccuracy ) : Task

Starts an asynchronous operation to retrieve the current location.

GetPositionAsync ( LocationServiceAccuracy desiredAccuracy, TimeSpan maximumAge, TimeSpan timeout ) : Task

Starts an asynchronous operation to retrieve the current location.

GetPositionAsync ( TimeSpan maximumAge, TimeSpan timeout ) : Task

Starts an asynchronous operation to retrieve the current location.

LocationService ( ) : System

Initializes a new instance of the LocationService class.

Start ( ) : void

Starts the acquisition of data from the location service.

Start ( LocationServiceAccuracy desiredAccuracy ) : void

Starts the acquisition of data from the location service.

Start ( int desiredAccuracyInMeters ) : void

Starts the acquisition of data from the location service.

Stop ( ) : void

Stops the acquisition of data from the location service.

보호된 메소드들

메소드 설명
OnPositionChanged ( GeoPositionChangedEventArgs e ) : void

Processed the watcher GeoCoordinateWatcher.PositionChanged event.

OnStatusChanged ( GeoPositionStatusChangedEventArgs e ) : void

Processes the watcher GeoCoordinateWatcher.StatusChanged event.

비공개 메소드들

메소드 설명
GeolocatorPositionChanged ( Geolocator sender, PositionChangedEventArgs args ) : void
GeolocatorStatusChanged ( Geolocator sender, StatusChangedEventArgs args ) : void
RaisePositionChangedEvent ( ) : void
ReportTimerTick ( object sender, EventArgs e ) : void

메소드 상세

GetPosition() 공개 메소드

Retrieves the current location.
public GetPosition ( Exception>.Action locationResult ) : void
locationResult Exception>.Action The current location.
리턴 void

GetPosition() 공개 메소드

Retrieves the current location.
public GetPosition ( LocationServiceAccuracy desiredAccuracy, Exception>.Action locationResult ) : void
desiredAccuracy LocationServiceAccuracy The desired accuracy.
locationResult Exception>.Action The current location.
리턴 void

GetPosition() 공개 메소드

Retrieves the current location.
public GetPosition ( LocationServiceAccuracy desiredAccuracy, System.TimeSpan maximumAge, System.TimeSpan timeout, Exception>.Action locationResult ) : void
desiredAccuracy LocationServiceAccuracy The desired accuracy.
maximumAge System.TimeSpan The maximum acceptable age of cached location data.
timeout System.TimeSpan The timeout.
locationResult Exception>.Action The current location.
리턴 void

GetPosition() 공개 메소드

Retrieves the current location.
public GetPosition ( TimeSpan maximumAge, TimeSpan timeout, Exception>.Action locationResult ) : void
maximumAge TimeSpan The maximum acceptable age of cached location data.
timeout TimeSpan The timeout.
locationResult Exception>.Action The current location.
리턴 void

GetPositionAsync() 공개 메소드

Starts an asynchronous operation to retrieve the current location.
public GetPositionAsync ( ) : Task
리턴 Task

GetPositionAsync() 공개 메소드

Starts an asynchronous operation to retrieve the current location.
public GetPositionAsync ( LocationServiceAccuracy desiredAccuracy ) : Task
desiredAccuracy LocationServiceAccuracy The desired accuracy.
리턴 Task

GetPositionAsync() 공개 메소드

Starts an asynchronous operation to retrieve the current location.
public GetPositionAsync ( LocationServiceAccuracy desiredAccuracy, TimeSpan maximumAge, TimeSpan timeout ) : Task
desiredAccuracy LocationServiceAccuracy The desired accuracy.
maximumAge TimeSpan The maximum acceptable age of cached location data.
timeout TimeSpan The timeout.
리턴 Task

GetPositionAsync() 공개 메소드

Starts an asynchronous operation to retrieve the current location.
public GetPositionAsync ( TimeSpan maximumAge, TimeSpan timeout ) : Task
maximumAge TimeSpan The maximum acceptable age of cached location data.
timeout TimeSpan The timeout.
리턴 Task

LocationService() 공개 메소드

Initializes a new instance of the LocationService class.
public LocationService ( ) : System
리턴 System

OnPositionChanged() 보호된 메소드

Processed the watcher GeoCoordinateWatcher.PositionChanged event.
protected OnPositionChanged ( GeoPositionChangedEventArgs e ) : void
e GeoPositionChangedEventArgs The instance containing the event data.
리턴 void

OnStatusChanged() 보호된 메소드

Processes the watcher GeoCoordinateWatcher.StatusChanged event.
protected OnStatusChanged ( GeoPositionStatusChangedEventArgs e ) : void
e GeoPositionStatusChangedEventArgs The instance containing the event data.
리턴 void

Start() 공개 메소드

Starts the acquisition of data from the location service.
public Start ( ) : void
리턴 void

Start() 공개 메소드

Starts the acquisition of data from the location service.
public Start ( LocationServiceAccuracy desiredAccuracy ) : void
desiredAccuracy LocationServiceAccuracy The desired accuracy.
리턴 void

Start() 공개 메소드

Starts the acquisition of data from the location service.
public Start ( int desiredAccuracyInMeters ) : void
desiredAccuracyInMeters int The desired accuracy in meters for data returned from the location service.
리턴 void

Stop() 공개 메소드

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