public class ConnectionStateEvent
extends java.lang.Object
BluetoothDevice
.
Possible state values are:
BluetoothAdapter.STATE_DISCONNECTED
,
BluetoothAdapter.STATE_CONNECTING
,
BluetoothAdapter.STATE_CONNECTED
,
BluetoothAdapter.STATE_DISCONNECTING
Constructor and Description |
---|
ConnectionStateEvent(int state,
int previousState,
android.bluetooth.BluetoothDevice bluetoothDevice) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
android.bluetooth.BluetoothDevice |
getBluetoothDevice() |
int |
getPreviousState() |
int |
getState() |
int |
hashCode() |
java.lang.String |
toString() |
public ConnectionStateEvent(int state, int previousState, android.bluetooth.BluetoothDevice bluetoothDevice)
public int getState()
public int getPreviousState()
public android.bluetooth.BluetoothDevice getBluetoothDevice()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object