Android.Bluetooth.BluetoothDevice Class
Represents a remote Bluetooth device.

See Also: BluetoothDevice Members

Syntax

[Android.Runtime.Register("android/bluetooth/BluetoothDevice", DoNotGenerateAcw=true)]
public sealed class BluetoothDevice : Java.Lang.Object, Android.OS.IParcelable, IDisposable

Remarks

Represents a remote Bluetooth device. A Android.Bluetooth.BluetoothDevice lets you create a connection with the respective device or query information about it, such as the name, address, class, and bonding state.

This class is really just a thin wrapper for a Bluetooth hardware address. Objects of this class are immutable. Operations on this class are performed on the remote Bluetooth hardware address, using the Android.Bluetooth.BluetoothAdapter that was used to create this Android.Bluetooth.BluetoothDevice.

To get a Android.Bluetooth.BluetoothDevice, use BluetoothAdapter.GetRemoteDevice(string) to create one representing a device of a known MAC address (which you can get through device discovery with Android.Bluetooth.BluetoothAdapter) or get one from the set of bonded devices returned by BluetoothAdapter.BondedDevices. You can then open a Android.Bluetooth.BluetoothSocket for communication with the remote device, using BluetoothDevice.CreateRfcommSocketToServiceRecord(Java.Util.UUID).

Note: Requires the NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#BLUETOOTH permission.

Developer Guides

For more information about using Bluetooth, read the Bluetooth developer guide.

See Also

[Android Documentation]

Requirements

Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5