DefaultDfuProgressListenerAdapter constructor

DefaultDfuProgressListenerAdapter({
  1. void onDeviceConnectedHandle(
    1. String deviceAddress
    )?,
  2. void onDeviceConnectingHandle(
    1. String deviceAddress
    )?,
  3. void onDeviceDisconnectedHandle(
    1. String deviceAddress
    )?,
  4. void onDeviceDisconnectingHandle(
    1. String deviceAddress
    )?,
  5. void onDfuAbortedHandle(
    1. String deviceAddress
    )?,
  6. void onDfuCompletedHandle(
    1. String deviceAddress
    )?,
  7. void onDfuProcessStartedHandle(
    1. String deviceAddress
    )?,
  8. void onDfuProcessStartingHandle(
    1. String deviceAddress
    )?,
  9. void onEnablingDfuModeHandle(
    1. String deviceAddress
    )?,
  10. void onFirmwareValidatingHandle(
    1. String deviceAddress
    )?,
  11. void onErrorHandle(
    1. String deviceAddress,
    2. int error,
    3. int errorType,
    4. String message,
    )?,
  12. void onProgressChangedHandle(
    1. String deviceAddress,
    2. int percent,
    3. double speed,
    4. double avgSpeed,
    5. int currentPart,
    6. int partsTotal,
    )?,
})

Implementation

DefaultDfuProgressListenerAdapter({
  this.onDeviceConnectedHandle,
  this.onDeviceConnectingHandle,
  this.onDeviceDisconnectedHandle,
  this.onDeviceDisconnectingHandle,
  this.onDfuAbortedHandle,
  this.onDfuCompletedHandle,
  this.onDfuProcessStartedHandle,
  this.onDfuProcessStartingHandle,
  this.onEnablingDfuModeHandle,
  this.onFirmwareValidatingHandle,
  this.onErrorHandle,
  this.onProgressChangedHandle,
});