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
libraryControllerThe 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
libraryControllerThe controller responsible for calling this method.
sessionThe session that was generated by the
LibraryController. 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.segmentThis will be passed if the user selected a specific segment from the session. This will only happen if
splitVideoDraftsIntoSegmentsis true. -
This will be called when the Next button is pressed 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 libraryController(_ libraryController: LibraryController, willShowEditController editController: EditController, withSession session: Session)Parameters
libraryControllerThe controller responsible for calling this method.
editControllerThe new
EditControllerthat will be pushed onto the navigation stack.sessionThe session that was generated by the
LibraryControllerand will be passed to theEditController. Destroying the session will result in undocumented behavior.
View on GitHub
LibraryControllerDelegate Protocol Reference