Java android.bluetooth BluetoothGattService fields, constructors, methods, implement or subclass

Example usage for Java android.bluetooth BluetoothGattService fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.bluetooth BluetoothGattService.

The text is from its open source code.

Field

intSERVICE_TYPE_PRIMARY
Primary service
intSERVICE_TYPE_SECONDARY
Secondary service (included by primary services)

Constructor

BluetoothGattService(UUID uuid, int serviceType)
Create a new BluetoothGattService.

Method

booleanaddCharacteristic(BluetoothGattCharacteristic characteristic)
Add a characteristic to this service.
BluetoothGattCharacteristicgetCharacteristic(UUID uuid)
Returns a characteristic with a given UUID out of the list of characteristics offered by this service.
ListgetCharacteristics()
Returns a list of characteristics included in this service.
intgetInstanceId()
Returns the instance ID for this service

If a remote device offers multiple services with the same UUID (ex.

intgetType()
Get the type of this service (primary/secondary)
UUIDgetUuid()
Returns the UUID of this service