public class BluetoothHeadsetUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
BluetoothHeadsetUtils.BlueToothListener |
| Constructor and Description |
|---|
BluetoothHeadsetUtils(android.content.Context context)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkBluetoothPermissions(android.content.Context context)
Check whether the bluetooth permissions are granted on this device.
|
boolean |
isOnHeadsetSco() |
void |
start(BluetoothHeadsetUtils.BlueToothListener listener)
Call this to start BluetoothHeadsetUtils functionalities.
|
void |
stop()
Should call this on onResume or onDestroy.
|
public BluetoothHeadsetUtils(android.content.Context context)
context - contextpublic void start(BluetoothHeadsetUtils.BlueToothListener listener)
public void stop()
public boolean isOnHeadsetSco()
public static boolean checkBluetoothPermissions(android.content.Context context)
context - android context