Share via


BluetoothAdapter.GetRemoteDevice Method

Definition

Overloads

GetRemoteDevice(String)

Get a BluetoothDevice object for the given Bluetooth hardware address.

GetRemoteDevice(Byte[])

Get a BluetoothDevice object for the given Bluetooth hardware address.

GetRemoteDevice(String)

Get a BluetoothDevice object for the given Bluetooth hardware address.

[Android.Runtime.Register("getRemoteDevice", "(Ljava/lang/String;)Landroid/bluetooth/BluetoothDevice;", "")]
public Android.Bluetooth.BluetoothDevice? GetRemoteDevice (string? address);
[<Android.Runtime.Register("getRemoteDevice", "(Ljava/lang/String;)Landroid/bluetooth/BluetoothDevice;", "")>]
member this.GetRemoteDevice : string -> Android.Bluetooth.BluetoothDevice

Parameters

address
String

valid Bluetooth MAC address

Returns

Attributes

Exceptions

if address is invalid

Remarks

Java documentation for android.bluetooth.BluetoothAdapter.getRemoteDevice(java.lang.String).

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

GetRemoteDevice(Byte[])

Get a BluetoothDevice object for the given Bluetooth hardware address.

[Android.Runtime.Register("getRemoteDevice", "([B)Landroid/bluetooth/BluetoothDevice;", "")]
public Android.Bluetooth.BluetoothDevice? GetRemoteDevice (byte[]? address);
[<Android.Runtime.Register("getRemoteDevice", "([B)Landroid/bluetooth/BluetoothDevice;", "")>]
member this.GetRemoteDevice : byte[] -> Android.Bluetooth.BluetoothDevice

Parameters

address
Byte[]

Bluetooth MAC address (6 bytes)

Returns

Attributes

Exceptions

if address is invalid

Remarks

Java documentation for android.bluetooth.BluetoothAdapter.getRemoteDevice(byte[]).

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