語言

BluetoothDevice.IdentityAddressWithType 屬性

定義

回傳此藍牙裝置的身份位址及身份位址類型。

public Android.Bluetooth.BluetoothDevice.BluetoothAddress IdentityAddressWithType { [Android.Runtime.Register("getIdentityAddressWithType", "()Landroid/bluetooth/BluetoothDevice$BluetoothAddress;", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getIdentityAddressWithType", "()Landroid/bluetooth/BluetoothDevice$BluetoothAddress;", "", ApiSince=36)>]
member this.IdentityAddressWithType : Android.Bluetooth.BluetoothDevice.BluetoothAddress

屬性值

一個包含身份位址及身份位址類型的藍牙位址。 若未啟用藍牙或無法提供身份位址類型,則會回傳包含該身份位址類型ADDRESS_TYPE_UNKNOWN裝置的藍牙位址。 這個值不可能為零值。

屬性

備註

回傳此藍牙裝置的身份位址及身份位址類型。 身份位址是一種公開或靜態的隨機藍牙LE裝置位址,作為唯一識別碼。 針對Build.VERSION_CODES的應用程式。若為 S 或更高,則需取得 Manifest.permission.BLUETOOTH_CONNECT 權限,可透過 android.app.Activity.requestPermissions(String[],int)取得。 需要Manifest.permission.BLUETOOTH_CONNECT和Manifest.permission.BLUETOOTH_PRIVILEGED

Android 參考資料。android.bluetooth.BluetoothDevice.getIdentityAddressWithType

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於