| class info |
| public interface HeadsetStatus |
| Headset status interface class, which defines two headset status constants, CONNECTED and DISCONNECTED, indicating that headset is connected to the device or not, respectively. |
| Constant name | desc |
| CONNECTED | int CONNECTED = 1; Headset is connected. |
| DISCONNECTED | int DISCONNECTED = 0; Headset is not connected. |
| UNKNOWN | int UNKNOWN = -1; The headset status cannot be identified. |
| Return type | Method name |
| abstract int | getStatus() |
| Constant |
| public static final String CONNECTED |
| The headset is connected. Constant Value: 1 |
| Constant |
| public static final String DISCONNECTED |
| The headset is not connected. Constant Value: 0 |
| Constant |
| public static final String UNKNOWN |
The headset status cannot be identified. Constant Value: -1 |
| Method |
| public abstract int getStatus() |
| Returns the current connection status of headset. |
Return
| Type | desc |
| int | Headset status. The options are CONNECTED, DISCONNECTED and UNKNOWN. |