IGpsManager Interface

Namespace
Shiny.Locations
Implementing Types
graph BT Type["IGpsManager"] class Type type-node Implementing0["TestGpsManager"]-.->Type click Implementing0 "/api/Shiny.Testing.Locations/TestGpsManager"

Syntax

public interface IGpsManager

Properties

Name Value Summary
IsListening bool
If the device is currently listening to GPS broadcasts

Methods

Name Value Summary
GetCurrentStatus(bool) AccessState
The current status of the GPS manager
GetLastReading() IObservable<IGpsReading>
Gets the last reading - will also try to get access if you have not used RequestAccess, if access is not granted, this will throw an exception
RequestAccess(bool) Task<AccessState>
Request access to use GPS hardware
StartListener(GpsRequest) Task
Start the GPS listener
StopListener() Task
Stop the GPS listener
WhenAccessStatusChanged(bool) IObservable<AccessState>
Observes changes in the access state
WhenReading() IObservable<IGpsReading>
Hook to the GPS events - useful for front ends ONLY. If you need background operations, register the delegate

Extension Methods

Name Value Summary
GetPropertyInfo<IGpsManager, TRet>(Expression<Func<IGpsManager, TRet>>) PropertyInfo
Reflects out property information based on the expression value
ReflectGet(string) object
Gets an objects property dynamically through reflection - will throw an exception if proper has no getter or property does not exists
ReflectGet<IGpsManager, TReturn>(Expression<Func<IGpsManager, TReturn>>) TReturn
Gets an objects property dynamically through reflection - will throw an exception if proper has no getter or property does not exists
ReflectSet(string, object) void
Sets an objects property dynamically through reflection - will throw an exception if proper has no setter, wrong type, or property does not exists
RequestAccessAndStart(GpsRequest) Task<AccessState>
GitHub