CameraControllerDelegate
@objc
public protocol CameraControllerDelegate
Use this delegate to handle events that occur in the CameraController.
-
This will be called when the Cross button is pressed.
Declaration
Swift
@objc optional func cameraControllerDidCancel(_ cameraController: CameraController)Parameters
cameraControllerThe controller responsible for calling this method.
-
This will be called when a photo is taken or the Done button is pressed while taking video.
Declaration
Swift
@objc optional func cameraController(_ cameraController: CameraController, didFinishWithSession session: Session)Parameters
cameraControllerThe controller responsible for calling this method.
sessionThe session that was generated by the
CameraController. IfshowsEditControllerWhenDoneis false, you are responsible for destroying the session if you do not want it to persist. If it is true, destroying the session will result in undocumented behavior. -
This will be called when a photo is taken or the Done button is pressed while taking video, and
showsEditControllerWhenDoneis true. If you wish to make any additional customizations to the ‘EditController’ before it is pushed, you may do so here.Declaration
Swift
@objc optional func cameraController(_ cameraController: CameraController, willShowEditController editController: EditController, withSession session: Session)Parameters
cameraControllerThe controller responsible for calling this method.
editControllerThe new
EditControllerthat will be pushed onto the navigation stack.sessionThe session that was generated by the
CameraControllerand will be passed to theEditController. Destroying the session will result in undocumented behavior.
View on GitHub
CameraControllerDelegate Protocol Reference