init method

void init(
  1. AffiseInitProperties initProperties
)

Implementation

void init(AffiseInitProperties initProperties) {
  nativeCallbackOnly(
    AffiseApiMethod.ON_INIT_SUCCESS_HANDLER,
    initProperties.onInitSuccessHandler,
  );

  nativeCallbackOnly(
    AffiseApiMethod.ON_INIT_ERROR_HANDLER,
    initProperties.onInitErrorHandler,
  );

  native(AffiseApiMethod.INIT, initProperties.toMap);
}