public class UIViewController extends UIResponder implements NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment, UIStateRestoring, NSExtensionRequestHandling
| Modifier and Type | Class and Description |
|---|---|
static interface |
UIViewController.Block_dismissViewControllerAnimatedCompletion |
static interface |
UIViewController.Block_presentViewControllerAnimatedCompletion |
static interface |
UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_4 |
static interface |
UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_5 |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retUIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler| Modifier | Constructor and Description |
|---|---|
protected |
UIViewController(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
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.
|
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.
|
void |
addKeyCommand(UIKeyCommand keyCommand) |
static UIViewController |
alloc() |
static UIViewController |
allocWithZone(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.
|
void |
applicationFinishedRestoringState()
applicationFinishedRestoringState is called on all restored objects that implement the method *after* all other object
decoding has been done (including the application delegate).
|
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:
|
boolean |
automaticallyAdjustsScrollViewInsets()
Defaults to YES
|
boolean |
automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers()
Deprecated.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
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.
|
void |
beginRequestWithExtensionContext(NSExtensionContext context)
Tells the extension to prepare its interface for the requesting context, and request related data items.
|
UILayoutSupport |
bottomLayoutGuide() |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
boolean |
canPerformUnwindSegueActionFromViewControllerSender(org.moe.natj.objc.SEL action,
UIViewController fromViewController,
java.lang.Object sender)
View controllers will receive this message during segue unwinding.
|
boolean |
canPerformUnwindSegueActionFromViewControllerWithSender(org.moe.natj.objc.SEL action,
UIViewController fromViewController,
java.lang.Object sender) |
UIViewController |
childViewControllerContainingSegueSource(UIStoryboardUnwindSegueSource source)
Returns the child view controller that contains the provided segue source.
|
UIViewController |
childViewControllerForHomeIndicatorAutoHidden()
Override to return a child view controller or nil.
|
UIViewController |
childViewControllerForPointerLock()
Override to return a child view controller or nil.
|
UIViewController |
childViewControllerForScreenEdgesDeferringSystemGestures()
Override to return a child view controller or nil.
|
UIViewController |
childViewControllerForStatusBarHidden() |
UIViewController |
childViewControllerForStatusBarStyle()
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.Class |
classForKeyedUnarchiver() |
static void |
clearTextInputContextIdentifier(java.lang.String identifier) |
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.
|
UIScrollView |
contentScrollViewForEdge(long edge)
Subclass overrides will be called when available
|
CGSize |
contentSizeForViewInPopover()
Deprecated.
|
static java.lang.String |
debugDescription_static() |
void |
decodeRestorableStateWithCoder(NSCoder coder) |
boolean |
definesPresentationContext()
Determines which parent view controller's view should be presented over for presentations of type
UIModalPresentationCurrentContext.
|
static java.lang.String |
description_static() |
void |
didAnimateFirstHalfOfRotationToInterfaceOrientation(long toInterfaceOrientation)
Deprecated.
|
void |
didMoveToParentViewController(UIViewController parent) |
void |
didReceiveMemoryWarning()
Called when the parent application receives a memory warning.
|
void |
didRotateFromInterfaceOrientation(long fromInterfaceOrientation)
Deprecated.
|
void |
didUpdateFocusInContextWithAnimationCoordinator(UIFocusUpdateContext context,
UIFocusAnimationCoordinator coordinator)
Called when the screen’s focused item has been updated to a new item.
|
boolean |
disablesAutomaticKeyboardDismissal()
Presentation modes may keep the keyboard visible when not required.
|
void |
dismissModalViewControllerAnimated(boolean animated)
Deprecated.
|
void |
dismissMoviePlayerViewControllerAnimated()
Deprecated.
|
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.
|
long |
edgesForExtendedLayout()
Defaults to UIRectEdgeAll
|
UIBarButtonItem |
editButtonItem()
Return an Edit|Done button that can be used as a navigation item's custom view.
|
void |
encodeRestorableStateWithCoder(NSCoder coder)
Methods to save and restore state for the object.
|
void |
encodeWithCoder(NSCoder coder) |
void |
endAppearanceTransition() |
boolean |
extendedLayoutIncludesOpaqueBars()
Defaults to NO, but bars are translucent by default on 7_0.
|
NSExtensionContext |
extensionContext()
Returns the extension context.
|
java.lang.String |
focusGroupIdentifier()
The identifier of the focus group that this view belongs to.
|
UIFocusItemContainer |
focusItemContainer()
The container of any child focus items in this focus environment, or nil if no container exists.
|
static long |
hash_static() |
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.
|
UIViewController |
init() |
UIViewController |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
UIViewController |
initWithNibNameBundle(java.lang.String nibNameOrNil,
NSBundle nibBundleOrNil)
The designated initializer.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
long |
interfaceOrientation()
Deprecated.
|
boolean |
isBeingDismissed() |
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.
|
boolean |
isEditing() |
boolean |
isModalInPopover()
modalInPopover is set on the view controller when you wish to force the popover hosting the view controller into modal behavior.
|
boolean |
isModalInPresentation()
modalInPresentation is set on the view controller when you wish to force the presentation hosting the view controller into modal behavior.
|
boolean |
isMovingFromParentViewController() |
boolean |
isMovingToParentViewController() |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
boolean |
isViewLoaded() |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
void |
loadView()
This is where subclasses should create their custom view hierarchy if they aren't using a nib.
|
void |
loadViewIfNeeded()
Loads the view controller's view if it has not already been set.
|
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.
|
long |
modalPresentationStyle()
Defines the presentation style that will be used for this view controller when it is presented modally.
|
long |
modalTransitionStyle()
Defines the transition style that will be used for this view controller when it is presented modally.
|
UIViewController |
modalViewController()
Deprecated.
|
UINavigationController |
navigationController()
If this view controller has been pushed onto a navigation controller, return it.
|
UINavigationItem |
navigationItem()
Created on-demand so that a view controller may customize its navigation appearance.
|
static UIViewController |
new_objc() |
NSBundle |
nibBundle()
The bundle from which to load the nib.
|
java.lang.String |
nibName()
The name of the nib to be loaded to instantiate the view.
|
UIObjectRestoration |
objectRestorationClass()
The restoration class specifies a class which is consulted during restoration to find/create
the object, rather than trying to look it up implicitly
|
UITraitCollection |
overrideTraitCollectionForChildViewController(UIViewController childViewController) |
long |
overrideUserInterfaceStyle()
Defaults to UIUserInterfaceStyleUnspecified
|
UIFocusEnvironment |
parentFocusEnvironment()
The parent focus environment of this environment, or nil if no parent exists.
|
UIViewController |
parentViewController()
If this view controller is a child of a containing view controller (e.g.
|
boolean |
performsActionsWhilePresentingModally()
Determines whether the receiver continues to respond to actions while it is presenting a view controller modally.
|
void |
performSegueWithIdentifierSender(java.lang.String identifier,
java.lang.Object sender) |
UIPopoverPresentationController |
popoverPresentationController() |
CGSize |
preferredContentSize() |
void |
preferredContentSizeDidChangeForChildContentContainer(UIContentContainer container) |
UIView |
preferredFocusedView() |
NSArray<?> |
preferredFocusEnvironments()
The preferred focus environments define where to search for the default focused item in an environment, such as when focus updates programmatically.
|
long |
preferredInterfaceOrientationForPresentation()
Returns interface orientation masks.
|
long |
preferredScreenEdgesDeferringSystemGestures()
Controls the application's preferred screen edges deferring system gestures when this view controller is shown.
|
long |
preferredStatusBarStyle()
Defaults to UIStatusBarStyleDefault
|
long |
preferredStatusBarUpdateAnimation()
Defaults to UIStatusBarAnimationFade
|
boolean |
prefersHomeIndicatorAutoHidden()
Controls the application's preferred home indicator auto-hiding when this view controller is shown.
|
boolean |
prefersPointerLocked()
Whether the pointer should be locked to a given scene when this view controller is shown.
|
boolean |
prefersStatusBarHidden()
Defaults to NO
|
void |
prepareForSegueSender(UIStoryboardSegue segue,
java.lang.Object sender) |
UIPresentationController |
presentationController() |
UIViewController |
presentedViewController()
The view controller that was presented by this view controller or its nearest ancestor.
|
UIViewController |
presentingViewController()
The view controller that presented this view controller (or its farthest ancestor.)
|
void |
presentModalViewControllerAnimated(UIViewController modalViewController,
boolean animated)
Deprecated.
|
void |
presentMoviePlayerViewControllerAnimated(MPMoviePlayerViewController moviePlayerViewController)
Deprecated.
|
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.
|
NSArray<?> |
previewActionItems() |
boolean |
providesPresentationContextTransitionStyle()
A controller that defines the presentation context can also specify the modal transition style if this property is true.
|
UIViewControllerPreviewing |
registerForPreviewingWithDelegateSourceView(UIViewControllerPreviewingDelegate delegate,
UIView sourceView)
Registers a view controller to participate with 3D Touch preview (peek) and commit (pop).
|
void |
removeFromParentViewController()
Removes the the receiver from its parent's children controllers array.
|
void |
removeKeyCommand(UIKeyCommand keyCommand) |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
UIViewControllerRestoration |
restorationClass() |
java.lang.String |
restorationIdentifier() |
UIStateRestoring |
restorationParent()
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.
|
boolean |
restoresFocusAfterTransition()
If YES, when this view controller becomes visible and focusable, focus will be automatically restored to the item that was last focused.
|
UIView |
rotatingFooterView()
Deprecated.
|
UIView |
rotatingHeaderView()
Deprecated.
|
UISearchDisplayController |
searchDisplayController()
Deprecated.
|
UIStoryboardSegue |
segueForUnwindingToViewControllerFromViewControllerIdentifier(UIViewController toViewController,
UIViewController fromViewController,
java.lang.String identifier)
Deprecated.
|
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.
|
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.
|
void |
setAutomaticallyAdjustsScrollViewInsets(boolean value)
Defaults to YES
|
void |
setContentScrollViewForEdge(UIScrollView scrollView,
long edge)
Depending on the value passed in the `edge` parameter, a containing UINavigationController,
UITabBarController, or both will observe the UIScrollView instance in the
`contentScrollView` parameter to determine the background blur for the bars and to
update contentInset adjustments for the scroll view.
|
void |
setContentSizeForViewInPopover(CGSize value)
Deprecated.
|
void |
setDefinesPresentationContext(boolean value)
Determines which parent view controller's view should be presented over for presentations of type
UIModalPresentationCurrentContext.
|
void |
setEdgesForExtendedLayout(long value)
Defaults to UIRectEdgeAll
|
void |
setEditing(boolean value) |
void |
setEditingAnimated(boolean editing,
boolean animated)
Updates the appearance of the Edit|Done button item as necessary.
|
void |
setExtendedLayoutIncludesOpaqueBars(boolean value)
Defaults to NO, but bars are translucent by default on 7_0.
|
void |
setFocusGroupIdentifier(java.lang.String value)
The identifier of the focus group that this view controller belongs to.
|
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.
|
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.
|
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.
|
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.
|
void |
setModalPresentationStyle(long value)
Defines the presentation style that will be used for this view controller when it is presented modally.
|
void |
setModalTransitionStyle(long value)
Defines the transition style that will be used for this view controller when it is presented modally.
|
void |
setNeedsFocusUpdate()
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.
|
void |
setNeedsStatusBarAppearanceUpdate()
This should be called whenever the return values for the view controller's status bar attributes have changed.
|
void |
setNeedsUpdateOfHomeIndicatorAutoHidden()
This should be called whenever the return values for the view controller's home indicator auto-hiding have changed.
|
void |
setNeedsUpdateOfPrefersPointerLocked()
This should be called whenever the view controller's preferred pointer lock value has changed.
|
void |
setNeedsUpdateOfScreenEdgesDeferringSystemGestures()
This should be called whenever the return values for the view controller's screen edges deferring system gestures have changed.
|
void |
setOverrideTraitCollectionForChildViewController(UITraitCollection collection,
UIViewController childViewController)
Call to modify the trait collection for child view controllers.
|
void |
setOverrideUserInterfaceStyle(long value)
Defaults to UIUserInterfaceStyleUnspecified
|
void |
setPreferredContentSize(CGSize value)
The preferredContentSize is used for any container laying out a child view controller.
|
void |
setProvidesPresentationContextTransitionStyle(boolean value)
A controller that defines the presentation context can also specify the modal transition style if this property is true.
|
void |
setRestorationClass_unsafe(UIViewControllerRestoration value) |
void |
setRestorationClass(UIViewControllerRestoration value) |
void |
setRestorationIdentifier(java.lang.String value) |
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.
|
void |
setTabBarItem(UITabBarItem value)
Automatically created lazily with the view controller's title if it's not set explicitly.
|
void |
setTitle(java.lang.String value)
Localized title for use by a parent controller.
|
void |
setToolbarItems(NSArray<? extends UIBarButtonItem> value) |
void |
setToolbarItemsAnimated(NSArray<? extends UIBarButtonItem> toolbarItems,
boolean animated) |
void |
setTransitioningDelegate_unsafe(UIViewControllerTransitioningDelegate value) |
void |
setTransitioningDelegate(UIViewControllerTransitioningDelegate value) |
static void |
setVersion_static(long aVersion) |
void |
setView(UIView value)
The getter first invokes [self loadView] if the view hasn't been set yet.
|
void |
setViewRespectsSystemMinimumLayoutMargins(boolean value)
Default YES.
|
void |
setWantsFullScreenLayout(boolean value)
Deprecated.
|
UISheetPresentationController |
sheetPresentationController() |
boolean |
shouldAutomaticallyForwardAppearanceMethods() |
boolean |
shouldAutomaticallyForwardRotationMethods()
Deprecated.
|
boolean |
shouldAutorotate()
New Autorotation support.
|
boolean |
shouldAutorotateToInterfaceOrientation(long toInterfaceOrientation)
Deprecated.
|
boolean |
shouldPerformSegueWithIdentifierSender(java.lang.String identifier,
java.lang.Object sender)
Invoked immediately prior to initiating a segue.
|
boolean |
shouldUpdateFocusInContext(UIFocusUpdateContext context)
Asks whether the system should allow a focus update to occur.
|
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.
|
void |
showViewControllerSender(UIViewController vc,
java.lang.Object sender)
This method will show a view controller appropriately for the current size-class environment.
|
CGSize |
sizeForChildContentContainerWithParentContainerSize(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.
|
UISplitViewController |
splitViewController()
If the view controller has a split view controller as its ancestor, return it.
|
UIStoryboard |
storyboard() |
static org.moe.natj.objc.Class |
superclass_static() |
long |
supportedInterfaceOrientations() |
void |
systemLayoutFittingSizeDidChangeForChildContentContainer(UIContentContainer container)
Intended as a bridge for a view controller that does not use auto layout presenting a child that does use auto layout.
|
NSDirectionalEdgeInsets |
systemMinimumLayoutMargins()
Minimum layoutMargins for the view determined by the view controller from context and hardware information.
|
UITabBarController |
tabBarController()
If the view controller has a tab bar controller as its ancestor, return it.
|
UITabBarItem |
tabBarItem()
Automatically created lazily with the view controller's title if it's not set explicitly.
|
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.
|
java.lang.String |
title()
Localized title for use by a parent controller.
|
NSArray<? extends UIBarButtonItem> |
toolbarItems() |
UILayoutSupport |
topLayoutGuide()
These objects may be used as layout items in the NSLayoutConstraint API
|
UITraitCollection |
traitCollection() |
void |
traitCollectionDidChange(UITraitCollection previousTraitCollection)
To be overridden as needed to provide custom behavior when the environment's traits change.
|
UIViewControllerTransitionCoordinator |
transitionCoordinator()
The default implementation will return a transition coordinator if called during
an active presentation or dismissal.
|
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.
|
UIViewControllerTransitioningDelegate |
transitioningDelegate() |
void |
unregisterForPreviewingWithContext(UIViewControllerPreviewing previewing) |
void |
unwindForSegueTowardsViewController(UIStoryboardSegue unwindSegue,
UIViewController subsequentVC)
Custom container view controllers should override this method to modify themselves as part of an ongoing unwind segue.
|
void |
updateFocusIfNeeded()
Forces focus to be updated immediately.
|
void |
updateViewConstraints()
Base implementation sends -updateConstraints to the view.
|
static long |
version_static() |
UIView |
view()
The getter first invokes [self loadView] if the view hasn't been set yet.
|
UIViewController |
viewControllerForUnwindSegueActionFromViewControllerWithSender(org.moe.natj.objc.SEL action,
UIViewController fromViewController,
java.lang.Object sender)
Deprecated.
|
void |
viewDidAppear(boolean animated)
Called when the view has been fully transitioned onto the screen.
|
void |
viewDidDisappear(boolean animated)
Called after the view was dismissed, covered or otherwise hidden.
|
void |
viewDidLayoutSubviews()
Called just after the view controller's view's layoutSubviews method is invoked.
|
void |
viewDidLoad()
Called after the view has been loaded.
|
void |
viewDidUnload()
Deprecated.
|
UIView |
viewIfLoaded()
Returns the view controller's view if loaded, nil if not.
|
void |
viewLayoutMarginsDidChange() |
boolean |
viewRespectsSystemMinimumLayoutMargins()
Default YES.
|
void |
viewSafeAreaInsetsDidChange() |
void |
viewWillAppear(boolean animated)
Called when the view is about to made visible.
|
void |
viewWillDisappear(boolean animated)
Called when the view is dismissed, covered or otherwise hidden.
|
void |
viewWillLayoutSubviews()
Called just before the view controller's view's layoutSubviews method is invoked.
|
void |
viewWillTransitionToSizeWithTransitionCoordinator(CGSize size,
UIViewControllerTransitionCoordinator coordinator)
This method is called when the view controller's view's size is changed by its parent (i.e.
|
void |
viewWillUnload()
Deprecated.
|
boolean |
wantsFullScreenLayout()
Deprecated.
|
void |
willAnimateFirstHalfOfRotationToInterfaceOrientationDuration(long toInterfaceOrientation,
double duration)
Deprecated.
|
void |
willAnimateRotationToInterfaceOrientationDuration(long toInterfaceOrientation,
double duration)
Deprecated.
|
void |
willAnimateSecondHalfOfRotationFromInterfaceOrientationDuration(long fromInterfaceOrientation,
double duration)
Deprecated.
|
void |
willMoveToParentViewController(UIViewController parent)
These two methods are public for container subclasses to call when transitioning between child
controllers.
|
void |
willRotateToInterfaceOrientationDuration(long toInterfaceOrientation,
double duration)
Deprecated.
|
void |
willTransitionToTraitCollectionWithTransitionCoordinator(UITraitCollection newCollection,
UIViewControllerTransitionCoordinator coordinator)
This method is called when the view controller's trait collection is changed by its parent.
|
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommandaccessibilityActivate, 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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static UIViewController alloc()
public static UIViewController allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static void attemptRotationToDeviceOrientation()
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static void clearTextInputContextIdentifier(java.lang.String identifier)
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static UIViewController new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public void addChildViewController(UIViewController childController)
public void addKeyCommand(UIKeyCommand keyCommand)
public NSArray<? extends UIViewController> allowedChildViewControllersForUnwindingFromSource(UIStoryboardUnwindSegueSource source)
public void applicationFinishedRestoringState()
UIStateRestoringapplicationFinishedRestoringState in interface UIStateRestoringpublic boolean automaticallyAdjustsScrollViewInsets()
@Deprecated public boolean automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers()
public void beginAppearanceTransitionAnimated(boolean isAppearing,
boolean animated)
public void beginRequestWithExtensionContext(NSExtensionContext context)
NSExtensionRequestHandlingbeginRequestWithExtensionContext in interface NSExtensionRequestHandlingpublic UILayoutSupport bottomLayoutGuide()
public boolean canPerformUnwindSegueActionFromViewControllerWithSender(org.moe.natj.objc.SEL action,
UIViewController fromViewController,
java.lang.Object sender)
public UIViewController childViewControllerContainingSegueSource(UIStoryboardUnwindSegueSource source)
public UIViewController childViewControllerForStatusBarHidden()
public UIViewController childViewControllerForStatusBarStyle()
public NSArray<? extends UIViewController> childViewControllers()
public void collapseSecondaryViewControllerForSplitViewController(UIViewController secondaryViewController, UISplitViewController splitViewController)
@Deprecated public CGSize contentSizeForViewInPopover()
public void decodeRestorableStateWithCoder(NSCoder coder)
decodeRestorableStateWithCoder in interface UIStateRestoringpublic boolean definesPresentationContext()
@Deprecated public void didAnimateFirstHalfOfRotationToInterfaceOrientation(long toInterfaceOrientation)
public void didMoveToParentViewController(UIViewController parent)
public void didReceiveMemoryWarning()
@Deprecated public void didRotateFromInterfaceOrientation(long fromInterfaceOrientation)
public void didUpdateFocusInContextWithAnimationCoordinator(UIFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)
UIFocusEnvironmentdidUpdateFocusInContextWithAnimationCoordinator in interface UIFocusEnvironmentpublic boolean disablesAutomaticKeyboardDismissal()
@Deprecated public void dismissModalViewControllerAnimated(boolean animated)
@Deprecated public void dismissMoviePlayerViewControllerAnimated()
public void dismissViewControllerAnimatedCompletion(boolean flag,
UIViewController.Block_dismissViewControllerAnimatedCompletion completion)
public long edgesForExtendedLayout()
public UIBarButtonItem editButtonItem()
public void encodeRestorableStateWithCoder(NSCoder coder)
UIStateRestoringencodeRestorableStateWithCoder in interface UIStateRestoringpublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic void endAppearanceTransition()
public boolean extendedLayoutIncludesOpaqueBars()
public NSExtensionContext extensionContext()
public boolean hidesBottomBarWhenPushed()
public UIViewController init()
init in class UIResponderpublic UIViewController initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic UIViewController initWithNibNameBundle(java.lang.String nibNameOrNil, NSBundle nibBundleOrNil)
@Deprecated public long interfaceOrientation()
public boolean isBeingDismissed()
public boolean isBeingPresented()
public boolean isEditing()
public void setEditing(boolean value)
public boolean isModalInPopover()
public void setModalInPopover(boolean value)
public boolean isMovingFromParentViewController()
public boolean isMovingToParentViewController()
public boolean isViewLoaded()
public void loadView()
public void loadViewIfNeeded()
public boolean modalPresentationCapturesStatusBarAppearance()
public long modalPresentationStyle()
public long modalTransitionStyle()
@Deprecated public UIViewController modalViewController()
public UINavigationController navigationController()
public UINavigationItem navigationItem()
public NSBundle nibBundle()
public java.lang.String nibName()
public UIObjectRestoration objectRestorationClass()
UIStateRestoringobjectRestorationClass in interface UIStateRestoringpublic UITraitCollection overrideTraitCollectionForChildViewController(UIViewController childViewController)
public UIViewController parentViewController()
public void performSegueWithIdentifierSender(java.lang.String identifier,
java.lang.Object sender)
public UIPopoverPresentationController popoverPresentationController()
public CGSize preferredContentSize()
preferredContentSize in interface UIContentContainerpublic void preferredContentSizeDidChangeForChildContentContainer(UIContentContainer container)
preferredContentSizeDidChangeForChildContentContainer in interface UIContentContainerpublic NSArray<?> preferredFocusEnvironments()
UIFocusEnvironmentpreferredFocusEnvironments in interface UIFocusEnvironmentpublic UIView preferredFocusedView()
preferredFocusedView in interface UIFocusEnvironmentpublic long preferredInterfaceOrientationForPresentation()
public long preferredStatusBarStyle()
public long preferredStatusBarUpdateAnimation()
public boolean prefersStatusBarHidden()
public void prepareForSegueSender(UIStoryboardSegue segue, java.lang.Object sender)
@Deprecated public void presentModalViewControllerAnimated(UIViewController modalViewController, boolean animated)
@Deprecated public void presentMoviePlayerViewControllerAnimated(MPMoviePlayerViewController moviePlayerViewController)
public void presentViewControllerAnimatedCompletion(UIViewController viewControllerToPresent, boolean flag, UIViewController.Block_presentViewControllerAnimatedCompletion completion)
public UIPresentationController presentationController()
public UIViewController presentedViewController()
public UIViewController presentingViewController()
public NSArray<?> previewActionItems()
public boolean providesPresentationContextTransitionStyle()
public UIViewControllerPreviewing registerForPreviewingWithDelegateSourceView(UIViewControllerPreviewingDelegate delegate, UIView sourceView)
public void removeFromParentViewController()
public void removeKeyCommand(UIKeyCommand keyCommand)
public UIViewControllerRestoration restorationClass()
public java.lang.String restorationIdentifier()
public UIStateRestoring restorationParent()
UIStateRestoringrestorationParent in interface UIStateRestoringpublic boolean restoresFocusAfterTransition()
@Deprecated public UIView rotatingFooterView()
@Deprecated public UIView rotatingHeaderView()
@Deprecated public UISearchDisplayController searchDisplayController()
@Deprecated public UIStoryboardSegue segueForUnwindingToViewControllerFromViewControllerIdentifier(UIViewController toViewController, UIViewController fromViewController, java.lang.String identifier)
public UIViewController separateSecondaryViewControllerForSplitViewController(UISplitViewController splitViewController)
public void setAutomaticallyAdjustsScrollViewInsets(boolean value)
@Deprecated public void setContentSizeForViewInPopover(CGSize value)
public void setDefinesPresentationContext(boolean value)
public void setEdgesForExtendedLayout(long value)
public void setEditingAnimated(boolean editing,
boolean animated)
public void setExtendedLayoutIncludesOpaqueBars(boolean value)
public void setHidesBottomBarWhenPushed(boolean value)
public void setModalPresentationCapturesStatusBarAppearance(boolean value)
public void setModalPresentationStyle(long value)
public void setModalTransitionStyle(long value)
public void setNeedsFocusUpdate()
UIFocusEnvironmentsetNeedsFocusUpdate in interface UIFocusEnvironmentpublic void setNeedsStatusBarAppearanceUpdate()
public void setOverrideTraitCollectionForChildViewController(UITraitCollection collection, UIViewController childViewController)
public void setPreferredContentSize(CGSize value)
public void setProvidesPresentationContextTransitionStyle(boolean value)
public void setRestorationClass_unsafe(UIViewControllerRestoration value)
public void setRestorationClass(UIViewControllerRestoration value)
public void setRestorationIdentifier(java.lang.String value)
public void setRestoresFocusAfterTransition(boolean value)
public void setTabBarItem(UITabBarItem value)
public void setTitle(java.lang.String value)
public void setToolbarItems(NSArray<? extends UIBarButtonItem> value)
public void setToolbarItemsAnimated(NSArray<? extends UIBarButtonItem> toolbarItems, boolean animated)
public void setTransitioningDelegate_unsafe(UIViewControllerTransitioningDelegate value)
public void setTransitioningDelegate(UIViewControllerTransitioningDelegate value)
public void setView(UIView value)
@Deprecated public void setWantsFullScreenLayout(boolean value)
public boolean shouldAutomaticallyForwardAppearanceMethods()
@Deprecated public boolean shouldAutomaticallyForwardRotationMethods()
public boolean shouldAutorotate()
@Deprecated public boolean shouldAutorotateToInterfaceOrientation(long toInterfaceOrientation)
public boolean shouldPerformSegueWithIdentifierSender(java.lang.String identifier,
java.lang.Object sender)
public boolean shouldUpdateFocusInContext(UIFocusUpdateContext context)
UIFocusEnvironmentshouldUpdateFocusInContext in interface UIFocusEnvironmentpublic void showDetailViewControllerSender(UIViewController vc, java.lang.Object sender)
public void showViewControllerSender(UIViewController vc, java.lang.Object sender)
public CGSize sizeForChildContentContainerWithParentContainerSize(UIContentContainer container, CGSize parentSize)
UIContentContainerIf the returned size is the same as the child container's current size, viewWillTransitionToSize:withTransitionCoordinator: will not be called.
sizeForChildContentContainerWithParentContainerSize in interface UIContentContainerpublic UISplitViewController splitViewController()
public UIStoryboard storyboard()
public long supportedInterfaceOrientations()
public void systemLayoutFittingSizeDidChangeForChildContentContainer(UIContentContainer container)
UIContentContainerIf 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.
systemLayoutFittingSizeDidChangeForChildContentContainer in interface UIContentContainerpublic UITabBarController tabBarController()
public UITabBarItem tabBarItem()
public UIViewController targetViewControllerForActionSender(org.moe.natj.objc.SEL action, java.lang.Object sender)
public java.lang.String title()
public NSArray<? extends UIBarButtonItem> toolbarItems()
public UILayoutSupport topLayoutGuide()
public UITraitCollection traitCollection()
traitCollection in interface UITraitEnvironmentpublic void traitCollectionDidChange(UITraitCollection previousTraitCollection)
UITraitEnvironmenttraitCollectionDidChange in interface UITraitEnvironmentpublic UIViewControllerTransitionCoordinator transitionCoordinator()
public void transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion(UIViewController fromViewController, UIViewController toViewController, double duration, long options, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_4 animations, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_5 completion)
public UIViewControllerTransitioningDelegate transitioningDelegate()
public void unregisterForPreviewingWithContext(UIViewControllerPreviewing previewing)
public void unwindForSegueTowardsViewController(UIStoryboardSegue unwindSegue, UIViewController subsequentVC)
public void updateFocusIfNeeded()
UIFocusEnvironmentupdateFocusIfNeeded in interface UIFocusEnvironmentpublic void updateViewConstraints()
public UIView view()
@Deprecated public UIViewController viewControllerForUnwindSegueActionFromViewControllerWithSender(org.moe.natj.objc.SEL action, UIViewController fromViewController, java.lang.Object sender)
public void viewDidAppear(boolean animated)
public void viewDidDisappear(boolean animated)
public void viewDidLayoutSubviews()
public void viewDidLoad()
@Deprecated public void viewDidUnload()
public UIView viewIfLoaded()
public void viewWillAppear(boolean animated)
public void viewWillDisappear(boolean animated)
public void viewWillLayoutSubviews()
public void viewWillTransitionToSizeWithTransitionCoordinator(CGSize size, UIViewControllerTransitionCoordinator coordinator)
UIContentContainerIf you override this method, you should either call super to propagate the change to children or manually forward the change to children.
viewWillTransitionToSizeWithTransitionCoordinator in interface UIContentContainer@Deprecated public void viewWillUnload()
@Deprecated public boolean wantsFullScreenLayout()
@Deprecated
public void willAnimateFirstHalfOfRotationToInterfaceOrientationDuration(long toInterfaceOrientation,
double duration)
@Deprecated
public void willAnimateRotationToInterfaceOrientationDuration(long toInterfaceOrientation,
double duration)
@Deprecated
public void willAnimateSecondHalfOfRotationFromInterfaceOrientationDuration(long fromInterfaceOrientation,
double duration)
public void willMoveToParentViewController(UIViewController parent)
addChildViewController: will call [child willMoveToParentViewController:self] before adding the child. However, it will not call didMoveToParentViewController:. It is expected that a container view controller subclass will make this call after a transition to the new child has completed or, in the case of no transition, immediately after the call to addChildViewController:. Similarly, removeFromParentViewController does not call [self willMoveToParentViewController:nil] before removing the child. This is also the responsibility of the container subclass. Container subclasses will typically define a method that transitions to a new child by first calling addChildViewController:, then executing a transition which will add the new child's view into the view hierarchy of its parent, and finally will call didMoveToParentViewController:. Similarly, subclasses will typically define a method that removes a child in the reverse manner by first calling [child willMoveToParentViewController:nil].
@Deprecated
public void willRotateToInterfaceOrientationDuration(long toInterfaceOrientation,
double duration)
public void willTransitionToTraitCollectionWithTransitionCoordinator(UITraitCollection newCollection, UIViewControllerTransitionCoordinator coordinator)
UIContentContainerIf you override this method, you should either call super to propagate the change to children or manually forward the change to children.
willTransitionToTraitCollectionWithTransitionCoordinator in interface UIContentContainerpublic UIEdgeInsets additionalSafeAreaInsets()
public UIViewController childViewControllerForHomeIndicatorAutoHidden()
public UIViewController childViewControllerForScreenEdgesDeferringSystemGestures()
public long preferredScreenEdgesDeferringSystemGestures()
public boolean prefersHomeIndicatorAutoHidden()
public void setAdditionalSafeAreaInsets(UIEdgeInsets value)
public void setNeedsUpdateOfHomeIndicatorAutoHidden()
public void setNeedsUpdateOfScreenEdgesDeferringSystemGestures()
public void setViewRespectsSystemMinimumLayoutMargins(boolean value)
public NSDirectionalEdgeInsets systemMinimumLayoutMargins()
public void viewLayoutMarginsDidChange()
public boolean viewRespectsSystemMinimumLayoutMargins()
public void viewSafeAreaInsetsDidChange()
public boolean canPerformUnwindSegueActionFromViewControllerSender(org.moe.natj.objc.SEL action,
UIViewController fromViewController,
java.lang.Object sender)
public UIFocusItemContainer focusItemContainer()
UIFocusEnvironmentfocusItemContainer in interface UIFocusEnvironmentpublic boolean isModalInPresentation()
public long overrideUserInterfaceStyle()
public UIFocusEnvironment parentFocusEnvironment()
UIFocusEnvironmentparentFocusEnvironment in interface UIFocusEnvironmentpublic boolean performsActionsWhilePresentingModally()
Defaults to YES. You can change the default return value by providing a value for UIViewControllerPerformsActionsWhilePresentingModally in your Info.plist file.
public void setModalInPresentation(boolean value)
public void setOverrideUserInterfaceStyle(long value)
public UIViewController childViewControllerForPointerLock()
public java.lang.String focusGroupIdentifier()
UIFocusEnvironmentfocusGroupIdentifier in interface UIFocusEnvironmentpublic boolean prefersPointerLocked()
public void setNeedsUpdateOfPrefersPointerLocked()
public UIScrollView contentScrollViewForEdge(long edge)
public void setContentScrollViewForEdge(UIScrollView scrollView, long edge)
When contentScrollView is nil for an edge, UIKit uses a heuristic to search for a UIScrollView to track. If none is found, the relevant bar will be transparent unless otherwise customized with the `scrollEdgeAppearance` APIs. Aggregate values (e.g., NSDirectionalRectEdgeAll) are accepted in the `edge` parameter; NSDirectionalRectEdgeLeading and Trailing are ignored on iOS 15.0
public void setFocusGroupIdentifier(java.lang.String value)
public UISheetPresentationController sheetPresentationController()