public interface LocalBluetoothProfile
Modifier and Type | Method and Description |
---|---|
boolean |
connect(BluetoothDevice device) |
boolean |
disconnect(BluetoothDevice device) |
int |
getConnectionStatus(BluetoothDevice device) |
int |
getDrawableResource(BluetoothClass btClass) |
int |
getNameResource(BluetoothDevice device)
Returns the string resource ID for the localized name for this profile.
|
int |
getOrdinal()
Display order for device profile settings.
|
int |
getPreferred(BluetoothDevice device) |
int |
getSummaryResourceForDevice(BluetoothDevice device)
Returns the string resource ID for the summary text for this profile
for the specified device, e.g.
|
boolean |
isAutoConnectable()
Returns true if the user can enable auto connection for this profile.
|
boolean |
isConnectable()
Returns true if the user can initiate a connection, false otherwise.
|
boolean |
isPreferred(BluetoothDevice device) |
boolean |
isProfileReady() |
void |
setPreferred(BluetoothDevice device,
boolean preferred) |
boolean isConnectable()
boolean isAutoConnectable()
boolean connect(BluetoothDevice device)
boolean disconnect(BluetoothDevice device)
int getConnectionStatus(BluetoothDevice device)
boolean isPreferred(BluetoothDevice device)
int getPreferred(BluetoothDevice device)
void setPreferred(BluetoothDevice device, boolean preferred)
boolean isProfileReady()
int getOrdinal()
int getNameResource(BluetoothDevice device)
device
- the Bluetooth device (to distinguish between PAN roles)int getSummaryResourceForDevice(BluetoothDevice device)
device
- the device to query for profile connection statusint getDrawableResource(BluetoothClass btClass)