C# Class PocketCampus.Main.Services.LocationService

Locates the current user on Earth.
Inheritance: ILocationService
Datei anzeigen Open project: accandme/pocketcampus

Public Methods

Method Description
GetLocationAsync ( ) : GeoLocationStatus>>.Task

Asynchronously gets the user's location.

Private Methods

Method Description
Locator_PositionChanged ( Geolocator sender, PositionChangedEventArgs args ) : void

Occurs when the user's position changes.

Locator_StatusChanged ( Geolocator sender, StatusChangedEventArgs args ) : void

Occurs when the status of the GeoLocator changes.

OnError ( ) : void
OnIsEnabledChanged ( ) : void

Occurs when the LocationService is enabled or disabled.

OnLocationChanged ( GeoPosition location ) : void
OnReady ( ) : void
PositionFromCoordinate ( Geocoordinate coord ) : GeoPosition

Converts a Geocoordinate (Windows Phone) into a GeoPosition (PocketCampus).

Method Details

GetLocationAsync() public method

Asynchronously gets the user's location.
public GetLocationAsync ( ) : GeoLocationStatus>>.Task
return GeoLocationStatus>>.Task