public class KontaktDeviceServiceStore
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
KontaktDeviceServiceStore.StoreType
Type of store
KontaktDeviceServiceStore.StoreType.NORMAL if beacon firmware revision is lower than 4.0
KontaktDeviceServiceStore.StoreType.SECURE if beacon firmware revision is 4.0 and greater
|
| Constructor and Description |
|---|
KontaktDeviceServiceStore(java.util.List<android.bluetooth.BluetoothGattService> gattServices,
KontaktDeviceServiceStore.StoreType storeType)
Instantiates a new Service store.
|
public KontaktDeviceServiceStore(java.util.List<android.bluetooth.BluetoothGattService> gattServices,
KontaktDeviceServiceStore.StoreType storeType)
throws android.os.RemoteException
gattServices - beacon services liststoreType - store typeandroid.os.RemoteException - the remote exception thrown if services list does
not match the specification of kontakt.io beaconpublic BluetoothDeviceCharacteristic getFirmwareRevisionCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getHardwareRevisionCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getManufacturerNameCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getDeviceNameCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getPropagatedDeviceNameCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getMinorCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getNonConnectableCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getShuffleIntervalCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getShuffleKeyCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getSensorOnCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getAccelerometerCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getActiveProfileCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getMajorCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getProximityCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getPowerLevelCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getBatteryLevelCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getPasswordCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getMasterPasswordCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getSetNewPasswordCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getAdvertisingIntervalCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getResetCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getBootloaderCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getUniqueIdCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getNamespaceIdCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getInstanceIdCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getUrlCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getDefaultSettingsCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getSecureLastProcessedRequestTokenCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
Characteristic added in firmware revision 4.0, on lower firmware revision throws exception
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getSecureWriteCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
Characteristic added in firmware revision 4.0, on lower firmware revision throws exception
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getSecureResponseCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
Characteristic added in firmware revision 4.0, on lower firmware revision throws exception
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getSecureControlPointCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
Characteristic added in firmware revision 4.0, on lower firmware revision throws exception
BluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic KontaktDeviceServiceStore.StoreType getStoreType()
KontaktDeviceServiceStore.StoreTypepublic boolean contains(KontaktDeviceService service)
KontaktDeviceService was found during service discoveryservice - model to findpublic void replace(BluetoothDeviceCharacteristic characteristicWrapper) throws ServiceAbsentException
characteristicWrapper - new characteristicServiceAbsentException - if service not foundpublic void clear()
public final java.util.Collection<BluetoothDeviceCharacteristic> getReadableCharacteristics()