LMCameraBuilder

public struct LMCameraBuilder

Controller builder of the best shot.

  • 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.

    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

    uiOrientation

    user interface orientation for camera session. Portrait by default.

    Return Value

    Returns an instance of the controller with the camera viewfinder.

  • 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

    uiOrientation

    user interface orientation for camera session. Portrait by default.

    Return Value

    UIViewController which is ready to work