Java Code Examples for android.bluetooth.BluetoothGattServer#STATE_DISCONNECTING

The following examples show how to use android.bluetooth.BluetoothGattServer#STATE_DISCONNECTING . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: P_NativeServerWrapper.java    From AsteroidOSSync with GNU General Public License v3.0 4 votes vote down vote up
public final boolean isDisconnecting(final String macAddress)
{
	return getNativeState(macAddress) == BluetoothGattServer.STATE_DISCONNECTING;
}
 
Example 2
Source File: P_NativeServerWrapper.java    From AsteroidOSSync with GNU General Public License v3.0 4 votes vote down vote up
public final boolean isDisconnectingOrDisconnected(final String macAddress)
{
	final int  nativeState = getNativeState(macAddress);

	return nativeState == BluetoothGattServer.STATE_DISCONNECTING || nativeState == BluetoothGattServer.STATE_DISCONNECTED;
}
 
Example 3
Source File: P_NativeServerWrapper.java    From SweetBlue with GNU General Public License v3.0 4 votes vote down vote up
public final boolean isDisconnecting(final String macAddress)
{
	return getNativeState(macAddress) == BluetoothGattServer.STATE_DISCONNECTING;
}
 
Example 4
Source File: P_NativeServerWrapper.java    From SweetBlue with GNU General Public License v3.0 4 votes vote down vote up
public final boolean isDisconnectingOrDisconnected(final String macAddress)
{
	final int  nativeState = getNativeState(macAddress);

	return nativeState == BluetoothGattServer.STATE_DISCONNECTING || nativeState == BluetoothGattServer.STATE_DISCONNECTED;
}