| java.lang.Object | |||
| android.os.Binder | IBinder | ||
| org.bluez.BluetoothServiceNative | IBluetoothService | ||
| Value | ||||
|---|---|---|---|---|
| String | PUBLISH_NAME | "org.bluez.bluetooth_service" | ||
Constants inherited
from interface
org.bluez.IBluetoothService
Constants inherited
from interface
android.os.IBinder
| protected | EventLoop | mEventLoop |
| BluetoothServiceNative() |
| void | Cancel(Adapter adapter, String address) | ||||
| This method is called during a bonding procedure with a remote device when the remote device cancels the PIN code entry (akin to the remote device doing the equivalent of cancelPin(). | |||||
| void | Release() | ||||
| This method might be obsoleted soon. | |||||
| void | Request(Adapter adapter, String address, PasskeyResponse resp) | ||||
| This method is called during a bonding procedure with a remote device in order to request a PIN code entry from the user on the local device. | |||||
| IBinder | asBinder() | ||||
| Retrieve the Binder object associated with this interface. | |||||
| static | IBluetoothService | asInterface(IBinder obj) | |||
| void | cancelPin(String address) | ||||
| static | IBluetoothService | getBluetoothService() | |||
| Manager | getManager() | ||||
| SDPClient | getSDPClient(Adapter adapter, String address) | ||||
| boolean | isBluetoothStarted() | ||||
| void | notifyBondingCreated(String address) | ||||
| This method is called to notify the user of a successful bonding procedure. | |||||
| void | notifyBondingRemoved(String address) | ||||
| This method is called to notify the user when a bonding to a remote device is removed. | |||||
| void | notifyDiscoveryCompleted() | ||||
| void | notifyDiscoveryStarted() | ||||
| void | notifyHeadsetConnected(String address) | ||||
| void | notifyHeadsetDisconnected(String address) | ||||
| void | notifyModeChanged(String adapter, String mode) | ||||
| This method is called when the local adapter's mode changes (for example, when the adapter becomes discoverable when it was previously only connectable.) This may occur either in response to the user calling Adapter.setMode(), or in response to a timeout (for example, if the Adapter is set to discoverable mode for 1 minute, then it will revert to connectable mode automatically when a minute goes by, and this method will be called.). | |||||
| void | notifyNameChanged(String adapter, String name) | ||||
| This method is called when the local adapter's name changes, which is always in response to the user calling Adapter.setName(). | |||||
| void | notifyRemoteAliasChanged(String address, String alias) | ||||
| This method is called when we change a remote device's alias. | |||||
| void | notifyRemoteAliasCleared(String address) | ||||
| This method is called when we remove a remote device's alias. | |||||
| void | notifyRemoteClassUpdated(String address, int nClass) | ||||
| This method is called when we learn of a new device's class (a 32-bit value encoding major, minor, and service classes of remove device.) | |||||
| void | notifyRemoteDeviceConnected(String address) | ||||
| This method is called when a remote device connects to this device. | |||||
| void | notifyRemoteDeviceDisappeared(String address) | ||||
| void | notifyRemoteDeviceDisconnectRequested(String address) | ||||
| This method is called when a remote device is about to disconnect from this device. | |||||
| void | notifyRemoteDeviceDisconnected(String address) | ||||
| This method is called when a remote device disconnects from this device. | |||||
| void | notifyRemoteDeviceFound(String address, int nClass, short nRSSI) | ||||
| void | notifyRemoteNameFailed(String address) | ||||
| This method is called during remote-device discovery, when we fail to retrieve a remote-device's user-friendly name. | |||||
| void | notifyRemoteNameUpdated(String address, String nClass) | ||||
| This method is called when we learn of a new device's user-friendly name. | |||||
| boolean | onTransact(int code, Parcel data, Parcel reply, int flags) | ||||
| Default implementation is a stub that returns false. | |||||
| void | setPin(String address, String pin) | ||||
| boolean | startBluetooth() | ||||
| boolean | stopBluetooth(boolean force) | ||||
| abstract | void | broadcastIntent(Intent intent) |
Methods inherited
from class
android.os.Binder
Methods inherited
from class
java.lang.Object
Methods inherited
from interface
org.bluez.IBluetoothService
Methods inherited
from interface
android.os.IBinder
Methods inherited
from interface
android.os.IInterface
| adapter | Local-device Bluetooth adapter from which the PIN request is made |
|---|---|
| address | Bluetooth address of remote device with which adapter is pairing |
| adapter | Local-device Bluetooth adapter from which the PIN request is made |
|---|---|
| address | Bluetooth address of remote device with which adapter is pairing |
| resp | Opaque interface through which the user returns the PIN code, or informs the other side that the PIN code entry is canceled. |
| address | Bluetooth address of remote device. |
|---|
| address | Bluetooth address of remote device. |
|---|
| adapter | The String representation of the Adapter (e.g., "hci0") |
|---|---|
| mode | The new Adapter mode. It is one of "discoverable", "connectable", or "off". |
| adapter | The String representation of the Adapter (e.g., "hci0") |
|---|---|
| name | The new Adapter name. |
| address | Bluetooth address of remote device. |
|---|---|
| alias | remote-device alias. |
| address | Bluetooth address of remote device. |
|---|
| address | Bluetooth address of remote device. |
|---|---|
| nClass | remote-device class. |
| address | Bluetooth address of remote device. |
|---|
| address | Bluetooth address of remote device. |
|---|
| address | Bluetooth address of remote device. |
|---|
| address | Bluetooth address of remote device. |
|---|
| address | Bluetooth address of remote device. |
|---|---|
| nClass | remote-device name. |