Show / Hide Table of Contents

Class DeviceLocationProvider

The DeviceLocationProvider is responsible for providing real world location and heading data, served directly from native hardware and OS. This relies on Unity's LocationService for location and Compass for heading.

Inheritance
MonoBehaviour
AbstractLocationProvider
DeviceLocationProvider
Inherited Members
AbstractLocationProvider._currentLocation
AbstractLocationProvider.CurrentLocation
AbstractLocationProvider.OnLocationUpdated
AbstractLocationProvider.SendLocation(Location)
Namespace:Mapbox.Unity.Location
Assembly:cs.temp.dll.dll
Syntax
public class DeviceLocationProvider : AbstractLocationProvider, ILocationProvider

Fields

_desiredAccuracyInMeters

Using higher value like 500 usually does not require to turn GPS chip on and thus saves battery power. Values like 5-10 could be used for getting best accuracy.

Declaration
public float _desiredAccuracyInMeters
Field Value
Type Description
System.Single

_deviceOrientationSmoothing

Declaration
public AngleSmoothingAbstractBase _deviceOrientationSmoothing
Field Value
Type Description
AngleSmoothingAbstractBase

_editorDebuggingOnly

Declaration
public DeviceLocationProvider.DebuggingInEditor _editorDebuggingOnly
Field Value
Type Description
DeviceLocationProvider.DebuggingInEditor

_updateDistanceInMeters

The minimum distance (measured in meters) a device must move laterally before Input.location property is updated. Higher values like 500 imply less overhead.

Declaration
public float _updateDistanceInMeters
Field Value
Type Description
System.Single

_updateTimeInMilliSeconds

Declaration
public long _updateTimeInMilliSeconds
Field Value
Type Description
System.Int64

_userHeadingSmoothing

Declaration
public AngleSmoothingAbstractBase _userHeadingSmoothing
Field Value
Type Description
AngleSmoothingAbstractBase

Methods

Awake()

Declaration
protected virtual void Awake()
Back to top © 2017 Mapbox