Device Library¶
Gives logic access to features of the device it runs on. Today that is the location, through DeviceLib.Sensors.GetLocationInfo(). Device features are available only where the application runs on a device, such as the React Native strategy.
Sensors¶
Description¶
Contains methods that access Device's sensors
Methods¶
GetLocationInfo()¶
Description
Gets Location info from Device's sensors.
Return Type : DeviceLib.LocationInfo
Static : Yes
Namespace : DeviceLib.Sensors
LocationInfo¶
Properties¶
| Name | Data Type | Static | Readonly | Description |
|---|---|---|---|---|
| Latitude | double | No | No | The atitude in degrees |
| Longitude | double | No | No | The longitude in degrees |
| Altitude | double | No | No | The altitude in meters above the WGS 84 reference ellipsoid. Can be null if it's not available |
| Accuracy | double | No | No | The radius of uncertainty for the location, measured in meters. Can be null if it's not available |
| AltitudeAccuracy | double | No | No | The accuracy of the altitude value, in meters. Can be null if it's not available. |
| Heading | double | No | No | Horizontal direction of travel of this device, measured in degrees starting at due north and |
| continuing clockwise around the compass. Thus, north is 0 degrees, east is 90 degrees, south is | ||||
180 degrees, and so on. Can be null if it's not available |
||||
| Speed | double | No | No | The instantaneous speed of the device in meters per second. Can be null if it's not available |