Package apple.uikit
Class UIViewController
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.uikit.UIViewController
-
- All Implemented Interfaces:
NSCoding,NSExtensionRequestHandling,NSObject,UIActivityItemsConfigurationProviding,UIAppearanceContainer,UIContentContainer,UIFocusEnvironment,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIStateRestoring,UITraitChangeObservable,UITraitEnvironment,UIUserActivityRestoring
- Direct Known Subclasses:
ABNewPersonViewController,ABPersonViewController,ABUnknownPersonViewController,ASAccountAuthenticationModificationViewController,ASCredentialProviderViewController,AUGenericViewController,AUViewController,AVPictureInPictureVideoCallViewController,AVPlayerViewController,CABTMIDILocalPeripheralViewController,CNContactPickerViewController,CNContactViewController,EKCalendarChooser,EKEventViewController,FPUIActionExtensionViewController,GCEventViewController,GLKViewController,ILClassificationUIExtensionViewController,INUIAddVoiceShortcutViewController,INUIEditVoiceShortcutViewController,MCBrowserViewController,MKLookAroundViewController,MPMediaPickerController,MPMoviePlayerViewController,MSMessagesAppViewController,MSStickerBrowserViewController,PHPickerViewController,PKAddPassesViewController,PKAddPaymentPassViewController,PKAddSecureElementPassViewController,PKPaymentAuthorizationViewController,PKShareSecureElementPassViewController,QLPreviewController,RPBroadcastActivityViewController,RPPreviewViewController,SFSafariViewController,SKCloudServiceSetupViewController,SKStoreProductViewController,SLComposeServiceViewController,SLComposeViewController,STWebpageController,SWRemoveParticipantAlertController,TWTweetComposeViewController,UIActivityViewController,UIAlertController,UICloudSharingController,UICollectionViewController,UIColorPickerViewController,UIDocumentBrowserViewController,UIDocumentMenuViewController,UIDocumentPickerExtensionViewController,UIDocumentPickerViewController,UIDocumentViewController,UIFontPickerViewController,UIInputViewController,UINavigationController,UIPageViewController,UIReferenceLibraryViewController,UISearchContainerViewController,UISearchController,UISplitViewController,UITabBarController,UITableViewController,VNDocumentCameraViewController
public class UIViewController extends UIResponder implements NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment, UIStateRestoring, NSExtensionRequestHandling, UITraitChangeObservable
API-Since: 2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUIViewController.Block_dismissViewControllerAnimatedCompletionstatic interfaceUIViewController.Block_presentViewControllerAnimatedCompletionstatic interfaceUIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_4static interfaceUIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_5-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UITraitChangeObservable
UITraitChangeObservable.Block_registerForTraitChangesWithHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIViewController(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()@Nullable UIPresentationControlleractivePresentationController()Gets the presentation controller managing this view controller.voidaddChildViewController(@NotNull UIViewController childController)If the child controller has a different parent controller, it will first be removed from its current parent by calling removeFromParentViewController.UIEdgeInsetsadditionalSafeAreaInsets()Custom container UIViewController subclasses can use this property to add to the overlay that UIViewController calculates for the safeAreaInsets for contained view controllers.voidaddKeyCommand(@NotNull UIKeyCommand keyCommand)API-Since: 9.0static UIViewControlleralloc()static UIViewControllerallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)@NotNull NSArray<? extends UIViewController>allowedChildViewControllersForUnwindingFromSource(@NotNull UIStoryboardUnwindSegueSource source)Returns a subset of the receiver's childViewControllers in the order they should be searched for an unwind destination.voidapplicationFinishedRestoringState()applicationFinishedRestoringState is called on all restored objects that implement the method *after* all other object decoding has been done (including the application delegate).static voidattemptRotationToDeviceOrientation()Deprecated.booleanautomaticallyAdjustsScrollViewInsets()Deprecated.booleanautomaticallyForwardAppearanceAndRotationMethodsToChildViewControllers()Deprecated.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)voidbeginAppearanceTransitionAnimated(boolean isAppearing, boolean animated)If a custom container controller manually forwards its appearance callbacks, then rather than calling viewWillAppear:, viewDidAppear: viewWillDisappear:, or viewDidDisappear: on the children these methods should be used instead.voidbeginRequestWithExtensionContext(@NotNull NSExtensionContext context)Tells the extension to prepare its interface for the requesting context, and request related data items.@NotNull UILayoutSupportbottomLayoutGuide()Deprecated.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)booleancanPerformUnwindSegueActionFromViewControllerSender(@NotNull org.moe.natj.objc.SEL action, @NotNull UIViewController fromViewController, @Nullable java.lang.Object sender)View controllers will receive this message during segue unwinding.booleancanPerformUnwindSegueActionFromViewControllerWithSender(@NotNull org.moe.natj.objc.SEL action, @NotNull UIViewController fromViewController, @NotNull java.lang.Object sender)Deprecated.@Nullable UIViewControllerchildViewControllerContainingSegueSource(@NotNull UIStoryboardUnwindSegueSource source)Returns the child view controller that contains the provided segue source.@Nullable UIViewControllerchildViewControllerForHomeIndicatorAutoHidden()Override to return a child view controller or nil.@Nullable UIViewControllerchildViewControllerForPointerLock()Override to return a child view controller or nil.@Nullable UIViewControllerchildViewControllerForScreenEdgesDeferringSystemGestures()Override to return a child view controller or nil.@Nullable UIViewControllerchildViewControllerForStatusBarHidden()API-Since: 7.0@Nullable UIViewControllerchildViewControllerForStatusBarStyle()Override to return a child view controller or nil.@NotNull NSArray<? extends UIViewController>childViewControllers()An array of children view controllers.static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(@NotNull java.lang.String identifier)voidcollapseSecondaryViewControllerForSplitViewController(@NotNull UIViewController secondaryViewController, @NotNull UISplitViewController splitViewController)Called on the primary view controller when a split view controller is collapsing its children for a transition to a compact-width size class, if its delegate does not provide overridden behavior.@Nullable UIScrollViewcontentScrollViewForEdge(long edge)Subclass overrides will be called when available API-Since: 15.0CGSizecontentSizeForViewInPopover()Deprecated.@Nullable UIContentConfigurationcontentUnavailableConfiguration()Setting a content unavailable configuration replaces the existing content unavailable view of the view controller with a new content unavailable view instance from the configuration, or directly applies the configuration to the existing content unavailable view if the configuration is compatible with the existing content unavailable view type.@NotNull UIContentUnavailableConfigurationStatecontentUnavailableConfigurationState()Returns the current content unavailable configuration state for the view.static java.lang.StringdebugDescription_static()voiddecodeRestorableStateWithCoder(@NotNull NSCoder coder)booleandefinesPresentationContext()Determines which parent view controller's view should be presented over for presentations of type UIModalPresentationCurrentContext.static java.lang.Stringdescription_static()voiddidAnimateFirstHalfOfRotationToInterfaceOrientation(long toInterfaceOrientation)Deprecated.voiddidMoveToParentViewController(@Nullable UIViewController parent)API-Since: 5.0voiddidReceiveMemoryWarning()Called when the parent application receives a memory warning.voiddidRotateFromInterfaceOrientation(long fromInterfaceOrientation)Deprecated.voiddidUpdateFocusInContextWithAnimationCoordinator(@NotNull UIFocusUpdateContext context, @NotNull UIFocusAnimationCoordinator coordinator)Called when the screen’s focused item has been updated to a new item.booleandisablesAutomaticKeyboardDismissal()Presentation modes may keep the keyboard visible when not required.voiddismissModalViewControllerAnimated(boolean animated)Deprecated.voiddismissMoviePlayerViewControllerAnimated()Deprecated.voiddismissViewControllerAnimatedCompletion(boolean flag, @Nullable UIViewController.Block_dismissViewControllerAnimatedCompletion completion)The completion handler, if provided, will be invoked after the dismissed controller's viewDidDisappear: callback is invoked.longedgesForExtendedLayout()Defaults to UIRectEdgeAll API-Since: 7.0@NotNull UIBarButtonItemeditButtonItem()Return an Edit|Done button that can be used as a navigation item's custom view.voidencodeRestorableStateWithCoder(@NotNull NSCoder coder)Methods to save and restore state for the object.voidencodeWithCoder(@NotNull NSCoder coder)voidendAppearanceTransition()API-Since: 5.0booleanextendedLayoutIncludesOpaqueBars()Defaults to NO, but bars are translucent by default on 7_0.@Nullable NSExtensionContextextensionContext()Returns the extension context.@Nullable java.lang.StringfocusGroupIdentifier()The identifier of the focus group that this view belongs to.@Nullable UIFocusItemContainerfocusItemContainer()The container of any child focus items in this focus environment, or nil if no container exists.static longhash_static()booleanhidesBottomBarWhenPushed()If YES, then when this view controller is pushed into a controller hierarchy with a bottom bar (like a tab bar), the bottom bar will slide out.UIViewControllerinit()UIViewControllerinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERUIViewControllerinitWithNibNameBundle(@Nullable java.lang.String nibNameOrNil, @Nullable NSBundle nibBundleOrNil)The designated initializer.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)@Nullable java.lang.StringinteractionActivityTrackingBaseName()The base name for tracking user interactions as activities hosted by this view controller.longinterfaceOrientation()Deprecated.booleanisBeingDismissed()API-Since: 5.0booleanisBeingPresented()These four methods can be used in a view controller's appearance callbacks to determine if it is being presented, dismissed, or added or removed as a child view controller.booleanisEditing()booleanisModalInPopover()Deprecated.booleanisModalInPresentation()modalInPresentation is set on the view controller when you wish to force the presentation hosting the view controller into modal behavior.booleanisMovingFromParentViewController()API-Since: 5.0booleanisMovingToParentViewController()API-Since: 5.0static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisViewLoaded()API-Since: 3.0static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)voidloadView()This is where subclasses should create their custom view hierarchy if they aren't using a nib.voidloadViewIfNeeded()Loads the view controller's view if it has not already been set.booleanmodalPresentationCapturesStatusBarAppearance()This controls whether this view controller takes over control of the status bar's appearance when presented non-full screen on another view controller.longmodalPresentationStyle()Defines the presentation style that will be used for this view controller when it is presented modally.longmodalTransitionStyle()Defines the transition style that will be used for this view controller when it is presented modally.@Nullable UIViewControllermodalViewController()Deprecated.@Nullable UINavigationControllernavigationController()If this view controller has been pushed onto a navigation controller, return it.@NotNull UINavigationItemnavigationItem()Created on-demand so that a view controller may customize its navigation appearance.static UIViewControllernew_objc()@Nullable NSBundlenibBundle()The bundle from which to load the nib.@Nullable java.lang.StringnibName()The name of the nib to be loaded to instantiate the view.@Nullable UIObjectRestorationobjectRestorationClass()The restoration class specifies a class which is consulted during restoration to find/create the object, rather than trying to look it up implicitly@Nullable UITraitCollectionoverrideTraitCollectionForChildViewController(@NotNull UIViewController childViewController)Deprecated.longoverrideUserInterfaceStyle()Defaults to UIUserInterfaceStyleUnspecified API-Since: 13.0@Nullable UIFocusEnvironmentparentFocusEnvironment()The parent focus environment of this environment, or nil if no parent exists.@Nullable UIViewControllerparentViewController()If this view controller is a child of a containing view controller (e.g.booleanperformsActionsWhilePresentingModally()Determines whether the receiver continues to respond to actions while it is presenting a view controller modally.voidperformSegueWithIdentifierSender(@NotNull java.lang.String identifier, @Nullable java.lang.Object sender)API-Since: 5.0@Nullable UIPopoverPresentationControllerpopoverPresentationController()API-Since: 8.0CGSizepreferredContentSize()API-Since: 8.0voidpreferredContentSizeDidChangeForChildContentContainer(@NotNull UIContentContainer container)API-Since: 8.0@Nullable UIViewpreferredFocusedView()Deprecated.@NotNull NSArray<?>preferredFocusEnvironments()The preferred focus environments define where to search for the default focused item in an environment, such as when focus updates programmatically.longpreferredInterfaceOrientationForPresentation()Returns interface orientation masks.longpreferredScreenEdgesDeferringSystemGestures()Controls the application's preferred screen edges deferring system gestures when this view controller is shown.longpreferredStatusBarStyle()Defaults to UIStatusBarStyleDefault API-Since: 7.0longpreferredStatusBarUpdateAnimation()Defaults to UIStatusBarAnimationFade API-Since: 7.0booleanprefersHomeIndicatorAutoHidden()Controls the application's preferred home indicator auto-hiding when this view controller is shown.booleanprefersPointerLocked()Whether the pointer should be locked to a given scene when this view controller is shown.booleanprefersStatusBarHidden()Defaults to NO API-Since: 7.0voidprepareForSegueSender(@NotNull UIStoryboardSegue segue, @Nullable java.lang.Object sender)API-Since: 5.0@Nullable UIPresentationControllerpresentationController()API-Since: 8.0@Nullable UIViewControllerpresentedViewController()The view controller that was presented by this view controller or its nearest ancestor.@Nullable UIViewControllerpresentingViewController()The view controller that presented this view controller (or its farthest ancestor.) API-Since: 5.0voidpresentModalViewControllerAnimated(@NotNull UIViewController modalViewController, boolean animated)Deprecated.voidpresentMoviePlayerViewControllerAnimated(MPMoviePlayerViewController moviePlayerViewController)Deprecated.voidpresentViewControllerAnimatedCompletion(@NotNull UIViewController viewControllerToPresent, boolean flag, @Nullable UIViewController.Block_presentViewControllerAnimatedCompletion completion)The next two methods are replacements for presentModalViewController:animated and dismissModalViewControllerAnimated: The completion handler, if provided, will be invoked after the presented controllers viewDidAppear: callback is invoked.@NotNull NSArray<?>previewActionItems()Deprecated.booleanprovidesPresentationContextTransitionStyle()A controller that defines the presentation context can also specify the modal transition style if this property is true.@NotNull UIViewControllerPreviewingregisterForPreviewingWithDelegateSourceView(@NotNull UIViewControllerPreviewingDelegate delegate, @NotNull UIView sourceView)Deprecated.@NotNull UITraitChangeRegistrationregisterForTraitChangesWithAction(@NotNull NSArray<?> traits, @NotNull org.moe.natj.objc.SEL action)Convenience method where the target is self.@NotNull UITraitChangeRegistrationregisterForTraitChangesWithHandler(@NotNull NSArray<?> traits, UITraitChangeObservable.Block_registerForTraitChangesWithHandler handler)@NotNull UITraitChangeRegistrationregisterForTraitChangesWithTargetAction(@NotNull NSArray<?> traits, @NotNull java.lang.Object target, @NotNull org.moe.natj.objc.SEL action)The action method you use with the following registration APIs may have zero, one, or two parameters.voidremoveFromParentViewController()Removes the the receiver from its parent's children controllers array.voidremoveKeyCommand(@NotNull UIKeyCommand keyCommand)API-Since: 9.0static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)@Nullable UIViewControllerRestorationrestorationClass()API-Since: 6.0@Nullable java.lang.StringrestorationIdentifier()API-Since: 6.0@Nullable UIStateRestoringrestorationParent()The parent property is used to scope the restoration identifier path for an object, to disambiguate it from other objects that might be using the same identifier.booleanrestoresFocusAfterTransition()If YES, when this view controller becomes visible and focusable, focus will be automatically restored to the item that was last focused.@Nullable UIViewrotatingFooterView()Deprecated.@Nullable UIViewrotatingHeaderView()Deprecated.@Nullable UISearchDisplayControllersearchDisplayController()Deprecated.@Nullable UIStoryboardSeguesegueForUnwindingToViewControllerFromViewControllerIdentifier(@NotNull UIViewController toViewController, @NotNull UIViewController fromViewController, @Nullable java.lang.String identifier)Deprecated.@Nullable UIViewControllerseparateSecondaryViewControllerForSplitViewController(@NotNull UISplitViewController splitViewController)Called on the primary view controller when a split view controller is separating its children for a transition to a regular-width size class, if its delegate does not provide overridden behavior.voidsetAdditionalSafeAreaInsets(UIEdgeInsets value)Custom container UIViewController subclasses can use this property to add to the overlay that UIViewController calculates for the safeAreaInsets for contained view controllers.voidsetAutomaticallyAdjustsScrollViewInsets(boolean value)Deprecated.voidsetContentScrollViewForEdge(@Nullable UIScrollView scrollView, long edge)Depending on the value passed in the `edge` parameter, a containing UINavigationController, UITabBarController, or both will observe the UIScrollView instance in the `contentScrollView` parameter to determine the background blur for the bars and to update contentInset adjustments for the scroll view.voidsetContentSizeForViewInPopover(CGSize value)Deprecated.voidsetContentUnavailableConfiguration(@Nullable UIContentConfiguration value)Setting a content unavailable configuration replaces the existing content unavailable view of the view controller with a new content unavailable view instance from the configuration, or directly applies the configuration to the existing content unavailable view if the configuration is compatible with the existing content unavailable view type.voidsetDefinesPresentationContext(boolean value)Determines which parent view controller's view should be presented over for presentations of type UIModalPresentationCurrentContext.voidsetEdgesForExtendedLayout(long value)Defaults to UIRectEdgeAll API-Since: 7.0voidsetEditing(boolean value)voidsetEditingAnimated(boolean editing, boolean animated)Updates the appearance of the Edit|Done button item as necessary.voidsetExtendedLayoutIncludesOpaqueBars(boolean value)Defaults to NO, but bars are translucent by default on 7_0.voidsetFocusGroupIdentifier(@Nullable java.lang.String value)The identifier of the focus group that this view controller belongs to.voidsetHidesBottomBarWhenPushed(boolean value)If YES, then when this view controller is pushed into a controller hierarchy with a bottom bar (like a tab bar), the bottom bar will slide out.voidsetInteractionActivityTrackingBaseName(@Nullable java.lang.String value)The base name for tracking user interactions as activities hosted by this view controller.voidsetModalInPopover(boolean value)Deprecated.voidsetModalInPresentation(boolean value)modalInPresentation is set on the view controller when you wish to force the presentation hosting the view controller into modal behavior.voidsetModalPresentationCapturesStatusBarAppearance(boolean value)This controls whether this view controller takes over control of the status bar's appearance when presented non-full screen on another view controller.voidsetModalPresentationStyle(long value)Defines the presentation style that will be used for this view controller when it is presented modally.voidsetModalTransitionStyle(long value)Defines the transition style that will be used for this view controller when it is presented modally.voidsetNeedsFocusUpdate()Marks this environment as needing a focus update, which if accepted will attempt to reset focus to this environment, or one of its preferred focus environments, on the next update cycle.voidsetNeedsStatusBarAppearanceUpdate()This should be called whenever the return values for the view controller's status bar attributes have changed.voidsetNeedsUpdateContentUnavailableConfiguration()Requests the view update its content unavailable configuration for its current state.voidsetNeedsUpdateOfHomeIndicatorAutoHidden()This should be called whenever the return values for the view controller's home indicator auto-hiding have changed.voidsetNeedsUpdateOfPrefersPointerLocked()This should be called whenever the view controller's preferred pointer lock value has changed.voidsetNeedsUpdateOfScreenEdgesDeferringSystemGestures()This should be called whenever the return values for the view controller's screen edges deferring system gestures have changed.voidsetNeedsUpdateOfSupportedInterfaceOrientations()Notifies the view controller that a change occurred that affects supported interface orientations or the preferred interface orientation for presentation.voidsetOverrideTraitCollectionForChildViewController(@Nullable UITraitCollection collection, @NotNull UIViewController childViewController)Deprecated.voidsetOverrideUserInterfaceStyle(long value)Defaults to UIUserInterfaceStyleUnspecified API-Since: 13.0voidsetPreferredContentSize(CGSize value)The preferredContentSize is used for any container laying out a child view controller.voidsetProvidesPresentationContextTransitionStyle(boolean value)A controller that defines the presentation context can also specify the modal transition style if this property is true.voidsetRestorationClass(@Nullable UIViewControllerRestoration value)API-Since: 6.0voidsetRestorationClass_unsafe(@Nullable UIViewControllerRestoration value)API-Since: 6.0voidsetRestorationIdentifier(@Nullable java.lang.String value)API-Since: 6.0voidsetRestoresFocusAfterTransition(boolean value)If YES, when this view controller becomes visible and focusable, focus will be automatically restored to the item that was last focused.voidsetTabBarItem(UITabBarItem value)Automatically created lazily with the view controller's title if it's not set explicitly.voidsetTitle(@Nullable java.lang.String value)Localized title for use by a parent controller.voidsetToolbarItems(@Nullable NSArray<? extends UIBarButtonItem> value)API-Since: 3.0voidsetToolbarItemsAnimated(@Nullable NSArray<? extends UIBarButtonItem> toolbarItems, boolean animated)API-Since: 3.0voidsetTransitioningDelegate(@Nullable UIViewControllerTransitioningDelegate value)API-Since: 7.0voidsetTransitioningDelegate_unsafe(@Nullable UIViewControllerTransitioningDelegate value)API-Since: 7.0static voidsetVersion_static(long aVersion)voidsetView(UIView value)The getter first invokes [self loadView] if the view hasn't been set yet.voidsetViewRespectsSystemMinimumLayoutMargins(boolean value)Default YES.voidsetWantsFullScreenLayout(boolean value)Deprecated.@Nullable UISheetPresentationControllersheetPresentationController()API-Since: 15.0booleanshouldAutomaticallyForwardAppearanceMethods()API-Since: 6.0booleanshouldAutomaticallyForwardRotationMethods()Deprecated.booleanshouldAutorotate()Deprecated.booleanshouldAutorotateToInterfaceOrientation(long toInterfaceOrientation)Deprecated.booleanshouldPerformSegueWithIdentifierSender(@NotNull java.lang.String identifier, @Nullable java.lang.Object sender)Invoked immediately prior to initiating a segue.booleanshouldUpdateFocusInContext(@NotNull UIFocusUpdateContext context)Asks whether the system should allow a focus update to occur.voidshowDetailViewControllerSender(@NotNull UIViewController vc, @Nullable java.lang.Object sender)This method will show a view controller within the semantic "detail" UI associated with the current size-class environment.voidshowViewControllerSender(@NotNull UIViewController vc, @Nullable java.lang.Object sender)This method will show a view controller appropriately for the current size-class environment.CGSizesizeForChildContentContainerWithParentContainerSize(@NotNull UIContentContainer container, CGSize parentSize)When the content container forwards viewWillTransitionToSize:withTransitionCoordinator: to its children, it will call this method to determine what size to send them.@Nullable UISplitViewControllersplitViewController()If the view controller has a split view controller as its ancestor, return it.@Nullable UIStoryboardstoryboard()API-Since: 5.0static org.moe.natj.objc.Classsuperclass_static()longsupportedInterfaceOrientations()API-Since: 6.0voidsystemLayoutFittingSizeDidChangeForChildContentContainer(@NotNull UIContentContainer container)Intended as a bridge for a view controller that does not use auto layout presenting a child that does use auto layout.NSDirectionalEdgeInsetssystemMinimumLayoutMargins()Minimum layoutMargins for the view determined by the view controller from context and hardware information.@Nullable UITabBarControllertabBarController()If the view controller has a tab bar controller as its ancestor, return it.UITabBarItemtabBarItem()Automatically created lazily with the view controller's title if it's not set explicitly.@Nullable UIViewControllertargetViewControllerForActionSender(@NotNull org.moe.natj.objc.SEL action, @Nullable java.lang.Object sender)This method returns either itself or the nearest ancestor that can perform the given action and, if applicable, has overridden UIViewController's default implementation of the action method.@Nullable java.lang.Stringtitle()Localized title for use by a parent controller.@Nullable NSArray<? extends UIBarButtonItem>toolbarItems()API-Since: 3.0@NotNull UILayoutSupporttopLayoutGuide()Deprecated.@NotNull UITraitCollectiontraitCollection()API-Since: 8.0voidtraitCollectionDidChange(@Nullable UITraitCollection previousTraitCollection)Deprecated.@NotNull UITraitOverridestraitOverrides()@Nullable UIViewControllerTransitionCoordinatortransitionCoordinator()The default implementation will return a transition coordinator if called during an active presentation or dismissal.voidtransitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion(@NotNull UIViewController fromViewController, @NotNull UIViewController toViewController, double duration, long options, @Nullable UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_4 animations, @Nullable UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_5 completion)This method can be used to transition between sibling child view controllers.@Nullable UIViewControllerTransitioningDelegatetransitioningDelegate()API-Since: 7.0voidunregisterForPreviewingWithContext(@NotNull UIViewControllerPreviewing previewing)Deprecated.voidunregisterForTraitChanges(@NotNull UITraitChangeRegistration registration)voidunwindForSegueTowardsViewController(@NotNull UIStoryboardSegue unwindSegue, @NotNull UIViewController subsequentVC)Custom container view controllers should override this method to modify themselves as part of an ongoing unwind segue.voidupdateContentUnavailableConfigurationUsingState(@NotNull UIContentUnavailableConfigurationState state)Subclasses should override this method and update the content unavailable's configuration using the state provided.voidupdateFocusIfNeeded()Forces focus to be updated immediately.voidupdateTraitsIfNeeded()Forces an immediate trait update for this view controller and its view, including any view controllers and views in this subtree.voidupdateViewConstraints()Base implementation sends -updateConstraints to the view.static booleanuseStoredAccessor()Deprecated.static longversion_static()UIViewview()The getter first invokes [self loadView] if the view hasn't been set yet.@Nullable UIViewControllerviewControllerForUnwindSegueActionFromViewControllerWithSender(@NotNull org.moe.natj.objc.SEL action, @NotNull UIViewController fromViewController, @Nullable java.lang.Object sender)Deprecated.voidviewDidAppear(boolean animated)Called after the view has fully transitioned to visible, when any transition animations have completed.voidviewDidDisappear(boolean animated)Called after the view has fully been dismissed, covered, or otherwise hidden, when any transition animations have completed.voidviewDidLayoutSubviews()Called just after the view controller's view's layoutSubviews method is invoked.voidviewDidLoad()Called after the view has been loaded.voidviewDidUnload()Deprecated.@Nullable UIViewviewIfLoaded()Returns the view controller's view if loaded, nil if not.voidviewIsAppearing(boolean animated)Called when the view is becoming visible at the beginning of the appearance transition, after it has been added to the hierarchy and been laid out by its superview.voidviewLayoutMarginsDidChange()API-Since: 11.0booleanviewRespectsSystemMinimumLayoutMargins()Default YES.voidviewSafeAreaInsetsDidChange()API-Since: 11.0voidviewWillAppear(boolean animated)Called when the view is about to made visible, before it is added to the hierarchy.voidviewWillDisappear(boolean animated)Called when the view is about to be dismissed, covered, or otherwise hidden.voidviewWillLayoutSubviews()Called just before the view controller's view's layoutSubviews method is invoked.voidviewWillTransitionToSizeWithTransitionCoordinator(CGSize size, @NotNull UIViewControllerTransitionCoordinator coordinator)This method is called when the view controller's view's size is changed by its parent (i.e.voidviewWillUnload()Deprecated.booleanwantsFullScreenLayout()Deprecated.voidwillAnimateFirstHalfOfRotationToInterfaceOrientationDuration(long toInterfaceOrientation, double duration)Deprecated.voidwillAnimateRotationToInterfaceOrientationDuration(long toInterfaceOrientation, double duration)Deprecated.voidwillAnimateSecondHalfOfRotationFromInterfaceOrientationDuration(long fromInterfaceOrientation, double duration)Deprecated.voidwillMoveToParentViewController(@Nullable UIViewController parent)These two methods are public for container subclasses to call when transitioning between child controllers.voidwillRotateToInterfaceOrientationDuration(long toInterfaceOrientation, double duration)Deprecated.voidwillTransitionToTraitCollectionWithTransitionCoordinator(@NotNull UITraitCollection newCollection, @NotNull UIViewControllerTransitionCoordinator coordinator)This method is called when the view controller's trait collection is changed by its parent.-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, duplicate, editingInteractionConfiguration, export, find, findAndReplace, findNext, findPrevious, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, move, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, rename, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, useSelectionForFind, validateCommand
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UIViewController alloc()
-
allocWithZone
public static UIViewController allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
attemptRotationToDeviceOrientation
@Deprecated public static void attemptRotationToDeviceOrientation()
Deprecated.API-Since: 5.0 Deprecated-Since: 16.0 Deprecated-Message: Please use instance method `setNeedsUpdateOfSupportedInterfaceOrientations`.
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(@NotNull @NotNull java.lang.String identifier)
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static UIViewController new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
addChildViewController
public void addChildViewController(@NotNull @NotNull UIViewController childController)If the child controller has a different parent controller, it will first be removed from its current parent by calling removeFromParentViewController. If this method is overridden then the super implementation must be called. API-Since: 5.0
-
addKeyCommand
public void addKeyCommand(@NotNull @NotNull UIKeyCommand keyCommand)API-Since: 9.0
-
allowedChildViewControllersForUnwindingFromSource
@NotNull public @NotNull NSArray<? extends UIViewController> allowedChildViewControllersForUnwindingFromSource(@NotNull @NotNull UIStoryboardUnwindSegueSource source)
Returns a subset of the receiver's childViewControllers in the order they should be searched for an unwind destination. The default implementation first sends itself -childViewControllerContainingSegueSource:, then returns a copy of its childViewControllers array excluding that object. A custom container view controller can override this method to affect the order in which its children are searched, or to modify the result of the default implementation. For compatibility, if a view controller overrides the deprecated -viewControllerForUnwindSegueAction:fromViewController:sender: method, but does not override this method, it will receive the deprecated method instead of this method. To affect this view controller's eligibility as an unwind destination, override -canPerformUnwindSegueAction:fromViewController:sender: instead. API-Since: 9.0
-
applicationFinishedRestoringState
public void applicationFinishedRestoringState()
Description copied from interface:UIStateRestoringapplicationFinishedRestoringState is called on all restored objects that implement the method *after* all other object decoding has been done (including the application delegate). This allows an object to complete setup after state restoration, knowing that all objects from the restoration archive have decoded their state.- Specified by:
applicationFinishedRestoringStatein interfaceUIStateRestoring
-
automaticallyAdjustsScrollViewInsets
@Deprecated public boolean automaticallyAdjustsScrollViewInsets()
Deprecated.Defaults to YES API-Since: 7.0 Deprecated-Since: 11.0 Deprecated-Message: Use UIScrollView's contentInsetAdjustmentBehavior instead
-
automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers
@Deprecated public boolean automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers()
Deprecated.This method is consulted to determine if a view controller manually forwards its containment callbacks to any children view controllers. Subclasses of UIViewController that implement containment logic may override this method. The default implementation returns YES. If it is overridden and returns NO, then the subclass is responsible for forwarding the following methods as appropriate - viewWillAppear: viewDidAppear: viewWillDisappear: viewDidDisappear: willRotateToInterfaceOrientation:duration: willAnimateRotationToInterfaceOrientation:duration: didRotateFromInterfaceOrientation: API-Since: 5.0 Deprecated-Since: 6.0
-
beginAppearanceTransitionAnimated
public void beginAppearanceTransitionAnimated(boolean isAppearing, boolean animated)If a custom container controller manually forwards its appearance callbacks, then rather than calling viewWillAppear:, viewDidAppear: viewWillDisappear:, or viewDidDisappear: on the children these methods should be used instead. This will ensure that descendent child controllers appearance methods will be invoked. It also enables more complex custom transitions to be implemented since the appearance callbacks are now tied to the final matching invocation of endAppearanceTransition. API-Since: 5.0
-
beginRequestWithExtensionContext
public void beginRequestWithExtensionContext(@NotNull @NotNull NSExtensionContext context)Description copied from interface:NSExtensionRequestHandlingTells the extension to prepare its interface for the requesting context, and request related data items. At this point [(NS|UI)ViewController extensionContext] returns a non-nil value. This message is delivered after initialization, but before the conforming object will be asked to "do something" with the context (i.e. before -[(NS|UI)ViewController loadView]). Subclasses of classes conforming to this protocol are expected to call [super beginRequestWithExtensionContext:] if this method is overridden.- Specified by:
beginRequestWithExtensionContextin interfaceNSExtensionRequestHandling
-
bottomLayoutGuide
@NotNull @Deprecated public @NotNull UILayoutSupport bottomLayoutGuide()
Deprecated.API-Since: 7.0 Deprecated-Since: 11.0 Deprecated-Message: Use view.safeAreaLayoutGuide.bottomAnchor instead of bottomLayoutGuide.topAnchor
-
canPerformUnwindSegueActionFromViewControllerWithSender
@Deprecated public boolean canPerformUnwindSegueActionFromViewControllerWithSender(@NotNull @NotNull org.moe.natj.objc.SEL action, @NotNull @NotNull UIViewController fromViewController, @NotNull @NotNull java.lang.Object sender)Deprecated.API-Since: 6.0 Deprecated-Since: 13.0
-
childViewControllerContainingSegueSource
@Nullable public @Nullable UIViewController childViewControllerContainingSegueSource(@NotNull @NotNull UIStoryboardUnwindSegueSource source)
Returns the child view controller that contains the provided segue source. Custom container view controllers should call this method from their implementation of -allowedChildViewControllersForUnwindingFromSource: to exclude the result from the returned array, as well as to determine the order of the returned array's contents. Do not try to re-implement or override this method; it takes special care to handle situations such as unwinding from a modally-presented view controller. API-Since: 9.0
-
childViewControllerForStatusBarHidden
@Nullable public @Nullable UIViewController childViewControllerForStatusBarHidden()
API-Since: 7.0
-
childViewControllerForStatusBarStyle
@Nullable public @Nullable UIViewController childViewControllerForStatusBarStyle()
Override to return a child view controller or nil. If non-nil, that view controller's status bar appearance attributes will be used. If nil, self is used. Whenever the return values from these methods change, -setNeedsStatusBarAppearanceUpdate should be called. API-Since: 7.0
-
childViewControllers
@NotNull public @NotNull NSArray<? extends UIViewController> childViewControllers()
An array of children view controllers. This array does not include any presented view controllers. API-Since: 5.0
-
collapseSecondaryViewControllerForSplitViewController
public void collapseSecondaryViewControllerForSplitViewController(@NotNull @NotNull UIViewController secondaryViewController, @NotNull @NotNull UISplitViewController splitViewController)Called on the primary view controller when a split view controller is collapsing its children for a transition to a compact-width size class, if its delegate does not provide overridden behavior. The default implementation simply shows the primary (the secondary controller disappears.) API-Since: 8.0
-
contentSizeForViewInPopover
@Deprecated public CGSize contentSizeForViewInPopover()
Deprecated.contentSizeForViewInPopover allows you to set the size of the content from within the view controller. This property is read/write, and you should generally not override it. API-Since: 3.2 Deprecated-Since: 7.0
-
decodeRestorableStateWithCoder
public void decodeRestorableStateWithCoder(@NotNull @NotNull NSCoder coder)- Specified by:
decodeRestorableStateWithCoderin interfaceUIStateRestoring
-
definesPresentationContext
public boolean definesPresentationContext()
Determines which parent view controller's view should be presented over for presentations of type UIModalPresentationCurrentContext. If no ancestor view controller has this flag set, then the presenter will be the root view controller. API-Since: 5.0
-
didAnimateFirstHalfOfRotationToInterfaceOrientation
@Deprecated public void didAnimateFirstHalfOfRotationToInterfaceOrientation(long toInterfaceOrientation)
Deprecated.The rotating header and footer views are offscreen. API-Since: 2.0 Deprecated-Since: 5.0
-
didMoveToParentViewController
public void didMoveToParentViewController(@Nullable @Nullable UIViewController parent)API-Since: 5.0
-
didReceiveMemoryWarning
public void didReceiveMemoryWarning()
Called when the parent application receives a memory warning. On iOS 6.0 it will no longer clear the view by default.
-
didRotateFromInterfaceOrientation
@Deprecated public void didRotateFromInterfaceOrientation(long fromInterfaceOrientation)
Deprecated.API-Since: 2.0 Deprecated-Since: 8.0
-
didUpdateFocusInContextWithAnimationCoordinator
public void didUpdateFocusInContextWithAnimationCoordinator(@NotNull @NotNull UIFocusUpdateContext context, @NotNull @NotNull UIFocusAnimationCoordinator coordinator)Description copied from interface:UIFocusEnvironmentCalled when the screen’s focused item has been updated to a new item. Use the animation coordinator to schedule focus-related animations in response to the update.- Specified by:
didUpdateFocusInContextWithAnimationCoordinatorin interfaceUIFocusEnvironment
-
disablesAutomaticKeyboardDismissal
public boolean disablesAutomaticKeyboardDismissal()
Presentation modes may keep the keyboard visible when not required. Default implementation affects UIModalPresentationFormSheet visibility. API-Since: 4.3
-
dismissModalViewControllerAnimated
@Deprecated public void dismissModalViewControllerAnimated(boolean animated)
Deprecated.Dismiss the current modal child. Uses a vertical sheet transition if animated. This method has been replaced by dismissViewControllerAnimated:completion: API-Since: 2.0 Deprecated-Since: 6.0
-
dismissMoviePlayerViewControllerAnimated
@Deprecated public void dismissMoviePlayerViewControllerAnimated()
Deprecated.API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit.
-
dismissViewControllerAnimatedCompletion
public void dismissViewControllerAnimatedCompletion(boolean flag, @Nullable @Nullable UIViewController.Block_dismissViewControllerAnimatedCompletion completion)The completion handler, if provided, will be invoked after the dismissed controller's viewDidDisappear: callback is invoked. API-Since: 5.0
-
edgesForExtendedLayout
public long edgesForExtendedLayout()
Defaults to UIRectEdgeAll API-Since: 7.0
-
editButtonItem
@NotNull public @NotNull UIBarButtonItem editButtonItem()
Return an Edit|Done button that can be used as a navigation item's custom view. Default action toggles the editing state with animation.
-
encodeRestorableStateWithCoder
public void encodeRestorableStateWithCoder(@NotNull @NotNull NSCoder coder)Description copied from interface:UIStateRestoringMethods to save and restore state for the object. If these aren't implemented, the object can still be referenced by other objects in state restoration archives, but it won't save/restore any state of its own.- Specified by:
encodeRestorableStateWithCoderin interfaceUIStateRestoring
-
encodeWithCoder
public void encodeWithCoder(@NotNull @NotNull NSCoder coder)- Specified by:
encodeWithCoderin interfaceNSCoding
-
endAppearanceTransition
public void endAppearanceTransition()
API-Since: 5.0
-
extendedLayoutIncludesOpaqueBars
public boolean extendedLayoutIncludesOpaqueBars()
Defaults to NO, but bars are translucent by default on 7_0. API-Since: 7.0
-
extensionContext
@Nullable public @Nullable NSExtensionContext extensionContext()
Returns the extension context. Also acts as a convenience method for a view controller to check if it participating in an extension request. API-Since: 8.0
-
hidesBottomBarWhenPushed
public boolean hidesBottomBarWhenPushed()
If YES, then when this view controller is pushed into a controller hierarchy with a bottom bar (like a tab bar), the bottom bar will slide out. Default is NO.
-
init
public UIViewController init()
- Overrides:
initin classUIResponder
-
initWithCoder
public UIViewController initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
initWithNibNameBundle
public UIViewController initWithNibNameBundle(@Nullable @Nullable java.lang.String nibNameOrNil, @Nullable @Nullable NSBundle nibBundleOrNil)
The designated initializer. If you subclass UIViewController, you must call the super implementation of this method, even if you aren't using a NIB. (As a convenience, the default init method will do this for you, and specify nil for both of this methods arguments.) In the specified NIB, the File's Owner proxy should have its class set to your view controller subclass, with the view outlet connected to the main view. If you invoke this method with a nil nib name, then this class' -loadView method will attempt to load a NIB whose name is the same as your view controller's class. If no such NIB in fact exists then you must either call -setView: before -view is invoked, or override the -loadView method to set up your views programatically.
-
interfaceOrientation
@Deprecated public long interfaceOrientation()
Deprecated.API-Since: 2.0 Deprecated-Since: 8.0
-
isBeingDismissed
public boolean isBeingDismissed()
API-Since: 5.0
-
isBeingPresented
public boolean isBeingPresented()
These four methods can be used in a view controller's appearance callbacks to determine if it is being presented, dismissed, or added or removed as a child view controller. For example, a view controller can check if it is disappearing because it was dismissed or popped by asking itself in its viewWillDisappear: method by checking the expression ([self isBeingDismissed] || [self isMovingFromParentViewController]). API-Since: 5.0
-
isEditing
public boolean isEditing()
-
setEditing
public void setEditing(boolean value)
-
isModalInPopover
@Deprecated public boolean isModalInPopover()
Deprecated.modalInPopover is set on the view controller when you wish to force the popover hosting the view controller into modal behavior. When this is active, the popover will ignore events outside of its bounds until this is set to NO. API-Since: 3.2 Deprecated-Since: 13.0
-
setModalInPopover
@Deprecated public void setModalInPopover(boolean value)
Deprecated.modalInPopover is set on the view controller when you wish to force the popover hosting the view controller into modal behavior. When this is active, the popover will ignore events outside of its bounds until this is set to NO. API-Since: 3.2 Deprecated-Since: 13.0
-
isMovingFromParentViewController
public boolean isMovingFromParentViewController()
API-Since: 5.0
-
isMovingToParentViewController
public boolean isMovingToParentViewController()
API-Since: 5.0
-
isViewLoaded
public boolean isViewLoaded()
API-Since: 3.0
-
loadView
public void loadView()
This is where subclasses should create their custom view hierarchy if they aren't using a nib. Should never be called directly.
-
loadViewIfNeeded
public void loadViewIfNeeded()
Loads the view controller's view if it has not already been set. API-Since: 9.0
-
modalPresentationCapturesStatusBarAppearance
public boolean modalPresentationCapturesStatusBarAppearance()
This controls whether this view controller takes over control of the status bar's appearance when presented non-full screen on another view controller. Defaults to NO. API-Since: 7.0
-
modalPresentationStyle
public long modalPresentationStyle()
Defines the presentation style that will be used for this view controller when it is presented modally. Set this property on the view controller to be presented, not the presenter. If this property has been set to UIModalPresentationAutomatic, reading it will always return a concrete presentation style. By default UIViewController resolves UIModalPresentationAutomatic to UIModalPresentationPageSheet, but system-provided subclasses may resolve UIModalPresentationAutomatic to other concrete presentation styles. Participation in the resolution of UIModalPresentationAutomatic is reserved for system-provided view controllers. Defaults to UIModalPresentationAutomatic on iOS starting in iOS 13.0, and UIModalPresentationFullScreen on previous versions. Defaults to UIModalPresentationFullScreen on all other platforms. API-Since: 3.2
-
modalTransitionStyle
public long modalTransitionStyle()
Defines the transition style that will be used for this view controller when it is presented modally. Set this property on the view controller to be presented, not the presenter. Defaults to UIModalTransitionStyleCoverVertical. API-Since: 3.0
-
modalViewController
@Nullable @Deprecated public @Nullable UIViewController modalViewController()
Deprecated.This property has been replaced by presentedViewController. API-Since: 2.0 Deprecated-Since: 6.0
-
navigationController
@Nullable public @Nullable UINavigationController navigationController()
If this view controller has been pushed onto a navigation controller, return it.
-
navigationItem
@NotNull public @NotNull UINavigationItem navigationItem()
Created on-demand so that a view controller may customize its navigation appearance.
-
nibBundle
@Nullable public @Nullable NSBundle nibBundle()
The bundle from which to load the nib.
-
nibName
@Nullable public @Nullable java.lang.String nibName()
The name of the nib to be loaded to instantiate the view.
-
objectRestorationClass
@Nullable public @Nullable UIObjectRestoration objectRestorationClass()
Description copied from interface:UIStateRestoringThe restoration class specifies a class which is consulted during restoration to find/create the object, rather than trying to look it up implicitly- Specified by:
objectRestorationClassin interfaceUIStateRestoring
-
overrideTraitCollectionForChildViewController
@Deprecated @Nullable public @Nullable UITraitCollection overrideTraitCollectionForChildViewController(@NotNull @NotNull UIViewController childViewController)
Deprecated.API-Since: 8.0 Deprecated-Since: 17.0 Deprecated-Message: Use the traitOverrides property on the child view controller instead
-
parentViewController
@Nullable public @Nullable UIViewController parentViewController()
If this view controller is a child of a containing view controller (e.g. a navigation controller or tab bar controller,) this is the containing view controller. Note that as of 5.0 this no longer will return the presenting view controller.
-
performSegueWithIdentifierSender
public void performSegueWithIdentifierSender(@NotNull @NotNull java.lang.String identifier, @Nullable @Nullable java.lang.Object sender)API-Since: 5.0
-
popoverPresentationController
@Nullable public @Nullable UIPopoverPresentationController popoverPresentationController()
API-Since: 8.0
-
preferredContentSize
public CGSize preferredContentSize()
Description copied from interface:UIContentContainerAPI-Since: 8.0- Specified by:
preferredContentSizein interfaceUIContentContainer
-
preferredContentSizeDidChangeForChildContentContainer
public void preferredContentSizeDidChangeForChildContentContainer(@NotNull @NotNull UIContentContainer container)Description copied from interface:UIContentContainerAPI-Since: 8.0- Specified by:
preferredContentSizeDidChangeForChildContentContainerin interfaceUIContentContainer
-
preferredFocusEnvironments
@NotNull public @NotNull NSArray<?> preferredFocusEnvironments()
Description copied from interface:UIFocusEnvironmentThe preferred focus environments define where to search for the default focused item in an environment, such as when focus updates programmatically. Starting from the target environment, each preferred focus environment is recursively searched in the order of the array until an eligible, focusable item is found. Preferred focus environments can include focusable and non-focusable items, in addition to non-item environments. Returning an empty array is equivalent to returning an array containing only 'self'.- Specified by:
preferredFocusEnvironmentsin interfaceUIFocusEnvironment
-
preferredFocusedView
@Nullable @Deprecated public @Nullable UIView preferredFocusedView()
Deprecated.Description copied from interface:UIFocusEnvironmentAPI-Since: 9.0 Deprecated-Since: 10.0- Specified by:
preferredFocusedViewin interfaceUIFocusEnvironment
-
preferredInterfaceOrientationForPresentation
public long preferredInterfaceOrientationForPresentation()
Returns interface orientation masks. API-Since: 6.0
-
preferredStatusBarStyle
public long preferredStatusBarStyle()
Defaults to UIStatusBarStyleDefault API-Since: 7.0
-
preferredStatusBarUpdateAnimation
public long preferredStatusBarUpdateAnimation()
Defaults to UIStatusBarAnimationFade API-Since: 7.0
-
prefersStatusBarHidden
public boolean prefersStatusBarHidden()
Defaults to NO API-Since: 7.0
-
prepareForSegueSender
public void prepareForSegueSender(@NotNull @NotNull UIStoryboardSegue segue, @Nullable @Nullable java.lang.Object sender)API-Since: 5.0
-
presentModalViewControllerAnimated
@Deprecated public void presentModalViewControllerAnimated(@NotNull @NotNull UIViewController modalViewController, boolean animated)Deprecated.Display another view controller as a modal child. Uses a vertical sheet transition if animated.This method has been replaced by presentViewController:animated:completion: API-Since: 2.0 Deprecated-Since: 6.0
-
presentMoviePlayerViewControllerAnimated
@Deprecated public void presentMoviePlayerViewControllerAnimated(MPMoviePlayerViewController moviePlayerViewController)
Deprecated.API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit.
-
presentViewControllerAnimatedCompletion
public void presentViewControllerAnimatedCompletion(@NotNull @NotNull UIViewController viewControllerToPresent, boolean flag, @Nullable @Nullable UIViewController.Block_presentViewControllerAnimatedCompletion completion)The next two methods are replacements for presentModalViewController:animated and dismissModalViewControllerAnimated: The completion handler, if provided, will be invoked after the presented controllers viewDidAppear: callback is invoked. API-Since: 5.0
-
presentationController
@Nullable public @Nullable UIPresentationController presentationController()
API-Since: 8.0
-
presentedViewController
@Nullable public @Nullable UIViewController presentedViewController()
The view controller that was presented by this view controller or its nearest ancestor. API-Since: 5.0
-
presentingViewController
@Nullable public @Nullable UIViewController presentingViewController()
The view controller that presented this view controller (or its farthest ancestor.) API-Since: 5.0
-
previewActionItems
@NotNull @Deprecated public @NotNull NSArray<?> previewActionItems()
Deprecated.API-Since: 9.0 Deprecated-Since: 13.0 Deprecated-Message: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
-
providesPresentationContextTransitionStyle
public boolean providesPresentationContextTransitionStyle()
A controller that defines the presentation context can also specify the modal transition style if this property is true. API-Since: 5.0
-
registerForPreviewingWithDelegateSourceView
@NotNull @Deprecated public @NotNull UIViewControllerPreviewing registerForPreviewingWithDelegateSourceView(@NotNull @NotNull UIViewControllerPreviewingDelegate delegate, @NotNull @NotNull UIView sourceView)
Deprecated.Registers a view controller to participate with 3D Touch preview (peek) and commit (pop). API-Since: 9.0 Deprecated-Since: 13.0 Deprecated-Message: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
-
removeFromParentViewController
public void removeFromParentViewController()
Removes the the receiver from its parent's children controllers array. If this method is overridden then the super implementation must be called. API-Since: 5.0
-
removeKeyCommand
public void removeKeyCommand(@NotNull @NotNull UIKeyCommand keyCommand)API-Since: 9.0
-
restorationClass
@Nullable public @Nullable UIViewControllerRestoration restorationClass()
API-Since: 6.0
-
restorationIdentifier
@Nullable public @Nullable java.lang.String restorationIdentifier()
API-Since: 6.0
-
restorationParent
@Nullable public @Nullable UIStateRestoring restorationParent()
Description copied from interface:UIStateRestoringThe parent property is used to scope the restoration identifier path for an object, to disambiguate it from other objects that might be using the same identifier. The parent must be a restorable object or a view controller, else it will be ignored.- Specified by:
restorationParentin interfaceUIStateRestoring
-
restoresFocusAfterTransition
public boolean restoresFocusAfterTransition()
If YES, when this view controller becomes visible and focusable, focus will be automatically restored to the item that was last focused. For example, when an item in this view controller is focused, and then another view controller is presented and dismissed, the original item will become focused again. Defaults to YES. API-Since: 10.0
-
rotatingFooterView
@Nullable @Deprecated public @Nullable UIView rotatingFooterView()
Deprecated.Must be in the view hierarchy. Default returns nil. API-Since: 2.0 Deprecated-Since: 8.0 Deprecated-Message: Footer views are animated along with the rest of the view hierarchy
-
rotatingHeaderView
@Nullable @Deprecated public @Nullable UIView rotatingHeaderView()
Deprecated.Must be in the view hierarchy. Default returns nil. API-Since: 2.0 Deprecated-Since: 8.0 Deprecated-Message: Header views are animated along with the rest of the view hierarchy
-
searchDisplayController
@Nullable @Deprecated public @Nullable UISearchDisplayController searchDisplayController()
Deprecated.API-Since: 3.0 Deprecated-Since: 8.0
-
segueForUnwindingToViewControllerFromViewControllerIdentifier
@Nullable @Deprecated public @Nullable UIStoryboardSegue segueForUnwindingToViewControllerFromViewControllerIdentifier(@NotNull @NotNull UIViewController toViewController, @NotNull @NotNull UIViewController fromViewController, @Nullable @Nullable java.lang.String identifier)
Deprecated.Deprecated. This method is only used for unwind segues whose destination view controller has been returned by an override of the deprecated method -viewControllerForUnwindSegueAction:fromViewController:withSender:. In that case, UIKit will choose a view controller to act as the “executor” of the unwind. If the destination view controller is being modally presented, the destination view controller itself is the executor. Otherwise, the destination view controller’s parent view controller is the executor. If the executor overrides this method, UIKit will ignore the Custom Class specified in Interface Builder and instead call this method on the executor to obtain a segue that can perform the unwind. The returned segue object must be able to perform all steps necessary to unwind, including dismissing any intermediate modal presentations or popping any necessary navigation items. Applications targeting iOS 9 or later should not override this method. Custom container view controllers should instead override -unwindForSegue:towardsViewController: to modify their local state as part of a UIKit-generated incremental unwind segue. API-Since: 6.0 Deprecated-Since: 9.0
-
separateSecondaryViewControllerForSplitViewController
@Nullable public @Nullable UIViewController separateSecondaryViewControllerForSplitViewController(@NotNull @NotNull UISplitViewController splitViewController)
Called on the primary view controller when a split view controller is separating its children for a transition to a regular-width size class, if its delegate does not provide overridden behavior. The default implementation restores the previous secondary controller. API-Since: 8.0
-
setAutomaticallyAdjustsScrollViewInsets
@Deprecated public void setAutomaticallyAdjustsScrollViewInsets(boolean value)
Deprecated.Defaults to YES API-Since: 7.0 Deprecated-Since: 11.0 Deprecated-Message: Use UIScrollView's contentInsetAdjustmentBehavior instead
-
setContentSizeForViewInPopover
@Deprecated public void setContentSizeForViewInPopover(CGSize value)
Deprecated.contentSizeForViewInPopover allows you to set the size of the content from within the view controller. This property is read/write, and you should generally not override it. API-Since: 3.2 Deprecated-Since: 7.0
-
setDefinesPresentationContext
public void setDefinesPresentationContext(boolean value)
Determines which parent view controller's view should be presented over for presentations of type UIModalPresentationCurrentContext. If no ancestor view controller has this flag set, then the presenter will be the root view controller. API-Since: 5.0
-
setEdgesForExtendedLayout
public void setEdgesForExtendedLayout(long value)
Defaults to UIRectEdgeAll API-Since: 7.0
-
setEditingAnimated
public void setEditingAnimated(boolean editing, boolean animated)Updates the appearance of the Edit|Done button item as necessary. Clients who override it must call super first.
-
setExtendedLayoutIncludesOpaqueBars
public void setExtendedLayoutIncludesOpaqueBars(boolean value)
Defaults to NO, but bars are translucent by default on 7_0. API-Since: 7.0
-
setHidesBottomBarWhenPushed
public void setHidesBottomBarWhenPushed(boolean value)
If YES, then when this view controller is pushed into a controller hierarchy with a bottom bar (like a tab bar), the bottom bar will slide out. Default is NO.
-
setModalPresentationCapturesStatusBarAppearance
public void setModalPresentationCapturesStatusBarAppearance(boolean value)
This controls whether this view controller takes over control of the status bar's appearance when presented non-full screen on another view controller. Defaults to NO. API-Since: 7.0
-
setModalPresentationStyle
public void setModalPresentationStyle(long value)
Defines the presentation style that will be used for this view controller when it is presented modally. Set this property on the view controller to be presented, not the presenter. If this property has been set to UIModalPresentationAutomatic, reading it will always return a concrete presentation style. By default UIViewController resolves UIModalPresentationAutomatic to UIModalPresentationPageSheet, but system-provided subclasses may resolve UIModalPresentationAutomatic to other concrete presentation styles. Participation in the resolution of UIModalPresentationAutomatic is reserved for system-provided view controllers. Defaults to UIModalPresentationAutomatic on iOS starting in iOS 13.0, and UIModalPresentationFullScreen on previous versions. Defaults to UIModalPresentationFullScreen on all other platforms. API-Since: 3.2
-
setModalTransitionStyle
public void setModalTransitionStyle(long value)
Defines the transition style that will be used for this view controller when it is presented modally. Set this property on the view controller to be presented, not the presenter. Defaults to UIModalTransitionStyleCoverVertical. API-Since: 3.0
-
setNeedsFocusUpdate
public void setNeedsFocusUpdate()
Description copied from interface:UIFocusEnvironmentMarks this environment as needing a focus update, which if accepted will attempt to reset focus to this environment, or one of its preferred focus environments, on the next update cycle. If this environment does not currently contain the focused item, then calling this method has no effect. If a parent of this environment is also requesting focus, then this environment's request is rejected in favor of the parent's. NOTE: If you provide your own implementation, it must call `[[UIFocusSystem focusSystemForEnvironment:self] requestFocusUpdateToEnvironment:self]`;- Specified by:
setNeedsFocusUpdatein interfaceUIFocusEnvironment
-
setNeedsStatusBarAppearanceUpdate
public void setNeedsStatusBarAppearanceUpdate()
This should be called whenever the return values for the view controller's status bar attributes have changed. If it is called from within an animation block, the changes will be animated along with the rest of the animation block. API-Since: 7.0
-
setOverrideTraitCollectionForChildViewController
@Deprecated public void setOverrideTraitCollectionForChildViewController(@Nullable @Nullable UITraitCollection collection, @NotNull @NotNull UIViewController childViewController)Deprecated.Call to modify the trait collection for child view controllers. API-Since: 8.0 Deprecated-Since: 17.0 Deprecated-Message: Use the traitOverrides property on the child view controller instead
-
setPreferredContentSize
public void setPreferredContentSize(CGSize value)
The preferredContentSize is used for any container laying out a child view controller. API-Since: 7.0
-
setProvidesPresentationContextTransitionStyle
public void setProvidesPresentationContextTransitionStyle(boolean value)
A controller that defines the presentation context can also specify the modal transition style if this property is true. API-Since: 5.0
-
setRestorationClass_unsafe
public void setRestorationClass_unsafe(@Nullable @Nullable UIViewControllerRestoration value)API-Since: 6.0
-
setRestorationClass
public void setRestorationClass(@Nullable @Nullable UIViewControllerRestoration value)API-Since: 6.0
-
setRestorationIdentifier
public void setRestorationIdentifier(@Nullable @Nullable java.lang.String value)API-Since: 6.0
-
setRestoresFocusAfterTransition
public void setRestoresFocusAfterTransition(boolean value)
If YES, when this view controller becomes visible and focusable, focus will be automatically restored to the item that was last focused. For example, when an item in this view controller is focused, and then another view controller is presented and dismissed, the original item will become focused again. Defaults to YES. API-Since: 10.0
-
setTabBarItem
public void setTabBarItem(UITabBarItem value)
Automatically created lazily with the view controller's title if it's not set explicitly.
-
setTitle
public void setTitle(@Nullable @Nullable java.lang.String value)Localized title for use by a parent controller.
-
setToolbarItems
public void setToolbarItems(@Nullable @Nullable NSArray<? extends UIBarButtonItem> value)API-Since: 3.0
-
setToolbarItemsAnimated
public void setToolbarItemsAnimated(@Nullable @Nullable NSArray<? extends UIBarButtonItem> toolbarItems, boolean animated)API-Since: 3.0
-
setTransitioningDelegate_unsafe
public void setTransitioningDelegate_unsafe(@Nullable @Nullable UIViewControllerTransitioningDelegate value)API-Since: 7.0
-
setTransitioningDelegate
public void setTransitioningDelegate(@Nullable @Nullable UIViewControllerTransitioningDelegate value)API-Since: 7.0
-
setView
public void setView(UIView value)
The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
-
setWantsFullScreenLayout
@Deprecated public void setWantsFullScreenLayout(boolean value)
Deprecated.Deprecated in 7_0, Replaced by the following: API-Since: 3.0 Deprecated-Since: 7.0
-
shouldAutomaticallyForwardAppearanceMethods
public boolean shouldAutomaticallyForwardAppearanceMethods()
API-Since: 6.0
-
shouldAutomaticallyForwardRotationMethods
@Deprecated public boolean shouldAutomaticallyForwardRotationMethods()
Deprecated.API-Since: 6.0 Deprecated-Since: 8.0 Deprecated-Message: Manually forward viewWillTransitionToSize:withTransitionCoordinator: if necessary
-
shouldAutorotate
@Deprecated public boolean shouldAutorotate()
Deprecated.New Autorotation support. API-Since: 6.0 Deprecated-Since: 16.0 Deprecated-Message: Update supported interface orientations and call setNeedsUpdateOfSupportedInterfaceOrientations to indicate a change.
-
shouldAutorotateToInterfaceOrientation
@Deprecated public boolean shouldAutorotateToInterfaceOrientation(long toInterfaceOrientation)
Deprecated.Applications should use supportedInterfaceOrientations and/or shouldAutorotate. API-Since: 2.0 Deprecated-Since: 6.0
-
shouldPerformSegueWithIdentifierSender
public boolean shouldPerformSegueWithIdentifierSender(@NotNull @NotNull java.lang.String identifier, @Nullable @Nullable java.lang.Object sender)Invoked immediately prior to initiating a segue. Return NO to prevent the segue from firing. The default implementation returns YES. This method is not invoked when -performSegueWithIdentifier:sender: is used. API-Since: 6.0
-
shouldUpdateFocusInContext
public boolean shouldUpdateFocusInContext(@NotNull @NotNull UIFocusUpdateContext context)Description copied from interface:UIFocusEnvironmentAsks whether the system should allow a focus update to occur.- Specified by:
shouldUpdateFocusInContextin interfaceUIFocusEnvironment
-
showDetailViewControllerSender
public void showDetailViewControllerSender(@NotNull @NotNull UIViewController vc, @Nullable @Nullable java.lang.Object sender)This method will show a view controller within the semantic "detail" UI associated with the current size-class environment. It's implementation calls `[self targetViewControllerForAction:sender:]` first and redirects accordingly if the return value is not `self`, otherwise it will present the vc. API-Since: 8.0
-
showViewControllerSender
public void showViewControllerSender(@NotNull @NotNull UIViewController vc, @Nullable @Nullable java.lang.Object sender)This method will show a view controller appropriately for the current size-class environment. It's implementation calls `[self targetViewControllerForAction:sender:]` first and redirects accordingly if the return value is not `self`, otherwise it will present the vc. API-Since: 8.0
-
sizeForChildContentContainerWithParentContainerSize
public CGSize sizeForChildContentContainerWithParentContainerSize(@NotNull @NotNull UIContentContainer container, CGSize parentSize)
Description copied from interface:UIContentContainerWhen the content container forwards viewWillTransitionToSize:withTransitionCoordinator: to its children, it will call this method to determine what size to send them. If the returned size is the same as the child container's current size, viewWillTransitionToSize:withTransitionCoordinator: will not be called. API-Since: 8.0- Specified by:
sizeForChildContentContainerWithParentContainerSizein interfaceUIContentContainer
-
splitViewController
@Nullable public @Nullable UISplitViewController splitViewController()
If the view controller has a split view controller as its ancestor, return it. Returns nil otherwise.
-
storyboard
@Nullable public @Nullable UIStoryboard storyboard()
API-Since: 5.0
-
supportedInterfaceOrientations
public long supportedInterfaceOrientations()
API-Since: 6.0
-
systemLayoutFittingSizeDidChangeForChildContentContainer
public void systemLayoutFittingSizeDidChangeForChildContentContainer(@NotNull @NotNull UIContentContainer container)Description copied from interface:UIContentContainerIntended as a bridge for a view controller that does not use auto layout presenting a child that does use auto layout. If the child's view is using auto layout and the -systemLayoutSizeFittingSize: of the view changes, -systemLayoutFittingSizeDidChangeForChildContentContainer: will be sent to the view controller's parent. API-Since: 8.0- Specified by:
systemLayoutFittingSizeDidChangeForChildContentContainerin interfaceUIContentContainer
-
tabBarController
@Nullable public @Nullable UITabBarController tabBarController()
If the view controller has a tab bar controller as its ancestor, return it. Returns nil otherwise.
-
tabBarItem
public UITabBarItem tabBarItem()
Automatically created lazily with the view controller's title if it's not set explicitly.
-
targetViewControllerForActionSender
@Nullable public @Nullable UIViewController targetViewControllerForActionSender(@NotNull @NotNull org.moe.natj.objc.SEL action, @Nullable @Nullable java.lang.Object sender)
This method returns either itself or the nearest ancestor that can perform the given action and, if applicable, has overridden UIViewController's default implementation of the action method. View controllers can return NO from canPerformAction:withSender: to opt out of being a target for a given action. API-Since: 8.0
-
title
@Nullable public @Nullable java.lang.String title()
Localized title for use by a parent controller.
-
toolbarItems
@Nullable public @Nullable NSArray<? extends UIBarButtonItem> toolbarItems()
API-Since: 3.0
-
topLayoutGuide
@NotNull @Deprecated public @NotNull UILayoutSupport topLayoutGuide()
Deprecated.These objects may be used as layout items in the NSLayoutConstraint API API-Since: 7.0 Deprecated-Since: 11.0 Deprecated-Message: Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor
-
traitCollection
@NotNull public @NotNull UITraitCollection traitCollection()
Description copied from interface:UITraitEnvironmentAPI-Since: 8.0- Specified by:
traitCollectionin interfaceUITraitEnvironment
-
traitCollectionDidChange
@Deprecated public void traitCollectionDidChange(@Nullable @Nullable UITraitCollection previousTraitCollection)Deprecated.Description copied from interface:UITraitEnvironmentTo be overridden as needed to provide custom behavior when the environment's traits change. API-Since: 8.0 Deprecated-Since: 17.0 Deprecated-Message: Use the trait change registration APIs declared in the UITraitChangeObservable protocol- Specified by:
traitCollectionDidChangein interfaceUITraitEnvironment
-
transitionCoordinator
@Nullable public @Nullable UIViewControllerTransitionCoordinator transitionCoordinator()
The default implementation will return a transition coordinator if called during an active presentation or dismissal. Otherwise it will ask the parent view controller. This method, if overridden, can first check if there is an appropriate transition coordinator to return, otherwise it should call super. Only custom container view controllers should ever need to override this method. API-Since: 7.0
-
transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion
public void transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion(@NotNull @NotNull UIViewController fromViewController, @NotNull @NotNull UIViewController toViewController, double duration, long options, @Nullable @Nullable UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_4 animations, @Nullable @Nullable UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_5 completion)This method can be used to transition between sibling child view controllers. The receiver of this method is their common parent view controller. (Use [UIViewController addChildViewController:] to create the parent/child relationship.) This method will add the toViewController's view to the superview of the fromViewController's view and the fromViewController's view will be removed from its superview after the transition completes. It is important to allow this method to add and remove the views. The arguments to this method are the same as those defined by UIView's block animation API. This method will fail with an NSInvalidArgumentException if the parent view controllers are not the same as the receiver, or if the receiver explicitly forwards its appearance and rotation callbacks to its children. Finally, the receiver should not be a subclass of an iOS container view controller. Note also that it is possible to use the UIView APIs directly. If they are used it is important to ensure that the toViewController's view is added to the visible view hierarchy while the fromViewController's view is removed. API-Since: 5.0
-
transitioningDelegate
@Nullable public @Nullable UIViewControllerTransitioningDelegate transitioningDelegate()
API-Since: 7.0
-
unregisterForPreviewingWithContext
@Deprecated public void unregisterForPreviewingWithContext(@NotNull @NotNull UIViewControllerPreviewing previewing)Deprecated.API-Since: 9.0 Deprecated-Since: 13.0 Deprecated-Message: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
-
unwindForSegueTowardsViewController
public void unwindForSegueTowardsViewController(@NotNull @NotNull UIStoryboardSegue unwindSegue, @NotNull @NotNull UIViewController subsequentVC)Custom container view controllers should override this method to modify themselves as part of an ongoing unwind segue. The subsequentVC is the parent, child, or presented view controller closest to the receiver in the direction of the segue's destinationViewController. For example, UINavigationController's implementation of this method will pop any necessary view controllers to reveal the subsequentVC. API-Since: 9.0
-
updateFocusIfNeeded
public void updateFocusIfNeeded()
Description copied from interface:UIFocusEnvironmentForces focus to be updated immediately. If there is an environment that has requested a focus update via -setNeedsFocusUpdate, and the request was accepted, then focus will be updated to that environment or one of its preferred focus environments. NOTE: If you provide your own implementation, it must call `[[UIFocusSystem focusSystemForEnvironment:self] updateFocusIfNeeded];`.- Specified by:
updateFocusIfNeededin interfaceUIFocusEnvironment
-
updateViewConstraints
public void updateViewConstraints()
Base implementation sends -updateConstraints to the view. When a view has a view controller, this message is sent to the view controller during the Auto Layout updateConstraints pass in lieu of sending updateConstraints directly to the view. You may override this method in a UIViewController subclass for updating custom constraints instead of subclassing your view and overriding -[UIView updateConstraints]. Overrides must call super or send -updateConstraints to the view. API-Since: 6.0
-
view
public UIView view()
The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
-
viewControllerForUnwindSegueActionFromViewControllerWithSender
@Nullable @Deprecated public @Nullable UIViewController viewControllerForUnwindSegueActionFromViewControllerWithSender(@NotNull @NotNull org.moe.natj.objc.SEL action, @NotNull @NotNull UIViewController fromViewController, @Nullable @Nullable java.lang.Object sender)
Deprecated.Deprecated. Returns a direct child of the receiver that responds YES to -canPerformUnwindSegueAction:fromViewController:sender:, or self if no children respond YES but the receiver itself does. If this method has been overridden, UIViewController's implementation does not consult child view controllers at all, and skips straight to sending -canPerformUnwindSegueAction:... to self. Applications targeting iOS 9 or later should not override this method. Applications can instead override -allowedChildViewControllersForUnwindingFromSource: to guide UIKit’s search for a descendant view controller that returns YES from -canPerformUnwindSegueAction:fromViewController:sender:. API-Since: 6.0 Deprecated-Since: 9.0
-
viewDidAppear
public void viewDidAppear(boolean animated)
Called after the view has fully transitioned to visible, when any transition animations have completed.
-
viewDidDisappear
public void viewDidDisappear(boolean animated)
Called after the view has fully been dismissed, covered, or otherwise hidden, when any transition animations have completed.
-
viewDidLayoutSubviews
public void viewDidLayoutSubviews()
Called just after the view controller's view's layoutSubviews method is invoked. Subclasses can implement as necessary. The default is a no-op. API-Since: 5.0
-
viewDidLoad
public void viewDidLoad()
Called after the view has been loaded. For view controllers created in code, this is after -loadView. For view controllers unarchived from a nib, this is after the view is set.
-
viewDidUnload
@Deprecated public void viewDidUnload()
Deprecated.Called after the view controller's view is released and set to nil. For example, a memory warning which causes the view to be purged. Not invoked as a result of -dealloc. API-Since: 3.0 Deprecated-Since: 6.0
-
viewIfLoaded
@Nullable public @Nullable UIView viewIfLoaded()
Returns the view controller's view if loaded, nil if not. API-Since: 9.0
-
viewWillAppear
public void viewWillAppear(boolean animated)
Called when the view is about to made visible, before it is added to the hierarchy. Because the view is not yet in the hierarchy at the time this method is called, it is too early in the appearance transition for many usages. Prefer -viewIsAppearing: instead of this method when possible. Only use this method when its exact timing before the appearance transition starts running is desired, such as to set up an alongside animation with a transition coordinator, or as a counterpart for paired code in a viewWillDisappear/viewDidDisappear callback that does not rely on the view or view controller's trait collection or the view hierarchy.
-
viewWillDisappear
public void viewWillDisappear(boolean animated)
Called when the view is about to be dismissed, covered, or otherwise hidden.
-
viewWillLayoutSubviews
public void viewWillLayoutSubviews()
Called just before the view controller's view's layoutSubviews method is invoked. Subclasses can implement as necessary. The default is a no-op. API-Since: 5.0
-
viewWillTransitionToSizeWithTransitionCoordinator
public void viewWillTransitionToSizeWithTransitionCoordinator(CGSize size, @NotNull @NotNull UIViewControllerTransitionCoordinator coordinator)
Description copied from interface:UIContentContainerThis method is called when the view controller's view's size is changed by its parent (i.e. for the root view controller when its window rotates or is resized). If you override this method, you should either call super to propagate the change to children or manually forward the change to children. API-Since: 8.0- Specified by:
viewWillTransitionToSizeWithTransitionCoordinatorin interfaceUIContentContainer
-
viewWillUnload
@Deprecated public void viewWillUnload()
Deprecated.API-Since: 5.0 Deprecated-Since: 6.0
-
wantsFullScreenLayout
@Deprecated public boolean wantsFullScreenLayout()
Deprecated.Deprecated in 7_0, Replaced by the following: API-Since: 3.0 Deprecated-Since: 7.0
-
willAnimateFirstHalfOfRotationToInterfaceOrientationDuration
@Deprecated public void willAnimateFirstHalfOfRotationToInterfaceOrientationDuration(long toInterfaceOrientation, double duration)Deprecated.API-Since: 2.0 Deprecated-Since: 5.0
-
willAnimateRotationToInterfaceOrientationDuration
@Deprecated public void willAnimateRotationToInterfaceOrientationDuration(long toInterfaceOrientation, double duration)Deprecated.API-Since: 3.0 Deprecated-Since: 8.0 Deprecated-Message: Implement viewWillTransitionToSize:withTransitionCoordinator: instead
-
willAnimateSecondHalfOfRotationFromInterfaceOrientationDuration
@Deprecated public void willAnimateSecondHalfOfRotationFromInterfaceOrientationDuration(long fromInterfaceOrientation, double duration)Deprecated.A this point, our view orientation is set to the new orientation. API-Since: 2.0 Deprecated-Since: 5.0
-
willMoveToParentViewController
public void willMoveToParentViewController(@Nullable @Nullable UIViewController parent)These two methods are public for container subclasses to call when transitioning between child controllers. If they are overridden, the overrides should ensure to call the super. The parent argument in both of these methods is nil when a child is being removed from its parent; otherwise it is equal to the new parent view controller. addChildViewController: will call [child willMoveToParentViewController:self] before adding the child. However, it will not call didMoveToParentViewController:. It is expected that a container view controller subclass will make this call after a transition to the new child has completed or, in the case of no transition, immediately after the call to addChildViewController:. Similarly, removeFromParentViewController does not call [self willMoveToParentViewController:nil] before removing the child. This is also the responsibility of the container subclass. Container subclasses will typically define a method that transitions to a new child by first calling addChildViewController:, then executing a transition which will add the new child's view into the view hierarchy of its parent, and finally will call didMoveToParentViewController:. Similarly, subclasses will typically define a method that removes a child in the reverse manner by first calling [child willMoveToParentViewController:nil]. API-Since: 5.0
-
willRotateToInterfaceOrientationDuration
@Deprecated public void willRotateToInterfaceOrientationDuration(long toInterfaceOrientation, double duration)Deprecated.Notifies when rotation begins, reaches halfway point and ends. API-Since: 2.0 Deprecated-Since: 8.0 Deprecated-Message: Implement viewWillTransitionToSize:withTransitionCoordinator: instead
-
willTransitionToTraitCollectionWithTransitionCoordinator
public void willTransitionToTraitCollectionWithTransitionCoordinator(@NotNull @NotNull UITraitCollection newCollection, @NotNull @NotNull UIViewControllerTransitionCoordinator coordinator)Description copied from interface:UIContentContainerThis method is called when the view controller's trait collection is changed by its parent. If you override this method, you should either call super to propagate the change to children or manually forward the change to children. API-Since: 8.0- Specified by:
willTransitionToTraitCollectionWithTransitionCoordinatorin interfaceUIContentContainer
-
additionalSafeAreaInsets
public UIEdgeInsets additionalSafeAreaInsets()
Custom container UIViewController subclasses can use this property to add to the overlay that UIViewController calculates for the safeAreaInsets for contained view controllers. API-Since: 11.0
-
childViewControllerForHomeIndicatorAutoHidden
@Nullable public @Nullable UIViewController childViewControllerForHomeIndicatorAutoHidden()
Override to return a child view controller or nil. If non-nil, that view controller's home indicator auto-hiding will be used. If nil, self is used. Whenever the return value changes, -setNeedsHomeIndicatorAutoHiddenUpdate should be called. API-Since: 11.0
-
childViewControllerForScreenEdgesDeferringSystemGestures
@Nullable public @Nullable UIViewController childViewControllerForScreenEdgesDeferringSystemGestures()
Override to return a child view controller or nil. If non-nil, that view controller's screen edges deferring system gestures will be used. If nil, self is used. Whenever the return value changes, -setNeedsScreenEdgesDeferringSystemGesturesUpdate should be called. API-Since: 11.0
-
preferredScreenEdgesDeferringSystemGestures
public long preferredScreenEdgesDeferringSystemGestures()
Controls the application's preferred screen edges deferring system gestures when this view controller is shown. Default is UIRectEdgeNone. API-Since: 11.0
-
prefersHomeIndicatorAutoHidden
public boolean prefersHomeIndicatorAutoHidden()
Controls the application's preferred home indicator auto-hiding when this view controller is shown. API-Since: 11.0
-
setAdditionalSafeAreaInsets
public void setAdditionalSafeAreaInsets(UIEdgeInsets value)
Custom container UIViewController subclasses can use this property to add to the overlay that UIViewController calculates for the safeAreaInsets for contained view controllers. API-Since: 11.0
-
setNeedsUpdateOfHomeIndicatorAutoHidden
public void setNeedsUpdateOfHomeIndicatorAutoHidden()
This should be called whenever the return values for the view controller's home indicator auto-hiding have changed. API-Since: 11.0
-
setNeedsUpdateOfScreenEdgesDeferringSystemGestures
public void setNeedsUpdateOfScreenEdgesDeferringSystemGestures()
This should be called whenever the return values for the view controller's screen edges deferring system gestures have changed. API-Since: 11.0
-
setViewRespectsSystemMinimumLayoutMargins
public void setViewRespectsSystemMinimumLayoutMargins(boolean value)
Default YES. The return value of the view's layoutMargins and directionalLayoutMargins properties will have values no smaller than the systemMinimumLayoutMargins. Set to NO for full customizability of the view's layoutMargins. API-Since: 11.0
-
systemMinimumLayoutMargins
public NSDirectionalEdgeInsets systemMinimumLayoutMargins()
Minimum layoutMargins for the view determined by the view controller from context and hardware information. The view controller's view will respect these minimums unless viewRespectsSystemMinimumLayoutMargins (which defaults to YES) is set to NO. API-Since: 11.0
-
viewLayoutMarginsDidChange
public void viewLayoutMarginsDidChange()
API-Since: 11.0
-
viewRespectsSystemMinimumLayoutMargins
public boolean viewRespectsSystemMinimumLayoutMargins()
Default YES. The return value of the view's layoutMargins and directionalLayoutMargins properties will have values no smaller than the systemMinimumLayoutMargins. Set to NO for full customizability of the view's layoutMargins. API-Since: 11.0
-
viewSafeAreaInsetsDidChange
public void viewSafeAreaInsetsDidChange()
API-Since: 11.0
-
canPerformUnwindSegueActionFromViewControllerSender
public boolean canPerformUnwindSegueActionFromViewControllerSender(@NotNull @NotNull org.moe.natj.objc.SEL action, @NotNull @NotNull UIViewController fromViewController, @Nullable @Nullable java.lang.Object sender)View controllers will receive this message during segue unwinding. The default implementation returns the result of -respondsToSelector: - controllers can override this to perform any ancillary checks, if necessary. API-Since: 13.0
-
focusItemContainer
@Nullable public @Nullable UIFocusItemContainer focusItemContainer()
Description copied from interface:UIFocusEnvironmentThe container of any child focus items in this focus environment, or nil if no container exists. API-Since: 12.0- Specified by:
focusItemContainerin interfaceUIFocusEnvironment
-
isModalInPresentation
public boolean isModalInPresentation()
modalInPresentation is set on the view controller when you wish to force the presentation hosting the view controller into modal behavior. When this is active, the presentation will prevent interactive dismiss and ignore events outside of the presented view controller's bounds until this is set to NO. API-Since: 13.0
-
overrideUserInterfaceStyle
public long overrideUserInterfaceStyle()
Defaults to UIUserInterfaceStyleUnspecified API-Since: 13.0
-
parentFocusEnvironment
@Nullable public @Nullable UIFocusEnvironment parentFocusEnvironment()
Description copied from interface:UIFocusEnvironmentThe parent focus environment of this environment, or nil if no parent exists. NOTE: If you implement this method, you must return a non-nil value for parent focus environment, otherwise your focus environment will not participate in focus interactions. API-Since: 12.0- Specified by:
parentFocusEnvironmentin interfaceUIFocusEnvironment
-
performsActionsWhilePresentingModally
public boolean performsActionsWhilePresentingModally()
Determines whether the receiver continues to respond to actions while it is presenting a view controller modally. Defaults to YES. You can change the default return value by providing a value for UIViewControllerPerformsActionsWhilePresentingModally in your Info.plist file. API-Since: 13.0
-
setModalInPresentation
public void setModalInPresentation(boolean value)
modalInPresentation is set on the view controller when you wish to force the presentation hosting the view controller into modal behavior. When this is active, the presentation will prevent interactive dismiss and ignore events outside of the presented view controller's bounds until this is set to NO. API-Since: 13.0
-
setOverrideUserInterfaceStyle
public void setOverrideUserInterfaceStyle(long value)
Defaults to UIUserInterfaceStyleUnspecified API-Since: 13.0
-
childViewControllerForPointerLock
@Nullable public @Nullable UIViewController childViewControllerForPointerLock()
Override to return a child view controller or nil. If non-nil, that view controller's preferred pointer lock value will be used. If nil, self is used. Whenever the return value changes, setNeedsUpdateOfPrefersPointerLocked() should be called. API-Since: 14.0
-
focusGroupIdentifier
@Nullable public @Nullable java.lang.String focusGroupIdentifier()
Description copied from interface:UIFocusEnvironmentThe identifier of the focus group that this view belongs to. If this is nil, subviews inherit their superview's focus group. API-Since: 14.0- Specified by:
focusGroupIdentifierin interfaceUIFocusEnvironment
-
prefersPointerLocked
public boolean prefersPointerLocked()
Whether the pointer should be locked to a given scene when this view controller is shown. The default is NO. This preference may or may not be honored. See UIPointerLockState.locked for the current pointer lock state as determined by the system. API-Since: 14.0
-
setNeedsUpdateOfPrefersPointerLocked
public void setNeedsUpdateOfPrefersPointerLocked()
This should be called whenever the view controller's preferred pointer lock value has changed. API-Since: 14.0
-
contentScrollViewForEdge
@Nullable public @Nullable UIScrollView contentScrollViewForEdge(long edge)
Subclass overrides will be called when available API-Since: 15.0
-
setContentScrollViewForEdge
public void setContentScrollViewForEdge(@Nullable @Nullable UIScrollView scrollView, long edge)Depending on the value passed in the `edge` parameter, a containing UINavigationController, UITabBarController, or both will observe the UIScrollView instance in the `contentScrollView` parameter to determine the background blur for the bars and to update contentInset adjustments for the scroll view. When contentScrollView is nil for an edge, UIKit uses a heuristic to search for a UIScrollView to track. If none is found, the relevant bar will be transparent unless otherwise customized with the `scrollEdgeAppearance` APIs. Aggregate values (e.g., NSDirectionalRectEdgeAll) are accepted in the `edge` parameter; NSDirectionalRectEdgeLeading and Trailing are ignored on iOS 15.0 API-Since: 15.0
-
setFocusGroupIdentifier
public void setFocusGroupIdentifier(@Nullable @Nullable java.lang.String value)The identifier of the focus group that this view controller belongs to. If this is nil, the view controller inherits the focus group of its parent focus environment. API-Since: 15.0
-
sheetPresentationController
@Nullable public @Nullable UISheetPresentationController sheetPresentationController()
API-Since: 15.0
-
activePresentationController
@Nullable public @Nullable UIPresentationController activePresentationController()
Gets the presentation controller managing this view controller. If the original presentation controller has adapted, this returns the adaptive presentation controller. If this view controller has not yet been presented, this property returns nil. API-Since: 16.0
-
interactionActivityTrackingBaseName
@Nullable public @Nullable java.lang.String interactionActivityTrackingBaseName()
The base name for tracking user interactions as activities hosted by this view controller. API-Since: 16.0
-
setInteractionActivityTrackingBaseName
public void setInteractionActivityTrackingBaseName(@Nullable @Nullable java.lang.String value)The base name for tracking user interactions as activities hosted by this view controller. API-Since: 16.0
-
setNeedsUpdateOfSupportedInterfaceOrientations
public void setNeedsUpdateOfSupportedInterfaceOrientations()
Notifies the view controller that a change occurred that affects supported interface orientations or the preferred interface orientation for presentation. By default, this will animate any changes to orientation. To perform a non-animated update, call within `[UIView performWithoutAnimation:]`. API-Since: 16.0
-
contentUnavailableConfiguration
@Nullable public @Nullable UIContentConfiguration contentUnavailableConfiguration()
Setting a content unavailable configuration replaces the existing content unavailable view of the view controller with a new content unavailable view instance from the configuration, or directly applies the configuration to the existing content unavailable view if the configuration is compatible with the existing content unavailable view type. The default value is nil. API-Since: 17.0
-
contentUnavailableConfigurationState
@NotNull public @NotNull UIContentUnavailableConfigurationState contentUnavailableConfigurationState()
Returns the current content unavailable configuration state for the view. To add your own custom state(s), override the getter and call super to obtain an instance with the system properties set, then set your own custom states as desired. API-Since: 17.0
-
registerForTraitChangesWithAction
@NotNull public @NotNull UITraitChangeRegistration registerForTraitChangesWithAction(@NotNull @NotNull NSArray<?> traits, @NotNull @NotNull org.moe.natj.objc.SEL action)
Description copied from interface:UITraitChangeObservableConvenience method where the target is self.- Specified by:
registerForTraitChangesWithActionin interfaceUITraitChangeObservable
-
registerForTraitChangesWithHandler
@NotNull public @NotNull UITraitChangeRegistration registerForTraitChangesWithHandler(@NotNull @NotNull NSArray<?> traits, @NotNull UITraitChangeObservable.Block_registerForTraitChangesWithHandler handler)
- Specified by:
registerForTraitChangesWithHandlerin interfaceUITraitChangeObservable
-
registerForTraitChangesWithTargetAction
@NotNull public @NotNull UITraitChangeRegistration registerForTraitChangesWithTargetAction(@NotNull @NotNull NSArray<?> traits, @NotNull @NotNull java.lang.Object target, @NotNull @NotNull org.moe.natj.objc.SEL action)
Description copied from interface:UITraitChangeObservableThe action method you use with the following registration APIs may have zero, one, or two parameters. If the method accepts at least one parameter, the first parameter will be the trait environment whose traits are changing. If the method accepts two parameters, the second parameter will be the trait environment's previous trait collection before the change.- Specified by:
registerForTraitChangesWithTargetActionin interfaceUITraitChangeObservable
-
setContentUnavailableConfiguration
public void setContentUnavailableConfiguration(@Nullable @Nullable UIContentConfiguration value)Setting a content unavailable configuration replaces the existing content unavailable view of the view controller with a new content unavailable view instance from the configuration, or directly applies the configuration to the existing content unavailable view if the configuration is compatible with the existing content unavailable view type. The default value is nil. API-Since: 17.0
-
setNeedsUpdateContentUnavailableConfiguration
public void setNeedsUpdateContentUnavailableConfiguration()
Requests the view update its content unavailable configuration for its current state. This method is called automatically when the view's `contentUnavailableConfigurationState` may have changed, as well as in other circumstances where an update may be required. Multiple requests may be coalesced into a single update at the appropriate time. API-Since: 17.0
-
traitOverrides
@NotNull public @NotNull UITraitOverrides traitOverrides()
-
unregisterForTraitChanges
public void unregisterForTraitChanges(@NotNull @NotNull UITraitChangeRegistration registration)- Specified by:
unregisterForTraitChangesin interfaceUITraitChangeObservable
-
updateContentUnavailableConfigurationUsingState
public void updateContentUnavailableConfigurationUsingState(@NotNull @NotNull UIContentUnavailableConfigurationState state)Subclasses should override this method and update the content unavailable's configuration using the state provided. This method should not be called directly, use `setNeedsUpdateContentUnavailableConfiguration` to request an update. API-Since: 17.0
-
updateTraitsIfNeeded
public void updateTraitsIfNeeded()
Forces an immediate trait update for this view controller and its view, including any view controllers and views in this subtree. Any trait change callbacks are sent synchronously.
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
viewIsAppearing
public void viewIsAppearing(boolean animated)
Called when the view is becoming visible at the beginning of the appearance transition, after it has been added to the hierarchy and been laid out by its superview. This method is very similar to -viewWillAppear: and is always called shortly afterwards (so changes made in either callback will be visible to the user at the same time), but unlike -viewWillAppear:, at the time when -viewIsAppearing: is called all of the following are valid for the view controller and its own view: - View controller and view's trait collection - View's superview chain and window - View's geometry (e.g. frame/bounds, safe area insets, layout margins) Choose this method instead of -viewWillAppear: by default, as it is a direct replacement that provides equivalent or superior behavior in nearly all cases. API-Since: 13.0
-
-