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,UIAppearanceContainer,UIContentContainer,UIFocusEnvironment,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIStateRestoring,UITraitEnvironment,UIUserActivityRestoring
- Direct Known Subclasses:
ABNewPersonViewController,ABPersonViewController,ABUnknownPersonViewController,ADInterstitialAdPresentationViewController,ASAccountAuthenticationModificationViewController,ASCredentialProviderViewController,AUViewController,AVPlayerViewController,CABTMIDILocalPeripheralViewController,CNContactPickerViewController,CNContactViewController,EKCalendarChooser,EKEventViewController,FPUIActionExtensionViewController,GCEventViewController,GLKViewController,ILClassificationUIExtensionViewController,INUIAddVoiceShortcutViewController,INUIEditVoiceShortcutViewController,MCBrowserViewController,MPMediaPickerController,MPMoviePlayerViewController,MSMessagesAppViewController,MSStickerBrowserViewController,PHPickerViewController,PKAddPassesViewController,PKAddPaymentPassViewController,PKAddSecureElementPassViewController,PKPaymentAuthorizationViewController,QLPreviewController,RPBroadcastActivityViewController,RPPreviewViewController,SFSafariViewController,SKCloudServiceSetupViewController,SKStoreProductViewController,SLComposeServiceViewController,SLComposeViewController,TWTweetComposeViewController,UIActivityViewController,UIAlertController,UICloudSharingController,UICollectionViewController,UIColorPickerViewController,UIDocumentBrowserViewController,UIDocumentMenuViewController,UIDocumentPickerExtensionViewController,UIDocumentPickerViewController,UIFontPickerViewController,UIInputViewController,UINavigationController,UIPageViewController,UIReferenceLibraryViewController,UISearchContainerViewController,UISearchController,UISplitViewController,UITabBarController,UITableViewController,VNDocumentCameraViewController
public class UIViewController extends UIResponder implements NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment, UIStateRestoring, NSExtensionRequestHandling
-
-
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.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
-
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()voidaddChildViewController(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(UIKeyCommand keyCommand)static UIViewControlleralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)NSArray<? extends UIViewController>allowedChildViewControllersForUnwindingFromSource(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()call this method when your return value from shouldAutorotateToInterfaceOrientation: changes if the current interface orientation does not match the current device orientation, a rotation may occur provided all relevant view controllers now return YES from shouldAutorotateToInterfaceOrientation:booleanautomaticallyAdjustsScrollViewInsets()Defaults to YESbooleanautomaticallyForwardAppearanceAndRotationMethodsToChildViewControllers()Deprecated.static booleanautomaticallyNotifiesObserversForKey(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(NSExtensionContext context)Tells the extension to prepare its interface for the requesting context, and request related data items.UILayoutSupportbottomLayoutGuide()static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)booleancanDisplayBannerAds()[@property] canDisplayBannerAds Set this to enable automatic management of banner ad display with the view controller.booleancanPerformUnwindSegueActionFromViewControllerSender(org.moe.natj.objc.SEL action, UIViewController fromViewController, java.lang.Object sender)View controllers will receive this message during segue unwinding.booleancanPerformUnwindSegueActionFromViewControllerWithSender(org.moe.natj.objc.SEL action, UIViewController fromViewController, java.lang.Object sender)UIViewControllerchildViewControllerContainingSegueSource(UIStoryboardUnwindSegueSource source)Returns the child view controller that contains the provided segue source.UIViewControllerchildViewControllerForHomeIndicatorAutoHidden()Override to return a child view controller or nil.UIViewControllerchildViewControllerForPointerLock()Override to return a child view controller or nil.UIViewControllerchildViewControllerForScreenEdgesDeferringSystemGestures()Override to return a child view controller or nil.UIViewControllerchildViewControllerForStatusBarHidden()UIViewControllerchildViewControllerForStatusBarStyle()Override to return a child view controller or nil.NSArray<? extends UIViewController>childViewControllers()An array of children view controllers.static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(java.lang.String identifier)voidcollapseSecondaryViewControllerForSplitViewController(UIViewController secondaryViewController, 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.CGSizecontentSizeForViewInPopover()Deprecated.static java.lang.StringdebugDescription_static()voiddecodeRestorableStateWithCoder(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(UIViewController parent)voiddidReceiveMemoryWarning()Called when the parent application receives a memory warning.voiddidRotateFromInterfaceOrientation(long fromInterfaceOrientation)Deprecated.voiddidUpdateFocusInContextWithAnimationCoordinator(UIFocusUpdateContext context, 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, UIViewController.Block_dismissViewControllerAnimatedCompletion completion)The completion handler, if provided, will be invoked after the dismissed controller's viewDidDisappear: callback is invoked.longedgesForExtendedLayout()Defaults to UIRectEdgeAllUIBarButtonItemeditButtonItem()Return an Edit|Done button that can be used as a navigation item's custom view.voidencodeRestorableStateWithCoder(NSCoder coder)Methods to save and restore state for the object.voidencodeWithCoder(NSCoder coder)voidendAppearanceTransition()booleanextendedLayoutIncludesOpaqueBars()Defaults to NO, but bars are translucent by default on 7_0.NSExtensionContextextensionContext()Returns the extension context.java.lang.StringfocusGroupIdentifier()The identifier of the focus group that this view belongs to.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(NSCoder coder)NS_DESIGNATED_INITIALIZERUIViewControllerinitWithNibNameBundle(java.lang.String nibNameOrNil, 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)longinterfaceOrientation()Deprecated.longinterstitialPresentationPolicy()[@property] interstitialPresentationPolicy The presentation policy determines whether the timing of presentation is entirely managed by the framework or should only take place when the application calls -requestInterstitialAdPresentation.booleanisBeingDismissed()booleanisBeingPresented()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.booleanisDisplayingBannerAd()[@property] displayingBannerAd Can be used to query the controller to determine if it is displaying a banner ad.booleanisEditing()booleanisModalInPopover()modalInPopover is set on the view controller when you wish to force the popover hosting the view controller into modal behavior.booleanisModalInPresentation()modalInPresentation is set on the view controller when you wish to force the presentation hosting the view controller into modal behavior.booleanisMovingFromParentViewController()booleanisMovingToParentViewController()booleanisPresentingFullScreenAd()[@property] presentingFullScreenAd Can be used to query the controller to determine if it is presenting a full screen ad, which may be an interstitial or the iAd shown when the user taps a banner.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisViewLoaded()static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(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.UIViewControllermodalViewController()Deprecated.UINavigationControllernavigationController()If this view controller has been pushed onto a navigation controller, return it.UINavigationItemnavigationItem()Created on-demand so that a view controller may customize its navigation appearance.static java.lang.Objectnew_objc()NSBundlenibBundle()The bundle from which to load the nib.java.lang.StringnibName()The name of the nib to be loaded to instantiate the view.UIObjectRestorationobjectRestorationClass()The restoration class specifies a class which is consulted during restoration to find/create the object, rather than trying to look it up implicitlyUIVieworiginalContentView()[@property] originalContentView If banner ads have not been enabled, originalContentView will return the view controller's view.UITraitCollectionoverrideTraitCollectionForChildViewController(UIViewController childViewController)longoverrideUserInterfaceStyle()Defaults to UIUserInterfaceStyleUnspecifiedUIFocusEnvironmentparentFocusEnvironment()The parent focus environment of this environment, or nil if no parent exists.UIViewControllerparentViewController()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.booleanperformsActionsWhilePresentingModally()Determines whether the receiver continues to respond to actions while it is presenting a view controller modally.voidperformSegueWithIdentifierSender(java.lang.String identifier, java.lang.Object sender)UIPopoverPresentationControllerpopoverPresentationController()CGSizepreferredContentSize()voidpreferredContentSizeDidChangeForChildContentContainer(UIContentContainer container)UIViewpreferredFocusedView()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 UIStatusBarStyleDefaultlongpreferredStatusBarUpdateAnimation()Defaults to UIStatusBarAnimationFadebooleanprefersHomeIndicatorAutoHidden()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 NOvoidprepareForSegueSender(UIStoryboardSegue segue, java.lang.Object sender)static voidprepareInterstitialAds()prepareInterstitials Ads involve network requests, so if an application needs to use interstitial ads and wants to ensure early availability, this method can be called to trigger a prefetch.UIPresentationControllerpresentationController()UIViewControllerpresentedViewController()The view controller that was presented by this view controller or its nearest ancestor.UIViewControllerpresentingViewController()The view controller that presented this view controller (or its farthest ancestor.)voidpresentModalViewControllerAnimated(UIViewController modalViewController, boolean animated)Deprecated.voidpresentMoviePlayerViewControllerAnimated(MPMoviePlayerViewController moviePlayerViewController)Deprecated.voidpresentViewControllerAnimatedCompletion(UIViewController viewControllerToPresent, boolean flag, 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.NSArray<?>previewActionItems()booleanprovidesPresentationContextTransitionStyle()A controller that defines the presentation context can also specify the modal transition style if this property is true.UIViewControllerPreviewingregisterForPreviewingWithDelegateSourceView(UIViewControllerPreviewingDelegate delegate, UIView sourceView)Registers a view controller to participate with 3D Touch preview (peek) and commit (pop).voidremoveFromParentViewController()Removes the the receiver from its parent's children controllers array.voidremoveKeyCommand(UIKeyCommand keyCommand)booleanrequestInterstitialAdPresentation()requestInterstitialAdPresentation Call at any time to request that an interstitial ad be presented.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)UIViewControllerRestorationrestorationClass()java.lang.StringrestorationIdentifier()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.UIViewrotatingFooterView()Deprecated.UIViewrotatingHeaderView()Deprecated.UISearchDisplayControllersearchDisplayController()Deprecated.UIStoryboardSeguesegueForUnwindingToViewControllerFromViewControllerIdentifier(UIViewController toViewController, UIViewController fromViewController, java.lang.String identifier)Deprecated.UIViewControllerseparateSecondaryViewControllerForSplitViewController(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)Defaults to YESvoidsetCanDisplayBannerAds(boolean value)[@property] canDisplayBannerAds Set this to enable automatic management of banner ad display with the view controller.voidsetContentSizeForViewInPopover(CGSize value)Deprecated.voidsetDefinesPresentationContext(boolean value)Determines which parent view controller's view should be presented over for presentations of type UIModalPresentationCurrentContext.voidsetEdgesForExtendedLayout(long value)Defaults to UIRectEdgeAllvoidsetEditing(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.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.voidsetInterstitialPresentationPolicy(long value)[@property] interstitialPresentationPolicy The presentation policy determines whether the timing of presentation is entirely managed by the framework or should only take place when the application calls -requestInterstitialAdPresentation.voidsetModalInPopover(boolean value)modalInPopover is set on the view controller when you wish to force the popover hosting the view controller into modal behavior.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.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.voidsetOverrideTraitCollectionForChildViewController(UITraitCollection collection, UIViewController childViewController)Call to modify the trait collection for child view controllers.voidsetOverrideUserInterfaceStyle(long value)Defaults to UIUserInterfaceStyleUnspecifiedvoidsetPreferredContentSize(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(UIViewControllerRestoration value)voidsetRestorationClass_unsafe(UIViewControllerRestoration value)voidsetRestorationIdentifier(java.lang.String value)voidsetRestoresFocusAfterTransition(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(java.lang.String value)Localized title for use by a parent controller.voidsetToolbarItems(NSArray<? extends UIBarButtonItem> value)voidsetToolbarItemsAnimated(NSArray<? extends UIBarButtonItem> toolbarItems, boolean animated)voidsetTransitioningDelegate(UIViewControllerTransitioningDelegate value)voidsetTransitioningDelegate_unsafe(UIViewControllerTransitioningDelegate value)static 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.booleanshouldAutomaticallyForwardAppearanceMethods()booleanshouldAutomaticallyForwardRotationMethods()Deprecated.booleanshouldAutorotate()New Autorotation support.booleanshouldAutorotateToInterfaceOrientation(long toInterfaceOrientation)Deprecated.booleanshouldPerformSegueWithIdentifierSender(java.lang.String identifier, java.lang.Object sender)Invoked immediately prior to initiating a segue.booleanshouldPresentInterstitialAd()shouldPresentInterstitialAd Subclasses should override this method if they use ADInterstitialPresentationPolicyAutomatic and require the ability to selectively prevent presentation based on application state.booleanshouldUpdateFocusInContext(UIFocusUpdateContext context)Asks whether the system should allow a focus update to occur.voidshowDetailViewControllerSender(UIViewController vc, java.lang.Object sender)This method will show a view controller within the semantic "detail" UI associated with the current size-class environment.voidshowViewControllerSender(UIViewController vc, java.lang.Object sender)This method will show a view controller appropriately for the current size-class environment.CGSizesizeForChildContentContainerWithParentContainerSize(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.UISplitViewControllersplitViewController()If the view controller has a split view controller as its ancestor, return it.UIStoryboardstoryboard()static org.moe.natj.objc.Classsuperclass_static()longsupportedInterfaceOrientations()voidsystemLayoutFittingSizeDidChangeForChildContentContainer(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.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.UIViewControllertargetViewControllerForActionSender(org.moe.natj.objc.SEL action, 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.java.lang.Stringtitle()Localized title for use by a parent controller.NSArray<? extends UIBarButtonItem>toolbarItems()UILayoutSupporttopLayoutGuide()These objects may be used as layout items in the NSLayoutConstraint APIUITraitCollectiontraitCollection()voidtraitCollectionDidChange(UITraitCollection previousTraitCollection)To be overridden as needed to provide custom behavior when the environment's traits change.UIViewControllerTransitionCoordinatortransitionCoordinator()The default implementation will return a transition coordinator if called during an active presentation or dismissal.voidtransitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion(UIViewController fromViewController, UIViewController toViewController, double duration, long options, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_4 animations, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_5 completion)This method can be used to transition between sibling child view controllers.UIViewControllerTransitioningDelegatetransitioningDelegate()voidunregisterForPreviewingWithContext(UIViewControllerPreviewing previewing)voidunwindForSegueTowardsViewController(UIStoryboardSegue unwindSegue, UIViewController subsequentVC)Custom container view controllers should override this method to modify themselves as part of an ongoing unwind segue.voidupdateFocusIfNeeded()Forces focus to be updated immediately.voidupdateViewConstraints()Base implementation sends -updateConstraints to the view.static longversion_static()UIViewview()The getter first invokes [self loadView] if the view hasn't been set yet.UIViewControllerviewControllerForUnwindSegueActionFromViewControllerWithSender(org.moe.natj.objc.SEL action, UIViewController fromViewController, java.lang.Object sender)Deprecated.voidviewDidAppear(boolean animated)Called when the view has been fully transitioned onto the screen.voidviewDidDisappear(boolean animated)Called after the view was dismissed, covered or otherwise hidden.voidviewDidLayoutSubviews()Called just after the view controller's view's layoutSubviews method is invoked.voidviewDidLoad()Called after the view has been loaded.voidviewDidUnload()Deprecated.UIViewviewIfLoaded()Returns the view controller's view if loaded, nil if not.voidviewLayoutMarginsDidChange()booleanviewRespectsSystemMinimumLayoutMargins()Default YES.voidviewSafeAreaInsetsDidChange()voidviewWillAppear(boolean animated)Called when the view is about to made visible.voidviewWillDisappear(boolean animated)Called when the view is dismissed, covered or otherwise hidden.voidviewWillLayoutSubviews()Called just before the view controller's view's layoutSubviews method is invoked.voidviewWillTransitionToSizeWithTransitionCoordinator(CGSize size, UIViewControllerTransitionCoordinator coordinator)This 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).voidviewWillUnload()Deprecated.booleanwantsFullScreenLayout()Deprecated.voidwillAnimateFirstHalfOfRotationToInterfaceOrientationDuration(long toInterfaceOrientation, double duration)Deprecated.voidwillAnimateRotationToInterfaceOrientationDuration(long toInterfaceOrientation, double duration)Deprecated.voidwillAnimateSecondHalfOfRotationFromInterfaceOrientationDuration(long fromInterfaceOrientation, double duration)Deprecated.voidwillMoveToParentViewController(UIViewController parent)These two methods are public for container subclasses to call when transitioning between child controllers.voidwillRotateToInterfaceOrientationDuration(long toInterfaceOrientation, double duration)Deprecated.voidwillTransitionToTraitCollectionWithTransitionCoordinator(UITraitCollection newCollection, 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, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommand
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, 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, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UIViewController alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
attemptRotationToDeviceOrientation
public static void attemptRotationToDeviceOrientation()
call this method when your return value from shouldAutorotateToInterfaceOrientation: changes if the current interface orientation does not match the current device orientation, a rotation may occur provided all relevant view controllers now return YES from shouldAutorotateToInterfaceOrientation:
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(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
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
prepareInterstitialAds
public static void prepareInterstitialAds()
prepareInterstitials Ads involve network requests, so if an application needs to use interstitial ads and wants to ensure early availability, this method can be called to trigger a prefetch. If this method is not called, the first fetch will occur when a view controller's interstitialPresentationPolicy is set to something other than ADInterstitialPresentationPolicyNone.
-
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(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.
-
addKeyCommand
public void addKeyCommand(UIKeyCommand keyCommand)
-
allowedChildViewControllersForUnwindingFromSource
public NSArray<? extends UIViewController> allowedChildViewControllersForUnwindingFromSource(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.
-
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
public boolean automaticallyAdjustsScrollViewInsets()
Defaults to YES
-
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:
-
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.
-
beginRequestWithExtensionContext
public void beginRequestWithExtensionContext(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
public UILayoutSupport bottomLayoutGuide()
-
canDisplayBannerAds
public boolean canDisplayBannerAds()
[@property] canDisplayBannerAds Set this to enable automatic management of banner ad display with the view controller. It's important to note that this will modify the view hierarchy of the view controller by inserting a new container view above the view controller's view. The impact is that the view controller's view property will no longer return the originally provided view, it will return the new container. To access the original view, use the originalContentView property.- See Also:
originalContentView()
-
canPerformUnwindSegueActionFromViewControllerWithSender
public boolean canPerformUnwindSegueActionFromViewControllerWithSender(org.moe.natj.objc.SEL action, UIViewController fromViewController, java.lang.Object sender)
-
childViewControllerContainingSegueSource
public UIViewController childViewControllerContainingSegueSource(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.
-
childViewControllerForStatusBarHidden
public UIViewController childViewControllerForStatusBarHidden()
-
childViewControllerForStatusBarStyle
public 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.
-
childViewControllers
public NSArray<? extends UIViewController> childViewControllers()
An array of children view controllers. This array does not include any presented view controllers.
-
collapseSecondaryViewControllerForSplitViewController
public void collapseSecondaryViewControllerForSplitViewController(UIViewController secondaryViewController, 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.)
-
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.
-
decodeRestorableStateWithCoder
public void decodeRestorableStateWithCoder(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.
-
didAnimateFirstHalfOfRotationToInterfaceOrientation
@Deprecated public void didAnimateFirstHalfOfRotationToInterfaceOrientation(long toInterfaceOrientation)
Deprecated.The rotating header and footer views are offscreen.
-
didMoveToParentViewController
public void didMoveToParentViewController(UIViewController parent)
-
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.
-
didUpdateFocusInContextWithAnimationCoordinator
public void didUpdateFocusInContextWithAnimationCoordinator(UIFocusUpdateContext context, 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.
-
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:
-
dismissMoviePlayerViewControllerAnimated
@Deprecated public void dismissMoviePlayerViewControllerAnimated()
Deprecated.
-
dismissViewControllerAnimatedCompletion
public void dismissViewControllerAnimatedCompletion(boolean flag, UIViewController.Block_dismissViewControllerAnimatedCompletion completion)The completion handler, if provided, will be invoked after the dismissed controller's viewDidDisappear: callback is invoked.
-
edgesForExtendedLayout
public long edgesForExtendedLayout()
Defaults to UIRectEdgeAll
-
editButtonItem
public 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(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(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
endAppearanceTransition
public void endAppearanceTransition()
-
extendedLayoutIncludesOpaqueBars
public boolean extendedLayoutIncludesOpaqueBars()
Defaults to NO, but bars are translucent by default on 7_0.
-
extensionContext
public 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.
-
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(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
initWithNibNameBundle
public UIViewController initWithNibNameBundle(java.lang.String nibNameOrNil, 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.
-
interstitialPresentationPolicy
public long interstitialPresentationPolicy()
[@property] interstitialPresentationPolicy The presentation policy determines whether the timing of presentation is entirely managed by the framework or should only take place when the application calls -requestInterstitialAdPresentation. By default the policy is "None", so to be able to present an interstitial it must be changed to either "Automatic" or "Manual".
-
isBeingDismissed
public boolean isBeingDismissed()
-
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]).
-
isDisplayingBannerAd
public boolean isDisplayingBannerAd()
[@property] displayingBannerAd Can be used to query the controller to determine if it is displaying a banner ad.
-
isEditing
public boolean isEditing()
-
setEditing
public void setEditing(boolean value)
-
isModalInPopover
public boolean isModalInPopover()
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.
-
setModalInPopover
public void setModalInPopover(boolean value)
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.
-
isMovingFromParentViewController
public boolean isMovingFromParentViewController()
-
isMovingToParentViewController
public boolean isMovingToParentViewController()
-
isPresentingFullScreenAd
public boolean isPresentingFullScreenAd()
[@property] presentingFullScreenAd Can be used to query the controller to determine if it is presenting a full screen ad, which may be an interstitial or the iAd shown when the user taps a banner.
-
isViewLoaded
public boolean isViewLoaded()
-
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.
-
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.
-
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.
-
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.
-
modalViewController
@Deprecated public UIViewController modalViewController()
Deprecated.This property has been replaced by presentedViewController.
-
navigationController
public UINavigationController navigationController()
If this view controller has been pushed onto a navigation controller, return it.
-
navigationItem
public UINavigationItem navigationItem()
Created on-demand so that a view controller may customize its navigation appearance.
-
nibBundle
public NSBundle nibBundle()
The bundle from which to load the nib.
-
nibName
public java.lang.String nibName()
The name of the nib to be loaded to instantiate the view.
-
objectRestorationClass
public 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
-
originalContentView
public UIView originalContentView()
[@property] originalContentView If banner ads have not been enabled, originalContentView will return the view controller's view. If banner ads are enabled, originalContentView returns the view that was previously the view controller's view. If banner ads are then subsequently disabled, the view controller's content view will remain embedded - that operation will not be reversed.
-
overrideTraitCollectionForChildViewController
public UITraitCollection overrideTraitCollectionForChildViewController(UIViewController childViewController)
-
parentViewController
public 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(java.lang.String identifier, java.lang.Object sender)
-
popoverPresentationController
public UIPopoverPresentationController popoverPresentationController()
-
preferredContentSize
public CGSize preferredContentSize()
- Specified by:
preferredContentSizein interfaceUIContentContainer
-
preferredContentSizeDidChangeForChildContentContainer
public void preferredContentSizeDidChangeForChildContentContainer(UIContentContainer container)
- Specified by:
preferredContentSizeDidChangeForChildContentContainerin interfaceUIContentContainer
-
preferredFocusEnvironments
public 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
public UIView preferredFocusedView()
- Specified by:
preferredFocusedViewin interfaceUIFocusEnvironment
-
preferredInterfaceOrientationForPresentation
public long preferredInterfaceOrientationForPresentation()
Returns interface orientation masks.
-
preferredStatusBarStyle
public long preferredStatusBarStyle()
Defaults to UIStatusBarStyleDefault
-
preferredStatusBarUpdateAnimation
public long preferredStatusBarUpdateAnimation()
Defaults to UIStatusBarAnimationFade
-
prefersStatusBarHidden
public boolean prefersStatusBarHidden()
Defaults to NO
-
prepareForSegueSender
public void prepareForSegueSender(UIStoryboardSegue segue, java.lang.Object sender)
-
presentModalViewControllerAnimated
@Deprecated public void presentModalViewControllerAnimated(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:
-
presentMoviePlayerViewControllerAnimated
@Deprecated public void presentMoviePlayerViewControllerAnimated(MPMoviePlayerViewController moviePlayerViewController)
Deprecated.
-
presentViewControllerAnimatedCompletion
public void presentViewControllerAnimatedCompletion(UIViewController viewControllerToPresent, boolean flag, 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.
-
presentationController
public UIPresentationController presentationController()
-
presentedViewController
public UIViewController presentedViewController()
The view controller that was presented by this view controller or its nearest ancestor.
-
presentingViewController
public UIViewController presentingViewController()
The view controller that presented this view controller (or its farthest ancestor.)
-
previewActionItems
public NSArray<?> previewActionItems()
-
providesPresentationContextTransitionStyle
public boolean providesPresentationContextTransitionStyle()
A controller that defines the presentation context can also specify the modal transition style if this property is true.
-
registerForPreviewingWithDelegateSourceView
public UIViewControllerPreviewing registerForPreviewingWithDelegateSourceView(UIViewControllerPreviewingDelegate delegate, UIView sourceView)
Registers a view controller to participate with 3D Touch preview (peek) and commit (pop).
-
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.
-
removeKeyCommand
public void removeKeyCommand(UIKeyCommand keyCommand)
-
requestInterstitialAdPresentation
public boolean requestInterstitialAdPresentation()
requestInterstitialAdPresentation Call at any time to request that an interstitial ad be presented. This is appropriate for view controllers that are on screen for long periods of time and internally manage significant state changes, such as game levels. Returns YES if an interstitial will be presented.- Returns:
- Returns YES if an interstitial can be displayed, NO if not.
-
restorationClass
public UIViewControllerRestoration restorationClass()
-
restorationIdentifier
public java.lang.String restorationIdentifier()
-
restorationParent
public 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.
-
rotatingFooterView
@Deprecated public UIView rotatingFooterView()
Deprecated.Must be in the view hierarchy. Default returns nil.
-
rotatingHeaderView
@Deprecated public UIView rotatingHeaderView()
Deprecated.Must be in the view hierarchy. Default returns nil.
-
searchDisplayController
@Deprecated public UISearchDisplayController searchDisplayController()
Deprecated.
-
segueForUnwindingToViewControllerFromViewControllerIdentifier
@Deprecated public UIStoryboardSegue segueForUnwindingToViewControllerFromViewControllerIdentifier(UIViewController toViewController, UIViewController fromViewController, 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.
-
separateSecondaryViewControllerForSplitViewController
public UIViewController separateSecondaryViewControllerForSplitViewController(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.
-
setAutomaticallyAdjustsScrollViewInsets
public void setAutomaticallyAdjustsScrollViewInsets(boolean value)
Defaults to YES
-
setCanDisplayBannerAds
public void setCanDisplayBannerAds(boolean value)
[@property] canDisplayBannerAds Set this to enable automatic management of banner ad display with the view controller. It's important to note that this will modify the view hierarchy of the view controller by inserting a new container view above the view controller's view. The impact is that the view controller's view property will no longer return the originally provided view, it will return the new container. To access the original view, use the originalContentView property.- See Also:
originalContentView()
-
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.
-
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.
-
setEdgesForExtendedLayout
public void setEdgesForExtendedLayout(long value)
Defaults to UIRectEdgeAll
-
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.
-
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.
-
setInterstitialPresentationPolicy
public void setInterstitialPresentationPolicy(long value)
[@property] interstitialPresentationPolicy The presentation policy determines whether the timing of presentation is entirely managed by the framework or should only take place when the application calls -requestInterstitialAdPresentation. By default the policy is "None", so to be able to present an interstitial it must be changed to either "Automatic" or "Manual".
-
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.
-
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.
-
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.
-
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.
-
setOverrideTraitCollectionForChildViewController
public void setOverrideTraitCollectionForChildViewController(UITraitCollection collection, UIViewController childViewController)
Call to modify the trait collection for child view controllers.
-
setPreferredContentSize
public void setPreferredContentSize(CGSize value)
The preferredContentSize is used for any container laying out a child view controller.
-
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.
-
setRestorationClass_unsafe
public void setRestorationClass_unsafe(UIViewControllerRestoration value)
-
setRestorationClass
public void setRestorationClass(UIViewControllerRestoration value)
-
setRestorationIdentifier
public void setRestorationIdentifier(java.lang.String value)
-
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.
-
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(java.lang.String value)
Localized title for use by a parent controller.
-
setToolbarItems
public void setToolbarItems(NSArray<? extends UIBarButtonItem> value)
-
setToolbarItemsAnimated
public void setToolbarItemsAnimated(NSArray<? extends UIBarButtonItem> toolbarItems, boolean animated)
-
setTransitioningDelegate_unsafe
public void setTransitioningDelegate_unsafe(UIViewControllerTransitioningDelegate value)
-
setTransitioningDelegate
public void setTransitioningDelegate(UIViewControllerTransitioningDelegate value)
-
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:
-
shouldAutomaticallyForwardAppearanceMethods
public boolean shouldAutomaticallyForwardAppearanceMethods()
-
shouldAutomaticallyForwardRotationMethods
@Deprecated public boolean shouldAutomaticallyForwardRotationMethods()
Deprecated.
-
shouldAutorotate
public boolean shouldAutorotate()
New Autorotation support.
-
shouldAutorotateToInterfaceOrientation
@Deprecated public boolean shouldAutorotateToInterfaceOrientation(long toInterfaceOrientation)
Deprecated.Applications should use supportedInterfaceOrientations and/or shouldAutorotate.
-
shouldPerformSegueWithIdentifierSender
public boolean shouldPerformSegueWithIdentifierSender(java.lang.String identifier, 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.
-
shouldPresentInterstitialAd
public boolean shouldPresentInterstitialAd()
shouldPresentInterstitialAd Subclasses should override this method if they use ADInterstitialPresentationPolicyAutomatic and require the ability to selectively prevent presentation based on application state. The method will be invoked when the framework is about to present an interstitial ad in the ADInterstitialPresentationPolicyAutomatic configuration.- Returns:
- Should return YES to allow presentation to proceed, NO to prevent it. The default implementation always returns YES.
-
shouldUpdateFocusInContext
public boolean shouldUpdateFocusInContext(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(UIViewController vc, 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.
-
showViewControllerSender
public void showViewControllerSender(UIViewController vc, 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.
-
sizeForChildContentContainerWithParentContainerSize
public CGSize sizeForChildContentContainerWithParentContainerSize(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.- Specified by:
sizeForChildContentContainerWithParentContainerSizein interfaceUIContentContainer
-
splitViewController
public UISplitViewController splitViewController()
If the view controller has a split view controller as its ancestor, return it. Returns nil otherwise.
-
storyboard
public UIStoryboard storyboard()
-
supportedInterfaceOrientations
public long supportedInterfaceOrientations()
-
systemLayoutFittingSizeDidChangeForChildContentContainer
public void systemLayoutFittingSizeDidChangeForChildContentContainer(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.- Specified by:
systemLayoutFittingSizeDidChangeForChildContentContainerin interfaceUIContentContainer
-
tabBarController
public 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
public UIViewController targetViewControllerForActionSender(org.moe.natj.objc.SEL action, 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.
-
title
public java.lang.String title()
Localized title for use by a parent controller.
-
toolbarItems
public NSArray<? extends UIBarButtonItem> toolbarItems()
-
topLayoutGuide
public UILayoutSupport topLayoutGuide()
These objects may be used as layout items in the NSLayoutConstraint API
-
traitCollection
public UITraitCollection traitCollection()
- Specified by:
traitCollectionin interfaceUITraitEnvironment
-
traitCollectionDidChange
public void traitCollectionDidChange(UITraitCollection previousTraitCollection)
Description copied from interface:UITraitEnvironmentTo be overridden as needed to provide custom behavior when the environment's traits change.- Specified by:
traitCollectionDidChangein interfaceUITraitEnvironment
-
transitionCoordinator
public 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.
-
transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion
public void transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion(UIViewController fromViewController, UIViewController toViewController, double duration, long options, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_4 animations, 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.
-
transitioningDelegate
public UIViewControllerTransitioningDelegate transitioningDelegate()
-
unregisterForPreviewingWithContext
public void unregisterForPreviewingWithContext(UIViewControllerPreviewing previewing)
-
unwindForSegueTowardsViewController
public void unwindForSegueTowardsViewController(UIStoryboardSegue unwindSegue, 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.
-
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 autolayout 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.
-
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
@Deprecated public UIViewController viewControllerForUnwindSegueActionFromViewControllerWithSender(org.moe.natj.objc.SEL action, UIViewController fromViewController, 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:.
-
viewDidAppear
public void viewDidAppear(boolean animated)
Called when the view has been fully transitioned onto the screen. Default does nothing
-
viewDidDisappear
public void viewDidDisappear(boolean animated)
Called after the view was dismissed, covered or otherwise hidden. Default does nothing
-
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 nop.
-
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.
-
viewIfLoaded
public UIView viewIfLoaded()
Returns the view controller's view if loaded, nil if not.
-
viewWillAppear
public void viewWillAppear(boolean animated)
Called when the view is about to made visible. Default does nothing
-
viewWillDisappear
public void viewWillDisappear(boolean animated)
Called when the view is dismissed, covered or otherwise hidden. Default does nothing
-
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 nop.
-
viewWillTransitionToSizeWithTransitionCoordinator
public void viewWillTransitionToSizeWithTransitionCoordinator(CGSize size, 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.- Specified by:
viewWillTransitionToSizeWithTransitionCoordinatorin interfaceUIContentContainer
-
viewWillUnload
@Deprecated public void viewWillUnload()
Deprecated.
-
wantsFullScreenLayout
@Deprecated public boolean wantsFullScreenLayout()
Deprecated.Deprecated in 7_0, Replaced by the following:
-
willAnimateFirstHalfOfRotationToInterfaceOrientationDuration
@Deprecated public void willAnimateFirstHalfOfRotationToInterfaceOrientationDuration(long toInterfaceOrientation, double duration)Deprecated.
-
willAnimateRotationToInterfaceOrientationDuration
@Deprecated public void willAnimateRotationToInterfaceOrientationDuration(long toInterfaceOrientation, double duration)Deprecated.
-
willAnimateSecondHalfOfRotationFromInterfaceOrientationDuration
@Deprecated public void willAnimateSecondHalfOfRotationFromInterfaceOrientationDuration(long fromInterfaceOrientation, double duration)Deprecated.A this point, our view orientation is set to the new orientation.
-
willMoveToParentViewController
public void willMoveToParentViewController(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 responsibilty 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].
-
willRotateToInterfaceOrientationDuration
@Deprecated public void willRotateToInterfaceOrientationDuration(long toInterfaceOrientation, double duration)Deprecated.Notifies when rotation begins, reaches halfway point and ends.
-
willTransitionToTraitCollectionWithTransitionCoordinator
public void willTransitionToTraitCollectionWithTransitionCoordinator(UITraitCollection newCollection, 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.- 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.
-
childViewControllerForHomeIndicatorAutoHidden
public 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.
-
childViewControllerForScreenEdgesDeferringSystemGestures
public 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.
-
preferredScreenEdgesDeferringSystemGestures
public long preferredScreenEdgesDeferringSystemGestures()
Controls the application's preferred screen edges deferring system gestures when this view controller is shown. Default is UIRectEdgeNone.
-
prefersHomeIndicatorAutoHidden
public boolean prefersHomeIndicatorAutoHidden()
Controls the application's preferred home indicator auto-hiding when this view controller is shown.
-
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.
-
setNeedsUpdateOfHomeIndicatorAutoHidden
public void setNeedsUpdateOfHomeIndicatorAutoHidden()
This should be called whenever the return values for the view controller's home indicator auto-hiding have changed.
-
setNeedsUpdateOfScreenEdgesDeferringSystemGestures
public void setNeedsUpdateOfScreenEdgesDeferringSystemGestures()
This should be called whenever the return values for the view controller's screen edges deferring system gestures have changed.
-
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.
-
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.
-
viewLayoutMarginsDidChange
public void viewLayoutMarginsDidChange()
-
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.
-
viewSafeAreaInsetsDidChange
public void viewSafeAreaInsetsDidChange()
-
canPerformUnwindSegueActionFromViewControllerSender
public boolean canPerformUnwindSegueActionFromViewControllerSender(org.moe.natj.objc.SEL action, UIViewController fromViewController, 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.
-
focusItemContainer
public UIFocusItemContainer focusItemContainer()
Description copied from interface:UIFocusEnvironmentThe container of any child focus items in this focus environment, or nil if no container exists.- 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.
-
overrideUserInterfaceStyle
public long overrideUserInterfaceStyle()
Defaults to UIUserInterfaceStyleUnspecified
-
parentFocusEnvironment
public 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.- 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.
-
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.
-
setOverrideUserInterfaceStyle
public void setOverrideUserInterfaceStyle(long value)
Defaults to UIUserInterfaceStyleUnspecified
-
childViewControllerForPointerLock
public 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.
-
focusGroupIdentifier
public 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.- 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.
-
setNeedsUpdateOfPrefersPointerLocked
public void setNeedsUpdateOfPrefersPointerLocked()
This should be called whenever the view controller's preferred pointer lock value has changed.
-
-