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
cameraController
The 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
cameraController
The controller responsible for calling this method.
session
The session that was generated by the
CameraController
. IfshowsEditControllerWhenDone
is 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
showsEditControllerWhenDone
is 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
cameraController
The controller responsible for calling this method.
editController
The new
EditController
that will be pushed onto the navigation stack.session
The session that was generated by the
CameraController
and will be passed to theEditController
. Destroying the session will result in undocumented behavior.