Language

BluetoothAdapter.GetRemoteLeDevice(String, Int32) Method

Definition

Get a BluetoothDevice object for the given Bluetooth hardware address and addressType.

[Android.Runtime.Register("getRemoteLeDevice", "(Ljava/lang/String;I)Landroid/bluetooth/BluetoothDevice;", "", ApiSince=33)]
public Android.Bluetooth.BluetoothDevice GetRemoteLeDevice(string address, int addressType);
[<Android.Runtime.Register("getRemoteLeDevice", "(Ljava/lang/String;I)Landroid/bluetooth/BluetoothDevice;", "", ApiSince=33)>]
member this.GetRemoteLeDevice : string * int -> Android.Bluetooth.BluetoothDevice

Parameters

address
String

valid Bluetooth MAC address. This value cannot be null.

addressType
Int32

Bluetooth address type. Value is one of the following: BluetoothDevice.ADDRESS_TYPE_PUBLIC; BluetoothDevice.ADDRESS_TYPE_RANDOM; BluetoothDevice.ADDRESS_TYPE_ANONYMOUS; BluetoothDevice.ADDRESS_TYPE_UNKNOWN

Returns

Attributes

Remarks

Get a BluetoothDevice object for the given Bluetooth hardware address and addressType.

Android reference for android.bluetooth.BluetoothAdapter.getRemoteLeDevice.

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.

Applies to