Class GeoLocationModule
Inheritance
GeoLocationModule
Syntax
public class GeoLocationModule : ScriptableSettings<GeoLocationModule>, IModuleDependency<MARSDatabase>, IModuleDependency<SlowTaskModule>, IModule
Fields
MaxLatitude
Declaration
public const float MaxLatitude = 90F
Field Value
MaxLongitude
Declaration
public const float MaxLongitude = 180F
Field Value
Properties
continuousUpdates
When enabled, the location service will continue to poll for updates after acquiring initial location
Declaration
public bool continuousUpdates { get; set; }
Property Value
Methods
ConnectDependency(MARSDatabase)
Declaration
public void ConnectDependency(MARSDatabase dependency)
Parameters
Implements
ConnectDependency(SlowTaskModule)
Declaration
public void ConnectDependency(SlowTaskModule dependency)
Parameters
Implements
LoadModule()
Declaration
Implements
SetCurrentLocationAndUpdateTrait(GeographicCoordinate)
Given a GeographicCoordinate, immediately update the GeoLocationModule and MARS database with it
Declaration
public void SetCurrentLocationAndUpdateTrait(GeographicCoordinate location)
Parameters
TryGetGeoLocation(out GeographicCoordinate)
Declaration
public bool TryGetGeoLocation(out GeographicCoordinate coordinate)
Parameters
Returns
TryStartService()
Declaration
public bool TryStartService()
Returns
UnloadModule()
Declaration
public void UnloadModule()
Implements
Events
GeoLocationChanged
Declaration
public event Action<GeographicCoordinate> GeoLocationChanged
Event Type