Class UIViewController

All Implemented Interfaces:
NSCoding, NSExtensionRequestHandling, NSObjectProtocol, UIActivityItemsConfigurationProviding, UIAppearanceContainer, UIContentContainer, UIFocusEnvironment, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UIStateRestoring, UITraitEnvironment, UIUserActivityRestoring, ObjCProtocol
Direct Known Subclasses:
ABNewPersonViewController, ABPersonViewController, ABUnknownPersonViewController, ADInterstitialAdPresentationViewController, ASAccountAuthenticationModificationViewController, ASCredentialProviderViewController, AUViewController, AVPictureInPictureVideoCallViewController, AVPlayerViewController, CABTMIDILocalPeripheralViewController, CNContactPickerViewController, CNContactViewController, EKCalendarChooser, EKEventViewController, FPUIActionExtensionViewController, GCEventViewController, GLKViewController, ILClassificationUIExtensionViewController, INUIAddVoiceShortcutViewController, INUIEditVoiceShortcutViewController, MCBrowserViewController, MPMediaPickerController, MPMoviePlayerViewController, MSMessagesAppViewController, MSStickerBrowserViewController, PHPickerViewController, PKAddPassesViewController, PKAddPaymentPassViewController, PKAddSecureElementPassViewController, PKPaymentAuthorizationViewController, QLPreviewController, RPBroadcastActivityViewController, RPPreviewViewController, SFSafariViewController, SKCloudServiceSetupViewController, SKStoreProductViewController, SLComposeServiceViewController, SLComposeViewController, STWebpageController, TWTweetComposeViewController, UIActivityViewController, UIAlertController, UICloudSharingController, UICollectionViewController, UIColorPickerViewController, UIDocumentBrowserViewController, UIDocumentMenuViewController, UIDocumentPickerExtensionViewController, UIDocumentPickerViewController, UIFontPickerViewController, UIInputViewController, UINavigationController, UIPageViewController, UIReferenceLibraryViewController, UISearchContainerViewController, UISearchController, UISplitViewController, UITabBarController, UITableViewController, VNDocumentCameraViewController

