FaceLivenessDetectorView
@MainActor
public struct FaceLivenessDetectorView : View
A view to present when performing liveness detection.
-
init(result:sessionAuthorizationToken: verifyImageFileContent: deviceCorrelationId: userCorrelationId: ) Creates a liveness detector view to guide the process of liveness detection.
When the
sessionAuthorizationTokenallows,deviceCorrelationId,userCorrelationIdand/orverifyImageFileContentcan be specified here. Else, they are typically predefined from service and re-specifying them will result in an error.Declaration
Swift
@MainActor public init(result: Binding<LivenessDetectionResult?>, sessionAuthorizationToken: String, verifyImageFileContent: Data? = nil, deviceCorrelationId: String? = nil, userCorrelationId: String? = nil)Parameters
resultThe result of liveness detection. It is only
nilwhile the analysis has not completed.sessionAuthorizationTokenThe token for session authorization.
verifyImageFileContentThe
Datacontaining client-specified image to perform recognition against, if required.deviceCorrelationIdThe client-specified correlation ID, if required.
userCorrelationIdThe client-specified user correlation ID, if required.
-
Declaration
Swift
@MainActor public var body: some View { get }