UserInterface
final class UserInterface : Sendable
UI.
-
Create and returns a
View
that handles capturing a check.Declaration
Swift
@MainActor public func createCaptureCheckView( cameraToken: String, cameraConfig: ALCameraConfiguration, overlay: (any View)? = nil, onCompletion: @escaping @Sendable (ALCameraResult) -> Void ) -> some View
Parameters
cameraToken
The token to authenticate the Camera SDK.
cameraConfig
Camera configuration.
overlay
Custom overlay view.
onCompletion
Completion handler.
Return Value
A
View
instance. -
createCheckDepositView(token:
cameraToken: cameraConfigs: walletUuid: data: overlay: loading: failure: onCompletion: ) Create and returns a
View
that handles depositing a check.Declaration
Swift
@MainActor public func createCheckDepositView( token: String, cameraToken: String, cameraConfigs: [ALCameraConfiguration] = [.checkFront, .checkBack], walletUuid: String, data: DepositCheckRequest, overlay: (any View)? = nil, loading: (any View)? = nil, failure: (any View)? = nil, onCompletion: @escaping @Sendable (Result<Check, ALCameraError>) -> Void ) -> some View
Parameters
token
The token to authenticate the SDK.
cameraToken
The token to authenticate the Camera SDK.
cameraConfigs
Camera configurations.
walletUuid
The wallet uuid.
data
The data needed for the request.
overlay
Custom overlay view.
loading
Custom loading view.
failure
Custom failure view.
onCompletion
Completion handler.
Return Value
A
View
instance.