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