SensorCapabilities.BluetoothEnabled 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
是否要使用藍牙訊號來尋找錨點,並改善現有錨點的 Locatability。 確定您在啟用藍牙時也設定 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,並簡短描述許可權的用途。