FUIWhatsNewViewControllerDelegate
public protocol FUIWhatsNewViewControllerDelegate : AnyObject
This protocol provides the method for the callback function for FUIWhatsNewViewControllerDelegate
.
It will be used by the application to customize the What’s New Screen.
-
Callback for responding to Page View Controller Events.
Called before a gesture-driven transition begins.
Declaration
Swift
func whatsNewViewController(_ whatsNewViewController: FUIWhatsNewViewController, willTransitionTo pendingViewControllerIndex: Int)
Parameters
whatsNewViewController
pendingViewControllerIndex
The index to the page that will be transitioned to.
-
Callback for responding to Page View Controller Events.
Called after a gesture-driven transition completes.
Declaration
Swift
func whatsNewViewController(_ whatsNewViewController: FUIWhatsNewViewController, didFinishAnimating finished: Bool, previousViewControllerIndex: Int, transitionCompleted completed: Bool)
Parameters
whatsNewViewController
finished
true if the animation finished; otherwise false.
previousViewControllers
The view controllers prior to the transition.
completed
true if the user completed the page-turn gesture; otherwise false.
-
Callback for responding to Page View Controller Events.
Called after a page view flow finished.
Declaration
Swift
func didFinishFlow(_ whatsNewViewController: FUIWhatsNewViewController)
Parameters
whatsNewViewController