LMCameraBuilder
public struct LMCameraBuilder
Controller builder of the best shot.
-
viewController(delegate:
configuration: livenessAPI: lunaCustomization: canRecordVideo: interactionSteps: ) Creates a controller with the camera viewfinder. Controller which transmits the best shot or an error to the delegate.
Declaration
Swift
public static func viewController(delegate: LMCameraDelegate, configuration: LCLunaConfiguration, livenessAPI: LunaCore.LCOnlineLivenessProtocol, lunaCustomization: LMCustomization? = nil, canRecordVideo: Bool = false, interactionSteps: [LCStepConfigProtocol]? = nil) -> LMCameraViewControllerProtocol
Parameters
delegate
Delegate.
configuration
Luna ID SDK configuration.
Return Value
Returns an instance of the controller with the camera viewfinder.
-
viewController(delegate:
configuration: licenseConfig: livenessAPI: lunaCustomization: canRecordVideo: interactionSteps: ) Creates a controller with the camera viewfinder. Controller which transmits the best shot or an error to the delegate.
Declaration
Swift
public static func viewController(delegate: LMCameraDelegate, configuration: LCLunaConfiguration, licenseConfig: LCLicenseConfig, livenessAPI: LunaCore.LCOnlineLivenessProtocol, lunaCustomization: LMCustomization? = nil, canRecordVideo: Bool = false, interactionSteps: [LCStepConfigProtocol]? = nil) -> LMCameraViewControllerProtocol
Parameters
delegate
Delegate.
configuration
Luna ID SDK configuration.
licenseConfig
config for license check
livenessAPI
LunaAPI object to get access to LunaPlatform
lunaCustomization
Customization object if you want to modify UI details
canRecordVideo
true if you want to record video of the process
interactionSteps
custom interactions steps
Return Value
UIViewController which is ready to work