LMCameraDelegate

public protocol LMCameraDelegate : AnyObject

Controller’s delegate with the camera viewfinder..

  • Called when the best shot of the face is found.

    Declaration

    Swift

    func bestShot(_ bestShot: LunaCore.LCBestShotModel, _ videoFile: String?)

    Parameters

    bestShot

    The best shot.

  • Called when the best shots of the face is collected. This method is called only if isMultipartBestShots is set to true.

    Declaration

    Swift

    func multipartBestShots(_ bestShots: [LunaCore.LCBestShotModel], _ videoFile: String?)

    Parameters

    bestShot

    The best shots.

  • Called when an error occurred.

    Declaration

    Swift

    func error(_ error: LMCameraError, _ videoFile: String?)

    Parameters

    error

    Error.

  • interactionsFinish(with:) Default implementation

    Called when interactions finished.

    Default Implementation

    Declaration

    Swift

    func interactionsFinish(with interactionFrames: [LCInteractionFrameInfo])

    Parameters

    interactionFrames

    List of frame with step type info.