Package apple.uikit.protocol
Interface UIAdaptivePresentationControllerDelegate
-
- All Known Subinterfaces:
UIPopoverPresentationControllerDelegate
public interface UIAdaptivePresentationControllerDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default longadaptivePresentationStyleForPresentationController(UIPresentationController controller)For iOS 8.0, the only supported adaptive presentation styles are UIModalPresentationFullScreen and UIModalPresentationOverFullScreen.default longadaptivePresentationStyleForPresentationControllerTraitCollection(UIPresentationController controller, UITraitCollection traitCollection)Returning UIModalPresentationNone will indicate that an adaptation should not happen.default voidpresentationControllerDidAttemptToDismiss(UIPresentationController presentationController)Called on the delegate when the user attempts to dismiss the presentation, but user-initiated dismissal is prevented because the presentedViewController isModalInPresentation or presentationControllerShouldDismiss: returned NO.default voidpresentationControllerDidDismiss(UIPresentationController presentationController)Called on the delegate when the user has taken action to dismiss the presentation successfully, after all animations are finished.default booleanpresentationControllerShouldDismiss(UIPresentationController presentationController)Called on the delegate when the presentation controller will dismiss in response to user action.default UIViewControllerpresentationControllerViewControllerForAdaptivePresentationStyle(UIPresentationController controller, long style)If this method is not implemented, or returns nil, then the originally presented view controller is used.default voidpresentationControllerWillDismiss(UIPresentationController presentationController)Called on the delegate when the user has taken action to dismiss the presentation, before interaction or animations begin.default voidpresentationControllerWillPresentWithAdaptiveStyleTransitionCoordinator(UIPresentationController presentationController, long style, UIViewControllerTransitionCoordinator transitionCoordinator)If there is no adaptation happening and an original style is used UIModalPresentationNone will be passed as an argument.
-
-
-
Method Detail
-
adaptivePresentationStyleForPresentationController
default long adaptivePresentationStyleForPresentationController(UIPresentationController controller)
For iOS 8.0, the only supported adaptive presentation styles are UIModalPresentationFullScreen and UIModalPresentationOverFullScreen.
-
adaptivePresentationStyleForPresentationControllerTraitCollection
default long adaptivePresentationStyleForPresentationControllerTraitCollection(UIPresentationController controller, UITraitCollection traitCollection)
Returning UIModalPresentationNone will indicate that an adaptation should not happen.
-
presentationControllerViewControllerForAdaptivePresentationStyle
default UIViewController presentationControllerViewControllerForAdaptivePresentationStyle(UIPresentationController controller, long style)
If this method is not implemented, or returns nil, then the originally presented view controller is used.
-
presentationControllerWillPresentWithAdaptiveStyleTransitionCoordinator
default void presentationControllerWillPresentWithAdaptiveStyleTransitionCoordinator(UIPresentationController presentationController, long style, UIViewControllerTransitionCoordinator transitionCoordinator)
If there is no adaptation happening and an original style is used UIModalPresentationNone will be passed as an argument.
-
presentationControllerDidAttemptToDismiss
default void presentationControllerDidAttemptToDismiss(UIPresentationController presentationController)
Called on the delegate when the user attempts to dismiss the presentation, but user-initiated dismissal is prevented because the presentedViewController isModalInPresentation or presentationControllerShouldDismiss: returned NO. When this method is called, it is recommended that the user be informed why they cannot dismiss the presentation, such as by presenting an instance of UIAlertController.
-
presentationControllerDidDismiss
default void presentationControllerDidDismiss(UIPresentationController presentationController)
Called on the delegate when the user has taken action to dismiss the presentation successfully, after all animations are finished. This is not called if the presentation is dismissed programatically.
-
presentationControllerShouldDismiss
default boolean presentationControllerShouldDismiss(UIPresentationController presentationController)
Called on the delegate when the presentation controller will dismiss in response to user action. This method is not called if the presentedViewController isModalInPresentation or if the presentation is dismissed programatically. Return NO to prevent dismissal of the view controller.
-
presentationControllerWillDismiss
default void presentationControllerWillDismiss(UIPresentationController presentationController)
Called on the delegate when the user has taken action to dismiss the presentation, before interaction or animations begin. Use this callback to setup alongside animations or interaction notifications with the presentingViewController's transitionCoordinator. This is not called if the presentation is dismissed programatically.
-
-