Share via


SensorCapabilities.BluetoothEnabled 属性

定义

是否使用蓝牙信号来查找定位点并提高现有定位点的可定位性。 请确保在启用蓝牙时还设置了 KnownBeaconProximityUuids。

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

属性值

注解

启用此选项需要每个平台上的额外权限:* Android:在 AndroidManifest.xml 中声明BLUETOOTH_ADMIN、BLUETOOTH 和ACCESS_COARSE_LOCATION,并通过调用 ActivityCompat.requestPermissions () 在运行时获取权限。 * HoloLens:将“蓝牙”功能添加到应用的包清单。 * iOS:将“隐私 - 在使用使用情况说明时的位置”键添加到 Info.plist,并简要描述权限的用途。

适用于