ContainerControllerDelegate
@objc
public protocol ContainerControllerDelegate
Use this delegate to handle events that occur in the ContainerController
or any of its children controllers.
-
This will be called whenever the user switches between tabs.
You can retrieve the new mode from the
currentMode
variable.Declaration
Swift
@objc optional func containerControllerDidChangeMode(_ containerController: ContainerController)
Parameters
containerController
The controller responsible for calling this method.
-
This will be called when either the Cancel button is pressed in the
LibraryController
or the cross button is pressed in theCameraController
.Declaration
Swift
@objc optional func containerControllerDidCancel(_ containerController: ContainerController)
Parameters
containerController
The controller responsible for calling this method.
-
This will be called when either the
LibraryController
orCameraController
is about to push a newEditController
onto the navigation stack. If you wish to make any additional customizations to theEditController
before it is pushed, you may do so here.Declaration
Swift
@objc optional func containerController(_ containerController: ContainerController, willShowEditController editController: EditController, withSession session: Session)
Parameters
containerController
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
LibraryController
orCameraController
and will be passed to theEditController
. Destroying the session will result in undocumented behavior.