public interface UIAdaptivePresentationControllerDelegate
| Modifier and Type | Method and Description |
|---|---|
default long |
adaptivePresentationStyleForPresentationController(UIPresentationController controller)
For iOS 8.0, the only supported adaptive presentation styles are UIModalPresentationFullScreen and UIModalPresentationOverFullScreen.
|
default long |
adaptivePresentationStyleForPresentationControllerTraitCollection(UIPresentationController controller,
UITraitCollection traitCollection)
Returning UIModalPresentationNone will indicate that an adaptation should not happen.
|
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.
|
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.
|
default void |
presentationControllerPrepareAdaptivePresentationController(UIPresentationController presentationController,
UIPresentationController adaptivePresentationController)
Called during adaptation so the delegate may configure properties of the adaptive presentation controller before it is presented.
|
default boolean |
presentationControllerShouldDismiss(UIPresentationController presentationController)
Called on the delegate to determine if the presentation controller may dismiss in response to user action.
|
default UIViewController |
presentationControllerViewControllerForAdaptivePresentationStyle(UIPresentationController controller,
long style)
If this method is not implemented, or returns nil, then the originally presented view controller is used.
|
default void |
presentationControllerWillDismiss(UIPresentationController presentationController)
Called on the delegate when the user has taken action to dismiss the presentation, before interaction or animations begin.
|
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.
|
default long adaptivePresentationStyleForPresentationController(UIPresentationController controller)
default long adaptivePresentationStyleForPresentationControllerTraitCollection(UIPresentationController controller, UITraitCollection traitCollection)
default UIViewController presentationControllerViewControllerForAdaptivePresentationStyle(UIPresentationController controller, long style)
default void presentationControllerWillPresentWithAdaptiveStyleTransitionCoordinator(UIPresentationController presentationController, long style, UIViewControllerTransitionCoordinator transitionCoordinator)
default void presentationControllerDidAttemptToDismiss(UIPresentationController presentationController)
default void presentationControllerDidDismiss(UIPresentationController presentationController)
default boolean presentationControllerShouldDismiss(UIPresentationController presentationController)
default void presentationControllerWillDismiss(UIPresentationController presentationController)
default void presentationControllerPrepareAdaptivePresentationController(UIPresentationController presentationController, UIPresentationController adaptivePresentationController)