Class GeoLocationModule
Inheritance
GeoLocationModule
Syntax
public class GeoLocationModule : ScriptableSettings<GeoLocationModule>, IModuleDependency<MARSDatabase>, IModuleDependency<SlowTaskModule>, IModuleBuildCallbacks
Fields
MaxLatitude
Declaration
public const float MaxLatitude = null
Field Value
MaxLongitude
Declaration
public const float MaxLongitude = null
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
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
Events
GeoLocationChanged
Declaration
public event Action<GeographicCoordinate> GeoLocationChanged
Event Type