public class UIViewController
extends UIResponder
implements NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment, UIStateRestoring, NSExtensionRequestHandling
  • Constructor Details

    • UIViewController

      public UIViewController()
    • UIViewController

      @Deprecated protected UIViewController​(long handle)
      Deprecated.
    • UIViewController

      protected UIViewController​(NSObject.Handle h, long handle)
    • UIViewController

      protected UIViewController​(NSObject.SkipInit skipInit)
    • UIViewController

      public UIViewController​(String nibNameOrNil, NSBundle nibBundleOrNil)
    • UIViewController

      public UIViewController​(NSCoder coder)
  • Method Details

    • getView

      public UIView getView()
    • setView

      public void setView​(UIView v)
    • getViewIfLoaded

      public UIView getViewIfLoaded()
      Since:
      Available in iOS 9.0 and later.
    • isViewLoaded

      public boolean isViewLoaded()
    • getNibName

      public String getNibName()
    • getNibBundle

      public NSBundle getNibBundle()
    • getStoryboard

      public UIStoryboard getStoryboard()
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle​(String v)
    • getParentViewController

      public UIViewController getParentViewController()
    • getPresentedViewController

      public UIViewController getPresentedViewController()
    • getPresentingViewController

      public UIViewController getPresentingViewController()
    • definesPresentationContext

      public boolean definesPresentationContext()
    • setDefinesPresentationContext

      public void setDefinesPresentationContext​(boolean v)
    • providesPresentationContextTransitionStyle

      public boolean providesPresentationContextTransitionStyle()
    • setProvidesPresentationContextTransitionStyle

      public void setProvidesPresentationContextTransitionStyle​(boolean v)
    • isRestoresFocusAfterTransition

      public boolean isRestoresFocusAfterTransition()
      Since:
      Available in iOS 10.0 and later.
    • setRestoresFocusAfterTransition

      public void setRestoresFocusAfterTransition​(boolean v)
      Since:
      Available in iOS 10.0 and later.
    • getFocusGroupIdentifier

      public String getFocusGroupIdentifier()
      Specified by:
      getFocusGroupIdentifier in interface UIFocusEnvironment
      Since:
      Available in iOS 15.0 and later.
    • setFocusGroupIdentifier

      public void setFocusGroupIdentifier​(String v)
      Since:
      Available in iOS 15.0 and later.
    • isBeingPresented

      public boolean isBeingPresented()
    • isBeingDismissed

      public boolean isBeingDismissed()
    • isMovingToParentViewController

      public boolean isMovingToParentViewController()
    • isMovingFromParentViewController

      public boolean isMovingFromParentViewController()
    • getModalTransitionStyle

      public UIModalTransitionStyle getModalTransitionStyle()
    • setModalTransitionStyle

      public void setModalTransitionStyle​(UIModalTransitionStyle v)
    • getModalPresentationStyle

      public UIModalPresentationStyle getModalPresentationStyle()
    • setModalPresentationStyle

      public void setModalPresentationStyle​(UIModalPresentationStyle v)
    • modalPresentationCapturesStatusBarAppearance

      public boolean modalPresentationCapturesStatusBarAppearance()
    • setModalPresentationCapturesStatusBarAppearance

      public void setModalPresentationCapturesStatusBarAppearance​(boolean v)
    • disablesAutomaticKeyboardDismissal

      public boolean disablesAutomaticKeyboardDismissal()
    • wantsFullScreenLayout

      @Deprecated public boolean wantsFullScreenLayout()
      Deprecated.
      Deprecated in iOS 7.0.
    • setWantsFullScreenLayout

      @Deprecated public void setWantsFullScreenLayout​(boolean v)
      Deprecated.
      Deprecated in iOS 7.0.
    • getEdgesForExtendedLayout

      public UIRectEdge getEdgesForExtendedLayout()
    • setEdgesForExtendedLayout

      public void setEdgesForExtendedLayout​(UIRectEdge v)
    • extendedLayoutIncludesOpaqueBars

      public boolean extendedLayoutIncludesOpaqueBars()
    • setExtendedLayoutIncludesOpaqueBars

      public void setExtendedLayoutIncludesOpaqueBars​(boolean v)
    • automaticallyAdjustsScrollViewInsets

      @Deprecated public boolean automaticallyAdjustsScrollViewInsets()
      Deprecated.
      Deprecated in iOS 11.0. Use UIScrollView's contentInsetAdjustmentBehavior instead
    • setAutomaticallyAdjustsScrollViewInsets

      @Deprecated public void setAutomaticallyAdjustsScrollViewInsets​(boolean v)
      Deprecated.
      Deprecated in iOS 11.0. Use UIScrollView's contentInsetAdjustmentBehavior instead
    • getPreferredContentSize

      public CGSize getPreferredContentSize()
      Specified by:
      getPreferredContentSize in interface UIContentContainer
    • setPreferredContentSize

      public void setPreferredContentSize​(CGSize v)
    • getPreferredStatusBarStyle

      public UIStatusBarStyle getPreferredStatusBarStyle()
    • prefersStatusBarHidden

      public boolean prefersStatusBarHidden()
    • getPreferredStatusBarUpdateAnimation

      public UIStatusBarAnimation getPreferredStatusBarUpdateAnimation()
    • getOverrideUserInterfaceStyle

      public UIUserInterfaceStyle getOverrideUserInterfaceStyle()
      Since:
      Available in iOS 13.0 and later.
    • setOverrideUserInterfaceStyle

      public void setOverrideUserInterfaceStyle​(UIUserInterfaceStyle v)
      Since:
      Available in iOS 13.0 and later.
    • shouldAutorotate

      public boolean shouldAutorotate()
    • getSupportedInterfaceOrientations

      public UIInterfaceOrientationMask getSupportedInterfaceOrientations()
    • getPreferredInterfaceOrientationForPresentation

      public UIInterfaceOrientation getPreferredInterfaceOrientationForPresentation()
    • getInterfaceOrientation

      @Deprecated public UIInterfaceOrientation getInterfaceOrientation()
      Deprecated.
      Deprecated in iOS 8.0.
    • isEditing

      public boolean isEditing()
    • setEditing

      public void setEditing​(boolean v)
    • getEditButtonItem

      public UIBarButtonItem getEditButtonItem()
    • getSearchDisplayController

      @Deprecated public UISearchDisplayController getSearchDisplayController()
      Deprecated.
      Deprecated in iOS 8.0.
    • getChildViewControllers

      public NSArray<UIViewController> getChildViewControllers()
    • getChildViewControllerForStatusBarStyle

      public UIViewController getChildViewControllerForStatusBarStyle()
    • getChildViewControllerForStatusBarHidden

      public UIViewController getChildViewControllerForStatusBarHidden()
    • shouldAutomaticallyForwardAppearanceMethods

      public boolean shouldAutomaticallyForwardAppearanceMethods()
    • getRestorationIdentifier

      public String getRestorationIdentifier()
    • setRestorationIdentifier

      public void setRestorationIdentifier​(String v)
    • getRestorationClass

      public ObjCClass getRestorationClass()
    • setRestorationClass

      public void setRestorationClass​(ObjCClass v)
    • getTransitioningDelegate

      public UIViewControllerTransitioningDelegate getTransitioningDelegate()
    • setTransitioningDelegate

      public void setTransitioningDelegate​(UIViewControllerTransitioningDelegate v)
    • getTopLayoutGuide

      @Deprecated public UILayoutSupport getTopLayoutGuide()
      Deprecated.
      Deprecated in iOS 11.0. Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor
    • getBottomLayoutGuide

      @Deprecated public UILayoutSupport getBottomLayoutGuide()
      Deprecated.
      Deprecated in iOS 11.0. Use view.safeAreaLayoutGuide.bottomAnchor instead of bottomLayoutGuide.topAnchor
    • getAdditionalSafeAreaInsets

      public UIEdgeInsets getAdditionalSafeAreaInsets()
      Since:
      Available in iOS 11.0 and later.
    • setAdditionalSafeAreaInsets

      public void setAdditionalSafeAreaInsets​(UIEdgeInsets v)
      Since:
      Available in iOS 11.0 and later.
    • getSystemMinimumLayoutMargins

      public NSDirectionalEdgeInsets getSystemMinimumLayoutMargins()
      Since:
      Available in iOS 11.0 and later.
    • isViewRespectsSystemMinimumLayoutMargins

      public boolean isViewRespectsSystemMinimumLayoutMargins()
      Since:
      Available in iOS 11.0 and later.
    • setViewRespectsSystemMinimumLayoutMargins

      public void setViewRespectsSystemMinimumLayoutMargins​(boolean v)
      Since:
      Available in iOS 11.0 and later.
    • performsActionsWhilePresentingModally

      public boolean performsActionsWhilePresentingModally()
      Since:
      Available in iOS 13.0 and later.
    • getExtensionContext

      public NSExtensionContext getExtensionContext()
    • getPresentationController

      public UIPresentationController getPresentationController()
    • getSheetPresentationController

      public UISheetPresentationController getSheetPresentationController()
      Since:
      Available in iOS 15.0 and later.
    • getPopoverPresentationController

      public UIPopoverPresentationController getPopoverPresentationController()
    • isModalInPresentation

      public boolean isModalInPresentation()
      Since:
      Available in iOS 13.0 and later.
    • setModalInPresentation

      public void setModalInPresentation​(boolean v)
      Since:
      Available in iOS 13.0 and later.
    • getChildViewControllerForScreenEdgesDeferringSystemGestures

      public UIViewController getChildViewControllerForScreenEdgesDeferringSystemGestures()
      Since:
      Available in iOS 11.0 and later.
    • getPreferredScreenEdgesDeferringSystemGestures

      public UIRectEdge getPreferredScreenEdgesDeferringSystemGestures()
      Since:
      Available in iOS 11.0 and later.
    • getChildViewControllerForHomeIndicatorAutoHidden

      public UIViewController getChildViewControllerForHomeIndicatorAutoHidden()
      Since:
      Available in iOS 11.0 and later.
    • prefersHomeIndicatorAutoHidden

      public boolean prefersHomeIndicatorAutoHidden()
      Since:
      Available in iOS 11.0 and later.
    • getChildViewControllerForPointerLock

      public UIViewController getChildViewControllerForPointerLock()
      Since:
      Available in iOS 14.0 and later.
    • prefersPointerLocked

      public boolean prefersPointerLocked()
      Since:
      Available in iOS 14.0 and later.
    • getPreviewActionItems

      @Deprecated public List<UIPreviewActionItem> getPreviewActionItems()
      Deprecated.
      Deprecated in iOS 13.0. UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
      Since:
      Available in iOS 9.0 and later.
    • getNavigationItem

      public UINavigationItem getNavigationItem()
    • hidesBottomBarWhenPushed

      public boolean hidesBottomBarWhenPushed()
    • setHidesBottomBarWhenPushed

      public void setHidesBottomBarWhenPushed​(boolean v)
    • getNavigationController

      public UINavigationController getNavigationController()
    • getToolbarItems

      public NSArray<UIBarButtonItem> getToolbarItems()
    • setToolbarItems

      public void setToolbarItems​(NSArray<UIBarButtonItem> v)
    • isModalInPopover

      @Deprecated public boolean isModalInPopover()
      Deprecated.
      Deprecated in iOS 13.0. Use modalInPresentation
    • setModalInPopover

      @Deprecated public void setModalInPopover​(boolean v)
      Deprecated.
      Deprecated in iOS 13.0. Use modalInPresentation
    • getContentSizeForViewInPopover

      @Deprecated public CGSize getContentSizeForViewInPopover()
      Deprecated.
      Deprecated in iOS 7.0. Use preferredContentSize
    • setContentSizeForViewInPopover

      @Deprecated public void setContentSizeForViewInPopover​(CGSize v)
      Deprecated.
      Deprecated in iOS 7.0. Use preferredContentSize
    • getTransitionCoordinator

      public UIViewControllerTransitionCoordinator getTransitionCoordinator()
    • getSplitViewController

      public UISplitViewController getSplitViewController()
    • getTabBarItem

      public UITabBarItem getTabBarItem()
    • setTabBarItem

      public void setTabBarItem​(UITabBarItem v)
    • getTabBarController

      public UITabBarController getTabBarController()
    • getTraitCollection

      public UITraitCollection getTraitCollection()
      Specified by:
      getTraitCollection in interface UITraitEnvironment
    • getPreferredFocusEnvironments

      public List<UIFocusEnvironment> getPreferredFocusEnvironments()
      Specified by:
      getPreferredFocusEnvironments in interface UIFocusEnvironment
    • getParentFocusEnvironment

      public UIFocusEnvironment getParentFocusEnvironment()
      Specified by:
      getParentFocusEnvironment in interface UIFocusEnvironment
      Since:
      Available in iOS 12.0 and later.
    • getFocusItemContainer

      public UIFocusItemContainer getFocusItemContainer()
      Specified by:
      getFocusItemContainer in interface UIFocusEnvironment
      Since:
      Available in iOS 12.0 and later.
    • getPreferredFocusedView

      @Deprecated public UIView getPreferredFocusedView()
      Deprecated.
      Deprecated in iOS 10.0. Use preferredFocusEnvironments
      Specified by:
      getPreferredFocusedView in interface UIFocusEnvironment
      Since:
      Available in iOS 9.0 and later.
    • getRestorationParent

      public UIStateRestoring getRestorationParent()
      Specified by:
      getRestorationParent in interface UIStateRestoring
    • getObjectRestorationClass

      public Class<?> getObjectRestorationClass()
      Specified by:
      getObjectRestorationClass in interface UIStateRestoring
    • getInterstitialPresentationPolicy

      public ADInterstitialPresentationPolicy getInterstitialPresentationPolicy()
      Since:
      Available in iOS 7.0 and later.
    • setInterstitialPresentationPolicy

      public void setInterstitialPresentationPolicy​(ADInterstitialPresentationPolicy v)
      Since:
      Available in iOS 7.0 and later.
    • isCanDisplayBannerAds

      public boolean isCanDisplayBannerAds()
      Since:
      Available in iOS 7.0 and later.
    • setCanDisplayBannerAds

      public void setCanDisplayBannerAds​(boolean v)
      Since:
      Available in iOS 7.0 and later.
    • getOriginalContentView

      public UIView getOriginalContentView()
      Since:
      Available in iOS 7.0 and later.
    • isPresentingFullScreenAd

      public boolean isPresentingFullScreenAd()
      Since:
      Available in iOS 7.0 and later.
    • isDisplayingBannerAd

      public boolean isDisplayingBannerAd()
      Since:
      Available in iOS 7.0 and later.
    • requestInterstitialAdPresentation

      public boolean requestInterstitialAdPresentation()
      Since:
      Available in iOS 7.0 and later.
    • shouldPresentInterstitialAd

      public boolean shouldPresentInterstitialAd()
      Since:
      Available in iOS 7.0 and later.
    • prepareInterstitialAds

      public static void prepareInterstitialAds()
      Since:
      Available in iOS 7.0 and later.
    • presentMoviePlayerViewController

      public void presentMoviePlayerViewController​(MPMoviePlayerViewController moviePlayerViewController)
    • dismissMoviePlayerViewController

      public void dismissMoviePlayerViewController()
    • ShowDetailTargetDidChangeNotification

      public static NSString ShowDetailTargetDidChangeNotification()
    • init

      protected long init​(String nibNameOrNil, NSBundle nibBundleOrNil)
    • init

      protected long init​(NSCoder coder)
    • loadView

      public void loadView()
    • loadViewIfNeeded

      public void loadViewIfNeeded()
      Since:
      Available in iOS 9.0 and later.
    • viewDidLoad

      public void viewDidLoad()
    • performSegue

      public void performSegue​(String identifier, NSObject sender)
    • shouldPerformSegue

      public boolean shouldPerformSegue​(String identifier, NSObject sender)
    • prepareForSegue

      public void prepareForSegue​(UIStoryboardSegue segue, NSObject sender)
    • canPerformUnwindSegueAction

      public boolean canPerformUnwindSegueAction​(Selector action, UIViewController fromViewController, NSObject sender)
      Since:
      Available in iOS 13.0 and later.
    • canPerformUnwind

      @Deprecated public boolean canPerformUnwind​(Selector action, UIViewController fromViewController, NSObject sender)
      Deprecated.
      Deprecated in iOS 13.0. Use canPerformUnwindSegueAction:fromViewController:sender:
    • getAllowedChildViewControllersForUnwinding

      public NSArray<UIViewController> getAllowedChildViewControllersForUnwinding​(UIStoryboardUnwindSegueSource source)
      Since:
      Available in iOS 9.0 and later.
    • getChildViewControllerContainingSegueSource

      public UIViewController getChildViewControllerContainingSegueSource​(UIStoryboardUnwindSegueSource source)
      Since:
      Available in iOS 9.0 and later.
    • getViewControllerForUnwind

      @Deprecated public UIViewController getViewControllerForUnwind​(Selector action, UIViewController fromViewController, NSObject sender)
      Deprecated.
      Deprecated in iOS 9.0.
    • unwind

      public void unwind​(UIStoryboardSegue unwindSegue, UIViewController subsequentVC)
      Since:
      Available in iOS 9.0 and later.
    • getSegueForUnwinding

      @Deprecated public UIStoryboardSegue getSegueForUnwinding​(UIViewController toViewController, UIViewController fromViewController, String identifier)
      Deprecated.
      Deprecated in iOS 9.0.
    • viewWillAppear

      public void viewWillAppear​(boolean animated)
    • viewDidAppear

      public void viewDidAppear​(boolean animated)
    • viewWillDisappear

      public void viewWillDisappear​(boolean animated)
    • viewDidDisappear

      public void viewDidDisappear​(boolean animated)
    • viewWillLayoutSubviews

      public void viewWillLayoutSubviews()
    • viewDidLayoutSubviews

      public void viewDidLayoutSubviews()
    • didReceiveMemoryWarning

      public void didReceiveMemoryWarning()
    • presentViewController

      public void presentViewController​(UIViewController viewControllerToPresent, boolean animated, Runnable completion)
    • dismissViewController

      public void dismissViewController​(boolean animated, Runnable completion)
    • setContentScrollView

      public void setContentScrollView​(UIScrollView scrollView, NSDirectionalRectEdge edge)
      Since:
      Available in iOS 15.0 and later.
    • contentScrollViewForEdge

      public UIScrollView contentScrollViewForEdge​(NSDirectionalRectEdge edge)
      Since:
      Available in iOS 15.0 and later.
    • setNeedsStatusBarAppearanceUpdate

      public void setNeedsStatusBarAppearanceUpdate()
    • getTargetViewControllerForAction

      public UIViewController getTargetViewControllerForAction​(Selector action, NSObject sender)
    • showViewController

      public void showViewController​(UIViewController vc, NSObject sender)
    • showDetailViewController

      public void showDetailViewController​(UIViewController vc, NSObject sender)
    • getRotatingHeaderView

      @Deprecated public UIView getRotatingHeaderView()
      Deprecated.
      Deprecated in iOS 8.0. Header views are animated along with the rest of the view hierarchy
    • getRotatingFooterView

      @Deprecated public UIView getRotatingFooterView()
      Deprecated.
      Deprecated in iOS 8.0. Footer views are animated along with the rest of the view hierarchy
    • willRotate

      @Deprecated public void willRotate​(UIInterfaceOrientation toInterfaceOrientation, double duration)
      Deprecated.
      Deprecated in iOS 8.0. Implement viewWillTransitionToSize:withTransitionCoordinator: instead
    • didRotate

      @Deprecated public void didRotate​(UIInterfaceOrientation fromInterfaceOrientation)
      Deprecated.
      Deprecated in iOS 8.0.
    • willAnimateRotation

      @Deprecated public void willAnimateRotation​(UIInterfaceOrientation toInterfaceOrientation, double duration)
      Deprecated.
      Deprecated in iOS 8.0. Implement viewWillTransitionToSize:withTransitionCoordinator: instead
    • attemptRotationToDeviceOrientation

      public static void attemptRotationToDeviceOrientation()
    • setEditing

      public void setEditing​(boolean editing, boolean animated)
    • addChildViewController

      public void addChildViewController​(UIViewController childController)
    • removeFromParentViewController

      public void removeFromParentViewController()
    • transition

      public void transition​(UIViewController fromViewController, UIViewController toViewController, double duration, UIViewAnimationOptions options, Runnable animations, VoidBooleanBlock completion)
    • beginAppearanceTransition

      public void beginAppearanceTransition​(boolean isAppearing, boolean animated)
    • endAppearanceTransition

      public void endAppearanceTransition()
    • setOverrideTraitCollection

      public void setOverrideTraitCollection​(UITraitCollection collection, UIViewController childViewController)
    • getOverrideTraitCollection

      public UITraitCollection getOverrideTraitCollection​(UIViewController childViewController)
    • shouldAutomaticallyForwardRotationMethods

      @Deprecated public boolean shouldAutomaticallyForwardRotationMethods()
      Deprecated.
      Deprecated in iOS 8.0. Manually forward viewWillTransitionToSize:withTransitionCoordinator: if necessary
    • willMoveToParentViewController

      public void willMoveToParentViewController​(UIViewController parent)
    • didMoveToParentViewController

      public void didMoveToParentViewController​(UIViewController parent)
    • encodeRestorableState

      public void encodeRestorableState​(NSCoder coder)
      Specified by:
      encodeRestorableState in interface UIStateRestoring
    • decodeRestorableState

      public void decodeRestorableState​(NSCoder coder)
      Specified by:
      decodeRestorableState in interface UIStateRestoring
    • applicationFinishedRestoringState

      public void applicationFinishedRestoringState()
      Specified by:
      applicationFinishedRestoringState in interface UIStateRestoring
    • updateViewConstraints

      public void updateViewConstraints()
    • viewLayoutMarginsDidChange

      public void viewLayoutMarginsDidChange()
      Since:
      Available in iOS 11.0 and later.
    • viewSafeAreaInsetsDidChange

      public void viewSafeAreaInsetsDidChange()
      Since:
      Available in iOS 11.0 and later.
    • addKeyCommand

      public void addKeyCommand​(UIKeyCommand keyCommand)
      Since:
      Available in iOS 9.0 and later.
    • removeKeyCommand

      public void removeKeyCommand​(UIKeyCommand keyCommand)
      Since:
      Available in iOS 9.0 and later.
    • registerForPreviewing

      @Deprecated public UIViewControllerPreviewing registerForPreviewing​(UIViewControllerPreviewingDelegate delegate, UIView sourceView)
      Deprecated.
      Deprecated in iOS 13.0. Use UIContextMenuInteraction
      Since:
      Available in iOS 9.0 and later.
    • unregisterForPreviewing

      @Deprecated public void unregisterForPreviewing​(UIViewControllerPreviewing previewing)
      Deprecated.
      Deprecated in iOS 13.0. Use UIContextMenuInteraction
      Since:
      Available in iOS 9.0 and later.
    • setNeedsUpdateOfScreenEdgesDeferringSystemGestures

      public void setNeedsUpdateOfScreenEdgesDeferringSystemGestures()
      Since:
      Available in iOS 11.0 and later.
    • setNeedsUpdateOfHomeIndicatorAutoHidden

      public void setNeedsUpdateOfHomeIndicatorAutoHidden()
      Since:
      Available in iOS 11.0 and later.
    • setNeedsUpdateOfPrefersPointerLocked

      public void setNeedsUpdateOfPrefersPointerLocked()
      Since:
      Available in iOS 14.0 and later.
    • setToolbarItems

      public void setToolbarItems​(NSArray<UIBarButtonItem> toolbarItems, boolean animated)
    • collapseSecondaryViewController

      public void collapseSecondaryViewController​(UIViewController secondaryViewController, UISplitViewController splitViewController)
    • separateSecondaryViewController

      public UIViewController separateSecondaryViewController​(UISplitViewController splitViewController)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • traitCollectionDidChange

      public void traitCollectionDidChange​(UITraitCollection previousTraitCollection)
      Specified by:
      traitCollectionDidChange in interface UITraitEnvironment
    • preferredContentSizeDidChangeForChildContentContainer

      public void preferredContentSizeDidChangeForChildContentContainer​(UIContentContainer container)
      Specified by:
      preferredContentSizeDidChangeForChildContentContainer in interface UIContentContainer
    • systemLayoutFittingSizeDidChangeForChildContentContainer

      public void systemLayoutFittingSizeDidChangeForChildContentContainer​(UIContentContainer container)
      Specified by:
      systemLayoutFittingSizeDidChangeForChildContentContainer in interface UIContentContainer
    • sizeForChildContentContainer

      public CGSize sizeForChildContentContainer​(UIContentContainer container, CGSize parentSize)
      Specified by:
      sizeForChildContentContainer in interface UIContentContainer
    • viewWillTransitionToSize

      public void viewWillTransitionToSize​(CGSize size, UIViewControllerTransitionCoordinator coordinator)
      Specified by:
      viewWillTransitionToSize in interface UIContentContainer
    • willTransitionToTraitCollection

      public void willTransitionToTraitCollection​(UITraitCollection newCollection, UIViewControllerTransitionCoordinator coordinator)
      Specified by:
      willTransitionToTraitCollection in interface UIContentContainer
    • setNeedsFocusUpdate

      public void setNeedsFocusUpdate()
      Specified by:
      setNeedsFocusUpdate in interface UIFocusEnvironment
    • updateFocusIfNeeded

      public void updateFocusIfNeeded()
      Specified by:
      updateFocusIfNeeded in interface UIFocusEnvironment
    • shouldUpdateFocus

      public boolean shouldUpdateFocus​(UIFocusUpdateContext context)
      Specified by:
      shouldUpdateFocus in interface UIFocusEnvironment
    • didUpdateFocus

      public void didUpdateFocus​(UIFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)
      Specified by:
      didUpdateFocus in interface UIFocusEnvironment
    • beginRequest

      public void beginRequest​(NSExtensionContext context)
      Specified by:
      beginRequest in interface NSExtensionRequestHandling