次の方法で共有


Class SensorCapabilities

Declaration

struct winrt::Microsoft::Azure::SpatialAnchors::SensorCapabilities

Description

Use this class to give the session access to sensors to help find anchors around you. This is typically used by a PlatformLocationProvider to configure sensors. Refer to Coarse Relocalization to learn more about sensors and platforms.

Properties

BluetoothEnabled

Whether to use Bluetooth signals to find anchors and improve the locatability of existing anchors. Make sure that you also set KnownBeaconProximityUuids when enabling Bluetooth. Enabling this option requires extra permissions on each platform: * Android: Declare BLUETOOTH_ADMIN, BLUETOOTH and ACCESS_COARSE_LOCATION in AndroidManifest.xml and obtain the permissions at run-time by calling ActivityCompat.requestPermissions(). * HoloLens: Add the "bluetooth" capability to your app's package manifest. * iOS: Add the "Privacy - Location When In Use Usage Description" key to Info.plist with a short description of what the permission is for.

bool BluetoothEnabled();
void BluetoothEnabled(bool const& value);

GeoLocationEnabled

Whether to use the device's global position to find anchors and improve the locatability of existing anchors. Enabling this option requires extra permissions on each platform: * Android: Declare ACCESS_FINE_LOCATION in AndroidManifest.xml and obtain the permission at run-time by calling ActivityCompat.requestPermissions(). * HoloLens: Add the "location" capability to your app's package manifest. * iOS: Add the "Privacy - Location When In Use Usage Description" key to Info.plist with a short description of what the permission is for.

bool GeoLocationEnabled();
void GeoLocationEnabled(bool const& value);

KnownBeaconProximityUuids

Controls which Bluetooth beacon devices the session is able to see. Add the proximity UUIDs here for all beacons you want to use to find anchors and improve the locatability of existing anchors. Only Eddystone-Uid and iBeacon UUIDs are supported. If no UUIDs are provided, Bluetooth beacons will not be tracked.

com_array<hstring> KnownBeaconProximityUuids();
void KnownBeaconProximityUuids(array_view<hstring const> value);

WifiEnabled

Whether to use WiFi signals to find anchors and improve the locatability of existing anchors. Enabling this option requires extra permissions on each platform: * Android: Declare CHANGE_WIFI_STATE, ACCESS_WIFI_STATE and ACCESS_COARSE_LOCATION in AndroidManifest.xml and obtain the permissions at run-time by calling ActivityCompat.requestPermissions(). * HoloLens: Add the "wiFiControl" capability to your app's package manifest. * iOS: Add the "Privacy - Location When In Use Usage Description" key to Info.plist with a short description of what the permission is for.

bool WifiEnabled();
void WifiEnabled(bool const& value);