CameraControllerUIDelegate

public protocol CameraControllerUIDelegate : AnyObject

Undocumented

  • Notifies the delegate that the camera controller has resolved a new list of available lenses

    Declaration

    Swift

    func cameraController(_ controller: CameraController, updatedLenses lenses: [Lens])

    Parameters

    controller

    The camera controller.

    lenses

    The newly available lenses.

  • Notifies the delegate that the camera controller is currently in a loading state, and an activity indicator should be displayed.

    Declaration

    Swift

    func cameraControllerRequestedActivityIndicatorShow(_ controller: CameraController)

    Parameters

    controller

    The camera controller.

  • Notifies the delegate that the camera controller is no longer in a loading state, and an activity indicator should be hidden.

    Declaration

    Swift

    func cameraControllerRequestedActivityIndicatorHide(_ controller: CameraController)

    Parameters

    controller

    The camera controller.

  • Notifies the delegate that the flash state is on in ring light mode and that the ring light effect should be shown.

    Declaration

    Swift

    func cameraControllerRequestedRingLightShow(_ controller: CameraController)

    Parameters

    controller

    The camera controller.

  • Notifies the delegate that the flash state is no longer in ring light mode and that the ring light effect should be hidden.

    Declaration

    Swift

    func cameraControllerRequestedRingLightHide(_ controller: CameraController)

    Parameters

    controller

    The camera controller.

  • Notifies the delegate that the flash state has changed such that the flash control should be hidden.

    Declaration

    Swift

    func cameraControllerRequestedFlashControlHide(_ controller: CameraController)

    Parameters

    controller

    The camera controller.

  • Notifies the delegate that the camera position should be flipped.

    Declaration

    Swift

    func cameraControllerRequestedCameraFlip(_ controller: CameraController)

    Parameters

    controller

    The camera controller.

  • Notifies the delegate that a lens has requested that a hint should be displayed

    Declaration

    Swift

    func cameraController(
        _ controller: CameraController, requestedHintDisplay hint: String, for lens: Lens, autohide: Bool)

    Parameters

    controller

    The camera controller.

    hint

    The hint text that should be displayed.

    lens

    The requesting lens.

    autohide

    Whether or not the hint should be automatically hidden, after a callee-determined amount of time.

  • Notifies the delegate that any hints requested by the specified lens should be hidden

    Declaration

    Swift

    func cameraController(_ controller: CameraController, requestedHintHideFor lens: Lens)

    Parameters

    controller

    The camera controller.

    lens

    The lens whose hints should be hidden.