| class info |
| public interface BluetoothStatus |
| 车载蓝牙状态接口类,其中定义了3个车载蓝牙状态的常量,即表示车载蓝牙已连接CONNECTED、表示车载蓝牙未连接DISCONNECTED和未识别到车载蓝牙状态UNKNOWN。 |
| Constant name | desc |
| CONNECTED | int CONNECTED = 1; 表示车载蓝牙已连接。 |
| DISCONNECTED | int DISCONNECTED = 0; 表示车载蓝牙未连接。 |
| UNKNOWN | int UNKNOWN = -1; 表示未识别到车载蓝牙状态。 |
| Return type | Method name |
| abstract int | getStatus() |
| 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 |
| Method |
| public abstract int getStatus() |
| 返回当前车载蓝牙的连接状态。 |
Return
| Type | desc |
| int | 车载蓝牙状态(CONNECTED、DISCONNECTED或UNKNOWN)。 |