public final class BleService extends P_NativeGattObject<android.bluetooth.BluetoothGattService> implements UsesInstanceId
BluetoothGattService
. You should always check P_NativeGattObject.isNull()
before
doing anything with the BluetoothGattService
returned from getService()
.Modifier and Type | Field and Description |
---|---|
static BleService |
NULL |
Constructor and Description |
---|
BleService(android.bluetooth.BluetoothGattService service) |
BleService(UhOhListener.UhOh uhoh) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<BleCharacteristic> |
getCharacteristics()
Returns a list of
BleCharacteristic s held by this service. |
int |
getInstanceId() |
android.bluetooth.BluetoothGattService |
getService()
Returns the instance of
BluetoothGattService held in this class. |
java.util.UUID |
getUuid()
Returns the
UUID of thi service. |
void |
setInstanceId(int id) |
getGattObject, getUhOh, hasUhOh, isNull
public static final BleService NULL
public BleService(UhOhListener.UhOh uhoh)
public BleService(android.bluetooth.BluetoothGattService service)
public final android.bluetooth.BluetoothGattService getService()
BluetoothGattService
held in this class.public final java.util.List<BleCharacteristic> getCharacteristics()
BleCharacteristic
s held by this service.public final java.util.UUID getUuid()
public void setInstanceId(int id)
setInstanceId
in interface UsesInstanceId
public int getInstanceId()
getInstanceId
in interface UsesInstanceId
public boolean equals(java.lang.Object obj)
equals
in class P_NativeGattObject<android.bluetooth.BluetoothGattService>