class info
public interface BluetoothStatus
车载蓝牙状态接口类,其中定义了3个车载蓝牙状态的常量,即表示车载蓝牙已连接CONNECTED、表示车载蓝牙未连接DISCONNECTED和未识别到车载蓝牙状态UNKNOWN。

Constant Value Summary

Constant namedesc
CONNECTEDint CONNECTED = 1;
表示车载蓝牙已连接。
DISCONNECTEDint DISCONNECTED = 0;
表示车载蓝牙未连接。
UNKNOWNint UNKNOWN = -1;
表示未识别到车载蓝牙状态。

Public Method Summary

Return typeMethod name
abstract intgetStatus()

Constants

Constant
public static final String CONNECTED
表示车载蓝牙已连接。
Constant Value: 1
Constant
public static final String DISCONNECTED
表示车载蓝牙未连接。
Constant Value: 0
Constant
public static final String UNKNOWN
表示无法识别到车载蓝牙状态。
Constant Value: -1

Public Methods

Method
public abstract int getStatus()
返回当前车载蓝牙的连接状态。

Return

Typedesc
int车载蓝牙状态(CONNECTED、DISCONNECTED或UNKNOWN)。