BluetoothDevice.IdentityAddressWithType 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.
Returns the identity address and identity address type of this 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
Property Value
a BluetoothAddress containing identity address and identity address type. If Bluetooth is not enabled or identity address type is not available, it will return a BluetoothAddress containing ADDRESS_TYPE_UNKNOWN device for the identity address type. This value cannot be null.
- Attributes
Remarks
Returns the identity address and identity address type of this BluetoothDevice. An identity address is a public or static random Bluetooth LE device address that serves as a unique identifier. For apps targeting Build.VERSION_CODES.S or or higher, this requires the Manifest.permission.BLUETOOTH_CONNECT permission which can be gained with android.app.Activity.requestPermissions(String[],int). Requires Manifest.permission.BLUETOOTH_CONNECT and Manifest.permission.BLUETOOTH_PRIVILEGED
Android reference for android.bluetooth.BluetoothDevice.getIdentityAddressWithType.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.