public BtState
The possible states of the com.telenav.sdk.vivid.connectivity.bluetooth.BtManager:
class BtBondingState
,
class BtBondState
,
class BtConnectableState
,
class BtDisabledState
,
class BtDisablingDiscoverableState
,
class BtDisablingState
,
class BtDiscoverableState
,
class BtEnabledState
,
class BtEnablingDiscoverableState
,
class BtEnablingState
,
class BtNoneState
,
class BtNotConnectableState
,
class BtPermissionDeniedState
,
class BtPermissionGrantedState
,
class BtReconnectingDeviceState
,
class BtRequestPermissionState
,
class BtScanCompleteState
,
class BtScanningState
,
class BtStopScanningState
,
class BtUnbondingState
Modifier and Type | Interface and Description |
---|---|
static class |
BtState.Companion |
Modifier and Type | Field and Description |
---|---|
static BtState.Companion |
Companion |
static java.lang.String |
KEY_BT_DEVICE |
Modifier and Type | Method and Description |
---|---|
void |
disableBluetooth()
Turn off BT
|
void |
enableBluetooth()
An action to turn on the BT on the device was started. Requires user
interaction in order to accept
|
void |
enableDiscoverable()
Makes the device discoverable to other BT devices. In order to pair/connect to a device it
needs first to be discoverable
|
void |
pair(android.bluetooth.BluetoothDevice device)
Pairing process was started. The 'pin' dialog will be displayed
|
void |
requestPermission(android.app.Activity activity,
int requestCode)
Required for BT scanning.
|
void |
scan()
A scan for BT devices is ongoing.
|
void |
stopScan()
Stop an ongoing BT scanning
|
void |
unpair(android.bluetooth.BluetoothDevice device)
Triggers the un-pairing process
|
static BtState.Companion Companion
static java.lang.String KEY_BT_DEVICE
void enableBluetooth()
An action to turn on the BT on the device was started. Requires user interaction in order to accept
void requestPermission(android.app.Activity activity, int requestCode)
Required for BT scanning.
void scan()
A scan for BT devices is ongoing.
void stopScan()
Stop an ongoing BT scanning
void pair(android.bluetooth.BluetoothDevice device)
Pairing process was started. The 'pin' dialog will be displayed
device
- the remote device to pair torvoid unpair(android.bluetooth.BluetoothDevice device)
Triggers the un-pairing process
device
- remote device to unpairvoid disableBluetooth()
Turn off BT
void enableDiscoverable()
Makes the device discoverable to other BT devices. In order to pair/connect to a device it needs first to be discoverable