public class DfuControllerImpl extends java.lang.Object implements DfuController
WriteListener.WriteResponseNOOP_LISTENERNOOP_LISTENERNOOP_LISTENER| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| static DfuControllerImpl | create(byte[] firmwareFile,
      Firmware firmware,
      GattController gattController,
      KontaktDeviceServiceStore serviceStore,
      IFirmwareFilesManager firmwareFilesManager,
      DfuAuthorizationService authorizationService) | 
| void | initialize() | 
| void | onCharacteristicChanged(android.bluetooth.BluetoothGattCharacteristic characteristic) | 
| void | onDescriptorWriteFailure(android.bluetooth.BluetoothGattDescriptor descriptor) | 
| void | onDescriptorWriteSuccess(android.bluetooth.BluetoothGattDescriptor descriptor) | 
| void | onWriteFailure(ErrorCause cause)Invoked when characteristics manipulation failed. | 
| void | onWriteSuccess(WriteListener.WriteResponse response)Invoked when characteristic manipulation succeed. | 
| void | setFirmwareUpdateListener(FirmwareUpdateListener listener) | 
public static DfuControllerImpl create(byte[] firmwareFile, Firmware firmware, GattController gattController, KontaktDeviceServiceStore serviceStore, IFirmwareFilesManager firmwareFilesManager, DfuAuthorizationService authorizationService)
public void setFirmwareUpdateListener(FirmwareUpdateListener listener)
setFirmwareUpdateListener in interface DfuControllerpublic void initialize()
initialize in interface DfuControllerpublic void onCharacteristicChanged(android.bluetooth.BluetoothGattCharacteristic characteristic)
onCharacteristicChanged in interface ChangeCharacteristicListenerpublic void onWriteSuccess(WriteListener.WriteResponse response)
WriteListenerWriteListener.WriteResponse responseonWriteSuccess in interface WriteListenerresponse - from device, might be nullpublic void onWriteFailure(ErrorCause cause)
WriteListeneronWriteFailure in interface WriteListenercause - ErrorCausepublic void onDescriptorWriteSuccess(android.bluetooth.BluetoothGattDescriptor descriptor)
onDescriptorWriteSuccess in interface WriteDescriptorListenerpublic void onDescriptorWriteFailure(android.bluetooth.BluetoothGattDescriptor descriptor)
onDescriptorWriteFailure in interface WriteDescriptorListenerpublic void close()
close in interface DfuController