startOnboarding method

  1. @override
Future<void> startOnboarding({
  1. required String folderUid,
})
override

Start an onboarding session with the given folder uid.

folderUid The folder that will be used to run the session.

Void on success. Throws An error of type IDCheckioError if the session fails.

Implementation

@override
Future<void> startOnboarding({required String folderUid}) async {
  try {
    await (methodChannel.invokeMethod(MethodName.startOnboarding.name, <String, dynamic>{
      ArgumentKey.folderUid.name: folderUid,
    }));
  } on PlatformException catch (e) {
    throw PlatformException(code: captureFailedCode, message: e.message);
  }
}