initCallbackEvent method

void initCallbackEvent(
  1. BootpayDefaultCallback? onCancel,
  2. BootpayDefaultCallback? onError,
  3. BootpayCloseCallback? onClose,
  4. BootpayDefaultCallback? onIssued,
  5. BootpayConfirmCallback? onConfirm,
  6. BootpayAsyncConfirmCallback? onConfirmAsync,
  7. BootpayDefaultCallback? onDone,
  8. BootpayNextJobCallback? onNextJob,
  9. BootpayCloseCallback? onDebounceClose,
)

Implementation

void initCallbackEvent(
    BootpayDefaultCallback? onCancel,
    BootpayDefaultCallback? onError,
    BootpayCloseCallback? onClose,
    BootpayDefaultCallback? onIssued,
    BootpayConfirmCallback? onConfirm,
    BootpayAsyncConfirmCallback? onConfirmAsync,
    BootpayDefaultCallback? onDone,
    BootpayNextJobCallback? onNextJob,
    BootpayCloseCallback? onDebounceClose
    ) {
  onCallbackCancel = onCancel;
  onCallbackError = onError;
  onCallbackClose = onClose;
  onCallbackIssued = onIssued;
  onCallbackConfirm = onConfirm;
  onCallbackConfirmAsync = onConfirmAsync;
  onCallbackDone = onDone;
  onCallbackNextJob = onNextJob;
  onCallbackDebounceClose = onDebounceClose;

  webViewProvider?.initWebViewCallback(
      onWebViewCancel,
      onWebViewError,
      onWebViewClose,
      onWebViewIssued,
      onWebViewConfirm,
      onWebViewDone,
      onWebViewRedirect,
      onWebViewEasySuccess,
      onWebViewEasyError
  );
}