public class BluetoothCtrl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_ERROR_CODE |
static java.lang.String |
BUNDLE_ERROR_MSG |
static int |
RESULT_CODE_ERROR |
static int |
RESULT_CODE_SUCCESS |
static java.lang.String |
RESULT_KEY_BT_MAC |
| Constructor and Description |
|---|
BluetoothCtrl(android.content.Context context)
Instantiates a new Bluetooth ctrl.
|
| Modifier and Type | Method and Description |
|---|---|
android.os.Bundle |
enableBluetooth(boolean enabled) |
android.os.Bundle |
getActiveBluetoothProfile()
Get Active Bluetooth Profile
|
android.os.Bundle |
getBluetoothConnectStatus()
Get Bluetooth Connect Status
|
android.os.Bundle |
getBluetoothVersion()
Get Bluetooth Version
|
static BluetoothCtrl |
getInstance(android.content.Context context)
Gets instance.
|
android.os.Bundle |
getMacAddress()
Get mac address bundle.
|
public static final java.lang.String BUNDLE_ERROR_CODE
public static final java.lang.String BUNDLE_ERROR_MSG
public static final int RESULT_CODE_ERROR
public static final int RESULT_CODE_SUCCESS
public static final java.lang.String RESULT_KEY_BT_MAC
public BluetoothCtrl(android.content.Context context)
context - the contextpublic static BluetoothCtrl getInstance(android.content.Context context)
context - the contextpublic android.os.Bundle getMacAddress()
public android.os.Bundle getBluetoothConnectStatus()
public android.os.Bundle getBluetoothVersion()
public android.os.Bundle getActiveBluetoothProfile()
public android.os.Bundle enableBluetooth(boolean enabled)