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
controllerThe camera controller.
lensesThe 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
controllerThe 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
controllerThe 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
controllerThe 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
controllerThe 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
controllerThe camera controller.
-
Notifies the delegate that the snap attribution should be shown. For example, after the agreements have been accepted.
Declaration
Swift
func cameraControllerRequestedSnapAttributionViewShow(_ controller: CameraController)Parameters
controllerThe camera controller.
-
Notifies the delegate that the snap attribution should be hidden. For example, when a video is being recorded.
Declaration
Swift
func cameraControllerRequestedSnapAttributionViewHide(_ controller: CameraController)Parameters
controllerThe camera controller.
-
Notifies the delegate that the camera position should be flipped.
Declaration
Swift
func cameraControllerRequestedCameraFlip(_ controller: CameraController)Parameters
controllerThe 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
controllerThe camera controller.
hintThe hint text that should be displayed.
lensThe requesting lens.
autohideWhether 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
controllerThe camera controller.
lensThe lens whose hints should be hidden.