startLiveness method

Future<bool> startLiveness()

Implementation

Future<bool> startLiveness() async {
  var result = await faceSDK.startLiveness(
    config: LivenessConfig(skipStep: [LivenessSkipStep.ONBOARDING_STEP]),
    notificationCompletion: (notification) {
      print(notification.status);
    },
  );

  return result.liveness == LivenessStatus.PASSED;
}