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) -> LMCameraViewControllerProtocolParameters
delegateDelegate.
configurationLuna 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) -> LMCameraViewControllerProtocolParameters
delegateDelegate.
configurationLuna ID SDK configuration.
licenseConfigconfig for license check
livenessAPILunaAPI object to get access to LunaPlatform
lunaCustomizationCustomization object if you want to modify UI details
canRecordVideotrue if you want to record video of the process
interactionStepscustom interactions steps
Return Value
UIViewController which is ready to work
LMCameraBuilder Structure Reference