Share via


SensorCapabilities.GeoLocationEnabled Property

Definition

Whether to use the device's global position to find anchors and improve the locatability of existing anchors.

public bool GeoLocationEnabled { get; set; }
member this.GeoLocationEnabled : bool with get, set
Public Property GeoLocationEnabled As Boolean

Property Value

Remarks

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.

Applies to