setOnDismissCallback static method

Future<void> setOnDismissCallback(
  1. OnSDKDismissCallback callback
)

Sets a block of code to be executed just before the SDK's UI is presented. This block is executed on the UI thread. Could be used for performing any UI changes before the SDK's UI is shown. callback A callback that gets executed before invoking the SDK

Implementation

static Future<void> setOnDismissCallback(
  OnSDKDismissCallback callback,
) async {
  _onDismissCallback = callback;
  return _host.bindOnDismissCallback();
}