UserInterface
final class UserInterface : Sendable
UI.
-
Create and returns a
Viewthat handles capturing a document.Declaration
Swift
@MainActor public func createCaptureDocumentView( cameraToken: String, cameraConfig: ALCameraConfiguration, overlay: (any View)? = nil, onCompletion: @escaping @Sendable (ALCameraResult) -> Void ) -> some ViewParameters
cameraTokenThe token to authenticate the Camera SDK.
cameraConfigCamera configuration.
overlayCustom overlay view.
onCompletionCompletion handler.
Return Value
A
Viewinstance. -
Create and returns a
Viewthat handles uploading a dossier.Declaration
Swift
@MainActor public func createDossierUploadView( token: String, cameraToken: String, cameraConfigs: [(DocumentType, ALCameraConfiguration)], data: AccountDossierUploadRequest, overlay: (any View)? = nil, loading: (any View)? = nil, failure: (any View)? = nil, onCompletion: @escaping @Sendable (Result<AccountDossier, ALCameraError>) -> Void ) -> some ViewParameters
tokenThe token to authenticate the SDK.
cameraTokenThe token to authenticate the Camera SDK.
cameraConfigsCamera configurations.
dataThe data needed for the request.
overlayCustom overlay view.
loadingCustom loading view.
failureCustom failure view.
onCompletionCompletion handler.
Return Value
A
Viewinstance. -
Create and returns a
Viewthat handles uploading a dossier.Declaration
Swift
@MainActor public func createDossierUploadView( token: String, cameraToken: String, documentTypes: [DocumentType], data: AccountDossierUploadRequest, overlay: (any View)? = nil, loading: (any View)? = nil, failure: (any View)? = nil, onCompletion: @escaping @Sendable (Result<AccountDossier, ALCameraError>) -> Void ) -> some ViewParameters
tokenThe token to authenticate the SDK.
cameraTokenThe token to authenticate the Camera SDK.
documentTypesThe document types to capture.
dataThe data needed for the request.
overlayCustom overlay view.
loadingCustom loading view.
failureCustom failure view.
onCompletionCompletion handler.
Return Value
A
Viewinstance.
View on GitHub