startLiveness method
Implementation
Future<(Uint8List?, String?)> startLiveness() async {
var result = await FaceSDK.instance.startLiveness(
config: LivenessConfig(),
notificationCompletion: (notification) {
debugPrint(notification.status.toString());
},
);
debugPrint("result of startLiveness: ${result.error?.message}");
debugPrint("face transaction id: ${result.transactionId}");
return (result.image, result.transactionId);
}