Share via


PlatformLocationProvider Class

Definition

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.

Applies to