initSdk method

Future initSdk({
  1. bool registerConversionDataCallback = false,
})

Implementation

Future<dynamic> initSdk({bool registerConversionDataCallback = false}) {
  debugPrint('check user---> af channel initSdk invoke');
  return _methodChannel
      .invokeMethod<dynamic>(
    'initSdk',
    options.toMap(
      registerConversionDataCallback: registerConversionDataCallback,
    ),
  )
      .then((dynamic result) {
    debugPrint('check user---> af channel initSdk result--->$result');
    return result;
  }).catchError((Object error, StackTrace stackTrace) {
    debugPrint('check user---> af channel initSdk error--->$error');
    Error.throwWithStackTrace(error, stackTrace);
  });
}