initWebViewCallback method

void initWebViewCallback(
  1. WebViewCallback onWebViewCancel,
  2. WebViewCallback onWebViewError,
  3. WebViewCallback onWebViewClose,
  4. WebViewCallback onWebViewIssued,
  5. WebViewCallback onWebViewConfirm,
  6. WebViewCallback onWebViewDone,
  7. WebViewCallback onWebViewRedirect,
  8. WebViewCallback onWebViewEasySuccess,
  9. WebViewCallback onWebViewEasyError,
)

Implementation

void initWebViewCallback(
    WebViewCallback onWebViewCancel,
    WebViewCallback onWebViewError,
    WebViewCallback onWebViewClose,
    WebViewCallback onWebViewIssued,
    WebViewCallback onWebViewConfirm,
    WebViewCallback onWebViewDone,
    WebViewCallback onWebViewRedirect,
    WebViewCallback onWebViewEasySuccess,
    WebViewCallback onWebViewEasyError,
    ) {
  if(webView != null) {
    webView?.onWebViewCancel = onWebViewCancel;
    webView?.onWebViewError = onWebViewError;
    webView?.onWebViewClose = onWebViewClose;
    webView?.onWebViewIssued = onWebViewIssued;
    webView?.onWebViewConfirm = onWebViewConfirm;
    webView?.onWebViewDone = onWebViewDone;
    webView?.onWebViewRedirect = onWebViewRedirect;
    webView?.onWebViewEasySuccess = onWebViewEasySuccess;
    webView?.onWebViewEasyError = onWebViewEasyError;
  }
}