Example usage for Java android.bluetooth BluetoothGattService fields, constructors, methods, implement or subclass
The text is from its open source code.
int | SERVICE_TYPE_PRIMARY Primary service |
int | SERVICE_TYPE_SECONDARY Secondary service (included by primary services) |
BluetoothGattService(UUID uuid, int serviceType) Create a new BluetoothGattService. |
boolean | addCharacteristic(BluetoothGattCharacteristic characteristic) Add a characteristic to this service. |
BluetoothGattCharacteristic | getCharacteristic(UUID uuid) Returns a characteristic with a given UUID out of the list of characteristics offered by this service. |
List | getCharacteristics() Returns a list of characteristics included in this service. |
int | getInstanceId() Returns the instance ID for this service If a remote device offers multiple services with the same UUID (ex. |
int | getType() Get the type of this service (primary/secondary) |
UUID | getUuid() Returns the UUID of this service |