Class PlatformLocationProvider

Declaration

struct winrt::Microsoft::Azure::SpatialAnchors::PlatformLocationProvider

Description

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.

Methods

GetLocationEstimate

Returns the latest estimate of the device's location.

winrt::Microsoft::Azure::SpatialAnchors::GeoLocation GetLocationEstimate();

Returns

  • winrt::Microsoft::Azure::SpatialAnchors::GeoLocation

Start

Start tracking the device's location.

void Start();

Stop

Stop tracking the device's location.

void Stop();

Properties

BluetoothStatus

Checks whether sufficient sensor data is available to locate or create anchors tagged with Bluetooth signals.

winrt::Microsoft::Azure::SpatialAnchors::BluetoothStatusResult BluetoothStatus();

GeoLocationStatus

Checks whether sufficient sensor data is available to locate or create anchors tagged with geolocation.

winrt::Microsoft::Azure::SpatialAnchors::GeoLocationStatusResult GeoLocationStatus();

Sensors

The sensors used by the session to locate anchors around you and annotate created anchors so that they can be found. On HoloLens and iOS, enabling a sensor for the first time will prompt the user for the necessary permissions. On Android, you need to obtain the relevant permission before enabling a sensor.

winrt::Microsoft::Azure::SpatialAnchors::SensorCapabilities Sensors();

WifiStatus

Checks whether sufficient sensor data is available to locate or create anchors tagged with Wi-Fi signals.

winrt::Microsoft::Azure::SpatialAnchors::WifiStatusResult WifiStatus();