public class CallbackHandlerImpl extends java.lang.Object implements CallbackHandler
Constructor and Description |
---|
CallbackHandlerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
drop()
Call this method to drop callback invocation.
|
DeviceConnection.CheckFirmwareCallback |
wrap(DeviceConnection.CheckFirmwareCallback callback)
Wraps check firmware update callback to add drop functionality.
|
DeviceConnection.FirmwareUpdateCallback |
wrap(DeviceConnection.FirmwareUpdateCallback callback)
Wraps firmware update callback to add drop functionality.
|
DeviceConnection.SyncSettingsCallback |
wrap(DeviceConnection.SyncSettingsCallback callback)
Wraps sync settings callback to add drop functionality.
|
DeviceSetting.ValidationCallback |
wrap(DeviceSetting.ValidationCallback callback)
Wraps validation callback to add drop functionality.
|
<T> SettingCallback<T> |
wrap(SettingCallback<T> callback)
Wraps setting callback to add drop functionality.
|
StorageManager.ReadCallback |
wrap(StorageManager.ReadCallback callback)
Wraps storage callback to add drop functionality.
|
StorageManager.WriteCallback |
wrap(StorageManager.WriteCallback callback)
Wraps storage callback to add drop functionality.
|
public void drop()
CallbackHandler
drop
in interface CallbackHandler
public <T> SettingCallback<T> wrap(SettingCallback<T> callback)
T
- Parametercallback
- Main callback from userpublic DeviceConnection.FirmwareUpdateCallback wrap(DeviceConnection.FirmwareUpdateCallback callback)
callback
- Callback from userkpublic DeviceConnection.CheckFirmwareCallback wrap(DeviceConnection.CheckFirmwareCallback callback)
callback
- Callback from userpublic DeviceSetting.ValidationCallback wrap(DeviceSetting.ValidationCallback callback)
callback
- Callback from userpublic StorageManager.WriteCallback wrap(StorageManager.WriteCallback callback)
callback
- Callback from userpublic StorageManager.ReadCallback wrap(StorageManager.ReadCallback callback)
callback
- Callback from userpublic DeviceConnection.SyncSettingsCallback wrap(DeviceConnection.SyncSettingsCallback callback)
callback
- Callback from user