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
currentModevariable.Declaration
Swift
@objc optional func containerControllerDidChangeMode(_ containerController: ContainerController)Parameters
containerControllerThe controller responsible for calling this method.
-
This will be called when either the Cancel button is pressed in the
LibraryControlleror the cross button is pressed in theCameraController.Declaration
Swift
@objc optional func containerControllerDidCancel(_ containerController: ContainerController)Parameters
containerControllerThe controller responsible for calling this method.
-
This will be called when either the
LibraryControllerorCameraControlleris about to push a newEditControlleronto the navigation stack. If you wish to make any additional customizations to theEditControllerbefore it is pushed, you may do so here.Declaration
Swift
@objc optional func containerController(_ containerController: ContainerController, willShowEditController editController: EditController, withSession session: Session)Parameters
containerControllerThe controller responsible for calling this method.
editControllerThe new
EditControllerthat will be pushed onto the navigation stack.sessionThe session that was generated by the
LibraryControllerorCameraControllerand will be passed to theEditController. Destroying the session will result in undocumented behavior.
View on GitHub
ContainerControllerDelegate Protocol Reference