BluetoothDevice.IdentityAddressWithType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回此 BluetoothDevice 的标识地址和标识地址类型。
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
属性值
包含标识地址和标识地址类型的 BluetoothAddress。 如果未启用蓝牙或标识地址类型不可用,它将返回包含标识地址类型的ADDRESS_TYPE_UNKNOWN设备的 BluetoothAddress。 此值不能为 null。
- 特性
注解
返回此 BluetoothDevice 的标识地址和标识地址类型。 标识地址是公共或静态随机蓝牙 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
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。