LibraryControllerDelegate
@objc
public protocol LibraryControllerDelegate
Use this delegate to handle events that occur in the LibraryController
.
-
This will be called when the Cancel button is pressed.
Declaration
Swift
@objc optional func libraryControllerDidCancel(_ libraryController: LibraryController)
Parameters
libraryController
The controller responsible for calling this method.
-
This will be called when the Next button is pressed.
Declaration
Swift
@objc optional func libraryController(_ libraryController: LibraryController, didFinishWithSession session: Session, withSegment segment: SessionVideoSegment?)
Parameters
libraryController
The controller responsible for calling this method.
session
The session that was generated by the
LibraryController
. 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.segment
This will be passed if the user selected a specific segment from the session. This will only happen if
splitVideoDraftsIntoSegments
is true. -
This will be called when the Next button is pressed 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 libraryController(_ libraryController: LibraryController, willShowEditController editController: EditController, withSession session: Session)
Parameters
libraryController
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
and will be passed to theEditController
. Destroying the session will result in undocumented behavior.