com.ardic.android.managers.bluetoothconfig.IBluetoothConfigManager |
Provides a set of APIs for bluetooth configurations.
For example, bluetooth ON/OFF, retrieve bluetooth state. Block bluetooth interface
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the current state of the local bluetooth.
| |||||||||||
Returns the current state in string of the local bluetooth.
| |||||||||||
Return whether bluetooth is blocked or unblocked.
| |||||||||||
Returns whether bluetooth is currently ON/OFF.
| |||||||||||
Sets bluetooth state to blocked.
| |||||||||||
Sets bluetooth ON/OFF (same as the user Setting UI action).
|
Returns the current state of the local bluetooth.
Returns | |
---|---|
int |
Possible bluetooth states; STATE_OFF STATE_TURNING_ON STATE_ON STATE_TURNING_OFF |
Throws | |
---|---|
AfexException |
Returns the current state in string of the local bluetooth.
Returns | |
---|---|
String |
bluetooth state |
Throws | |
---|---|
AfexException |
Return whether bluetooth is blocked or unblocked.
Returns | |
---|---|
boolean |
true if bluetooth is blocked, false otherwise |
Throws | |
---|---|
AfexException |
See also:
Returns whether bluetooth is currently ON/OFF.
Returns | |
---|---|
boolean |
true if bluetooth is ON else false if it is OFF |
Throws | |
---|---|
AfexException |
Sets bluetooth state to blocked.
In Blocking case; Bluetooth is turned OFF ( setBluetoothState(boolean)
) and it is
blocked.
The bluetooth can not be turned ON until it is unblocked.
In Unblocking case; bluetooth is unblocked and it is turned ON (
setBluetoothState(boolean)
)
Parameters | |
---|---|
state |
boolean :
true to block bluetooth, false to unblock. |
Returns | |
---|---|
boolean |
true if the operation succeeds (or if the existing state is the same as the
requested state) else false |
Throws | |
---|---|
AfexException |
See also:
Sets bluetooth ON/OFF (same as the user Setting UI action).
Parameters | |
---|---|
state |
boolean :
true to ON, false to OFF |
Returns | |
---|---|
boolean |
true if operation succeeds else false |
Throws | |
---|---|
AfexException |