startLiveness method
Future<LivenessResponse>
startLiveness({
- LivenessConfig? config,
- LivenessNotificationCompletion? notificationCompletion,
- CameraSwitchCallback? cameraSwitchCallback,
Implementation
Future<LivenessResponse> startLiveness({
LivenessConfig? config,
LivenessNotificationCompletion? notificationCompletion,
CameraSwitchCallback? cameraSwitchCallback,
}) async {
_setLivenessNotificationCompletion(notificationCompletion);
_setCameraSwitchCallback(cameraSwitchCallback);
var response = await _bridge.invokeMethod(
"startLiveness",
[config?.toJson()],
);
return LivenessResponse.fromJson(_decode(response))!;
}