setCallback method

  1. @Deprecated('Please use setProbeCallback & setProbeBoxCallback instead')
void setCallback({
  1. OnGetVersion? onGetVersion,
  2. VoidCallback? onRequestSyncTime,
  3. OnSetResult? onSetResult,
  4. OnSyncTimeResult? onSyncTimeResult,
  5. OnGetBattery? onGetBattery,
  6. OnSwitchUnit? onSwitchUnit,
  7. OnGetRealTimeData? onGetRealTimeData,
  8. OnGetProbeInfo? onGetProbeInfo,
  9. OnGetProbeInfoFailure? onGetProbeInfoFailure,
  10. OnGetProbeBoxInfo? onGetProbeChargingBoxInfo,
})

Implementation

@Deprecated('Please use setProbeCallback & setProbeBoxCallback instead')
void setCallback({
  OnGetVersion? onGetVersion,
  VoidCallback? onRequestSyncTime,
  OnSetResult? onSetResult,
  OnSyncTimeResult? onSyncTimeResult,
  OnGetBattery? onGetBattery,
  OnSwitchUnit? onSwitchUnit,
  OnGetRealTimeData? onGetRealTimeData,
  OnGetProbeInfo? onGetProbeInfo,
  OnGetProbeInfoFailure? onGetProbeInfoFailure,
  OnGetProbeBoxInfo? onGetProbeChargingBoxInfo,
}) {
  this.onGetVersion = onGetVersion;
  this.onRequestSyncTime = onRequestSyncTime;
  this.onSetResult = onSetResult;
  this.onSyncTimeResult = onSyncTimeResult;
  this.onGetBattery = onGetBattery;
  this.onSwitchUnit = onSwitchUnit;
  this.onGetRealTimeData = onGetRealTimeData;
  this.onGetProbeInfo = onGetProbeInfo;
  this.onGetProbeInfoFailure = onGetProbeInfoFailure;
  this.onGetProbeChargingBoxInfo = onGetProbeChargingBoxInfo;
}