Represents a Bluetooth class, which describes general characteristics
and capabilities of a device. For example, a Bluetooth class will
specify the general device type such as a phone, a computer, or
headset, and whether it's capable of services such as audio or telephony.
Every Bluetooth class is composed of zero or more service classes, and
exactly one device class. The device class is further broken down into major
and minor device class components.
{@link BluetoothClass} is useful as a hint to roughly describe a device
(for example to show an icon in the UI), but does not reliably describe which
Bluetooth profiles or services are actually supported by a device. Accurate
service discovery is done through SDP requests, which are automatically
performed when creating an RFCOMM socket with {@link
BluetoothDevice#createRfcommSocketToServiceRecord} and {@link
BluetoothAdapter#listenUsingRfcommWithServiceRecord}
Use {@link BluetoothDevice#getBluetoothClass} to retrieve the class for
a remote device.
|