PlatformLocationProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Use this class to get an estimate of the current location of your device. A PlatformLocationProvider is typically passed to a CloudSpatialAnchorSession to enable large-scale relocalization scenario with Coarse Relocalization.
public class PlatformLocationProvider
type PlatformLocationProvider = class
Public Class PlatformLocationProvider
- Inheritance
-
PlatformLocationProvider
Constructors
PlatformLocationProvider() |
Initializes a new instance with all sensors disabled. |
PlatformLocationProvider(IntPtr, Boolean) |
Properties
BluetoothStatus |
Checks whether sufficient sensor data is available to locate or create anchors tagged with Bluetooth signals. |
GeoLocationStatus |
Checks whether sufficient sensor data is available to locate or create anchors tagged with geolocation. |
Sensors |
The sensors used by the session to locate anchors around you and annotate created anchors so that they can be found. |
WifiStatus |
Checks whether sufficient sensor data is available to locate or create anchors tagged with Wi-Fi signals. |
Methods
ConvertCookieToHandle(UInt64) | |
ConvertHandleToCookie(IntPtr) | |
Finalize() | |
GetLocationEstimate() |
Returns the latest estimate of the device's location. |
Start() |
Start tracking the device's location. |
Stop() |
Stop tracking the device's location. |