SensorCapabilities.GeoLocationEnabled Property
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.
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.