Package org.robovm.apple.uikit
Class UIViewController
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.uikit.UIResponder
org.robovm.apple.uikit.UIViewController
- All Implemented Interfaces:
NSCoding,NSExtensionRequestHandling,NSObjectProtocol,UIActivityItemsConfigurationProviding,UIAppearanceContainer,UIContentContainer,UIFocusEnvironment,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIStateRestoring,UITraitEnvironment,UIUserActivityRestoring,ObjCProtocol
- Direct Known Subclasses:
ABNewPersonViewController,ABPersonViewController,ABUnknownPersonViewController,ADInterstitialAdPresentationViewController,ASAccountAuthenticationModificationViewController,ASCredentialProviderViewController,AUViewController,AVPictureInPictureVideoCallViewController,AVPlayerViewController,CABTMIDILocalPeripheralViewController,CNContactPickerViewController,CNContactViewController,EKCalendarChooser,EKEventViewController,FPUIActionExtensionViewController,GCEventViewController,GLKViewController,ILClassificationUIExtensionViewController,INUIAddVoiceShortcutViewController,INUIEditVoiceShortcutViewController,MCBrowserViewController,MPMediaPickerController,MPMoviePlayerViewController,MSMessagesAppViewController,MSStickerBrowserViewController,PHPickerViewController,PKAddPassesViewController,PKAddPaymentPassViewController,PKAddSecureElementPassViewController,PKPaymentAuthorizationViewController,QLPreviewController,RPBroadcastActivityViewController,RPPreviewViewController,SFSafariViewController,SKCloudServiceSetupViewController,SKStoreProductViewController,SLComposeServiceViewController,SLComposeViewController,STWebpageController,TWTweetComposeViewController,UIActivityViewController,UIAlertController,UICloudSharingController,UICollectionViewController,UIColorPickerViewController,UIDocumentBrowserViewController,UIDocumentMenuViewController,UIDocumentPickerExtensionViewController,UIDocumentPickerViewController,UIFontPickerViewController,UIInputViewController,UINavigationController,UIPageViewController,UIReferenceLibraryViewController,UISearchContainerViewController,UISearchController,UISplitViewController,UITabBarController,UITableViewController,VNDocumentCameraViewController
public class UIViewController extends UIResponder implements NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment, UIStateRestoring, NSExtensionRequestHandling
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUIViewController.Notificationsstatic classUIViewController.UIViewControllerPtrNested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description UIViewController()protectedUIViewController(long handle)Deprecated.UIViewController(String nibNameOrNil, NSBundle nibBundleOrNil)UIViewController(NSCoder coder)protectedUIViewController(NSObject.Handle h, long handle)protectedUIViewController(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.uikit.UIResponder
becomeFirstResponder, buildMenu, canBecomeFirstResponder, canPasteItemProviders, canPerformAction, canResignFirstResponder, captureTextFromCamera, clearTextInputContextIdentifier, copy, cut, decreaseSize, delete, getActionTarget, getActivityItemsConfiguration, getEditingInteractionConfiguration, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getPasteConfiguration, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, increaseSize, isFirstResponder, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBegan, motionCancelled, motionEnded, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteItemProviders, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, print, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, toggleBoldface, toggleItalics, toggleUnderline, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateTextAttributes, updateUserActivityState, validateCommandMethods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
UIViewController
public UIViewController() -
UIViewController
Deprecated. -
UIViewController
-
UIViewController
-
UIViewController
-
UIViewController
-
-
Method Details
-
getView
-
setView
-
getViewIfLoaded
- Since:
- Available in iOS 9.0 and later.
-
isViewLoaded
public boolean isViewLoaded() -
getNibName
-
getNibBundle
-
getStoryboard
-
getTitle
-
setTitle
-
getParentViewController
-
getPresentedViewController
-
getPresentingViewController
-
definesPresentationContext
public boolean definesPresentationContext() -
setDefinesPresentationContext
public void setDefinesPresentationContext(boolean v) -
providesPresentationContextTransitionStyle
public boolean providesPresentationContextTransitionStyle() -
setProvidesPresentationContextTransitionStyle
public void setProvidesPresentationContextTransitionStyle(boolean v) -
isRestoresFocusAfterTransition
public boolean isRestoresFocusAfterTransition()- Since:
- Available in iOS 10.0 and later.
-
setRestoresFocusAfterTransition
public void setRestoresFocusAfterTransition(boolean v)- Since:
- Available in iOS 10.0 and later.
-
getFocusGroupIdentifier
- Specified by:
getFocusGroupIdentifierin interfaceUIFocusEnvironment- Since:
- Available in iOS 15.0 and later.
-
setFocusGroupIdentifier
- Since:
- Available in iOS 15.0 and later.
-
isBeingPresented
public boolean isBeingPresented() -
isBeingDismissed
public boolean isBeingDismissed() -
isMovingToParentViewController
public boolean isMovingToParentViewController() -
isMovingFromParentViewController
public boolean isMovingFromParentViewController() -
getModalTransitionStyle
-
setModalTransitionStyle
-
getModalPresentationStyle
-
setModalPresentationStyle
-
modalPresentationCapturesStatusBarAppearance
public boolean modalPresentationCapturesStatusBarAppearance() -
setModalPresentationCapturesStatusBarAppearance
public void setModalPresentationCapturesStatusBarAppearance(boolean v) -
disablesAutomaticKeyboardDismissal
public boolean disablesAutomaticKeyboardDismissal() -
wantsFullScreenLayout
Deprecated.Deprecated in iOS 7.0. -
setWantsFullScreenLayout
Deprecated.Deprecated in iOS 7.0. -
getEdgesForExtendedLayout
-
setEdgesForExtendedLayout
-
extendedLayoutIncludesOpaqueBars
public boolean extendedLayoutIncludesOpaqueBars() -
setExtendedLayoutIncludesOpaqueBars
public void setExtendedLayoutIncludesOpaqueBars(boolean v) -
automaticallyAdjustsScrollViewInsets
Deprecated.Deprecated in iOS 11.0. Use UIScrollView's contentInsetAdjustmentBehavior instead -
setAutomaticallyAdjustsScrollViewInsets
Deprecated.Deprecated in iOS 11.0. Use UIScrollView's contentInsetAdjustmentBehavior instead -
getPreferredContentSize
- Specified by:
getPreferredContentSizein interfaceUIContentContainer
-
setPreferredContentSize
-
getPreferredStatusBarStyle
-
prefersStatusBarHidden
public boolean prefersStatusBarHidden() -
getPreferredStatusBarUpdateAnimation
-
getOverrideUserInterfaceStyle
- Since:
- Available in iOS 13.0 and later.
-
setOverrideUserInterfaceStyle
- Since:
- Available in iOS 13.0 and later.
-
shouldAutorotate
public boolean shouldAutorotate() -
getSupportedInterfaceOrientations
-
getPreferredInterfaceOrientationForPresentation
-
getInterfaceOrientation
Deprecated.Deprecated in iOS 8.0. -
isEditing
public boolean isEditing() -
setEditing
public void setEditing(boolean v) -
getEditButtonItem
-
getSearchDisplayController
Deprecated.Deprecated in iOS 8.0. -
getChildViewControllers
-
getChildViewControllerForStatusBarStyle
-
getChildViewControllerForStatusBarHidden
-
shouldAutomaticallyForwardAppearanceMethods
public boolean shouldAutomaticallyForwardAppearanceMethods() -
getRestorationIdentifier
-
setRestorationIdentifier
-
getRestorationClass
-
setRestorationClass
-
getTransitioningDelegate
-
setTransitioningDelegate
-
getTopLayoutGuide
Deprecated.Deprecated in iOS 11.0. Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor -
getBottomLayoutGuide
Deprecated.Deprecated in iOS 11.0. Use view.safeAreaLayoutGuide.bottomAnchor instead of bottomLayoutGuide.topAnchor -
getAdditionalSafeAreaInsets
- Since:
- Available in iOS 11.0 and later.
-
setAdditionalSafeAreaInsets
- Since:
- Available in iOS 11.0 and later.
-
getSystemMinimumLayoutMargins
- Since:
- Available in iOS 11.0 and later.
-
isViewRespectsSystemMinimumLayoutMargins
public boolean isViewRespectsSystemMinimumLayoutMargins()- Since:
- Available in iOS 11.0 and later.
-
setViewRespectsSystemMinimumLayoutMargins
public void setViewRespectsSystemMinimumLayoutMargins(boolean v)- Since:
- Available in iOS 11.0 and later.
-
performsActionsWhilePresentingModally
public boolean performsActionsWhilePresentingModally()- Since:
- Available in iOS 13.0 and later.
-
getExtensionContext
-
getPresentationController
-
getSheetPresentationController
- Since:
- Available in iOS 15.0 and later.
-
getPopoverPresentationController
-
isModalInPresentation
public boolean isModalInPresentation()- Since:
- Available in iOS 13.0 and later.
-
setModalInPresentation
public void setModalInPresentation(boolean v)- Since:
- Available in iOS 13.0 and later.
-
getChildViewControllerForScreenEdgesDeferringSystemGestures
- Since:
- Available in iOS 11.0 and later.
-
getPreferredScreenEdgesDeferringSystemGestures
- Since:
- Available in iOS 11.0 and later.
-
getChildViewControllerForHomeIndicatorAutoHidden
- Since:
- Available in iOS 11.0 and later.
-
prefersHomeIndicatorAutoHidden
public boolean prefersHomeIndicatorAutoHidden()- Since:
- Available in iOS 11.0 and later.
-
getChildViewControllerForPointerLock
- Since:
- Available in iOS 14.0 and later.
-
prefersPointerLocked
public boolean prefersPointerLocked()- Since:
- Available in iOS 14.0 and later.
-
getPreviewActionItems
Deprecated.Deprecated in iOS 13.0. UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.- Since:
- Available in iOS 9.0 and later.
-
getNavigationItem
-
hidesBottomBarWhenPushed
public boolean hidesBottomBarWhenPushed() -
setHidesBottomBarWhenPushed
public void setHidesBottomBarWhenPushed(boolean v) -
getNavigationController
-
getToolbarItems
-
setToolbarItems
-
isModalInPopover
Deprecated.Deprecated in iOS 13.0. Use modalInPresentation -
setModalInPopover
Deprecated.Deprecated in iOS 13.0. Use modalInPresentation -
getContentSizeForViewInPopover
Deprecated.Deprecated in iOS 7.0. Use preferredContentSize -
setContentSizeForViewInPopover
Deprecated.Deprecated in iOS 7.0. Use preferredContentSize -
getTransitionCoordinator
-
getSplitViewController
-
getTabBarItem
-
setTabBarItem
-
getTabBarController
-
getTraitCollection
- Specified by:
getTraitCollectionin interfaceUITraitEnvironment
-
getPreferredFocusEnvironments
- Specified by:
getPreferredFocusEnvironmentsin interfaceUIFocusEnvironment
-
getParentFocusEnvironment
- Specified by:
getParentFocusEnvironmentin interfaceUIFocusEnvironment- Since:
- Available in iOS 12.0 and later.
-
getFocusItemContainer
- Specified by:
getFocusItemContainerin interfaceUIFocusEnvironment- Since:
- Available in iOS 12.0 and later.
-
getPreferredFocusedView
Deprecated.Deprecated in iOS 10.0. Use preferredFocusEnvironments- Specified by:
getPreferredFocusedViewin interfaceUIFocusEnvironment- Since:
- Available in iOS 9.0 and later.
-
getRestorationParent
- Specified by:
getRestorationParentin interfaceUIStateRestoring
-
getObjectRestorationClass
- Specified by:
getObjectRestorationClassin interfaceUIStateRestoring
-
getInterstitialPresentationPolicy
- Since:
- Available in iOS 7.0 and later.
-
setInterstitialPresentationPolicy
- Since:
- Available in iOS 7.0 and later.
-
isCanDisplayBannerAds
public boolean isCanDisplayBannerAds()- Since:
- Available in iOS 7.0 and later.
-
setCanDisplayBannerAds
public void setCanDisplayBannerAds(boolean v)- Since:
- Available in iOS 7.0 and later.
-
getOriginalContentView
- Since:
- Available in iOS 7.0 and later.
-
isPresentingFullScreenAd
public boolean isPresentingFullScreenAd()- Since:
- Available in iOS 7.0 and later.
-
isDisplayingBannerAd
public boolean isDisplayingBannerAd()- Since:
- Available in iOS 7.0 and later.
-
requestInterstitialAdPresentation
public boolean requestInterstitialAdPresentation()- Since:
- Available in iOS 7.0 and later.
-
shouldPresentInterstitialAd
public boolean shouldPresentInterstitialAd()- Since:
- Available in iOS 7.0 and later.
-
prepareInterstitialAds
public static void prepareInterstitialAds()- Since:
- Available in iOS 7.0 and later.
-
presentMoviePlayerViewController
public void presentMoviePlayerViewController(MPMoviePlayerViewController moviePlayerViewController) -
dismissMoviePlayerViewController
public void dismissMoviePlayerViewController() -
ShowDetailTargetDidChangeNotification
-
init
-
init
-
loadView
public void loadView() -
loadViewIfNeeded
public void loadViewIfNeeded()- Since:
- Available in iOS 9.0 and later.
-
viewDidLoad
public void viewDidLoad() -
performSegue
-
shouldPerformSegue
-
prepareForSegue
-
canPerformUnwindSegueAction
public boolean canPerformUnwindSegueAction(Selector action, UIViewController fromViewController, NSObject sender)- Since:
- Available in iOS 13.0 and later.
-
canPerformUnwind
@Deprecated public boolean canPerformUnwind(Selector action, UIViewController fromViewController, NSObject sender)Deprecated.Deprecated in iOS 13.0. Use canPerformUnwindSegueAction:fromViewController:sender: -
getAllowedChildViewControllersForUnwinding
public NSArray<UIViewController> getAllowedChildViewControllersForUnwinding(UIStoryboardUnwindSegueSource source)- Since:
- Available in iOS 9.0 and later.
-
getChildViewControllerContainingSegueSource
public UIViewController getChildViewControllerContainingSegueSource(UIStoryboardUnwindSegueSource source)- Since:
- Available in iOS 9.0 and later.
-
getViewControllerForUnwind
@Deprecated public UIViewController getViewControllerForUnwind(Selector action, UIViewController fromViewController, NSObject sender)Deprecated.Deprecated in iOS 9.0. -
unwind
- Since:
- Available in iOS 9.0 and later.
-
getSegueForUnwinding
@Deprecated public UIStoryboardSegue getSegueForUnwinding(UIViewController toViewController, UIViewController fromViewController, String identifier)Deprecated.Deprecated in iOS 9.0. -
viewWillAppear
public void viewWillAppear(boolean animated) -
viewDidAppear
public void viewDidAppear(boolean animated) -
viewWillDisappear
public void viewWillDisappear(boolean animated) -
viewDidDisappear
public void viewDidDisappear(boolean animated) -
viewWillLayoutSubviews
public void viewWillLayoutSubviews() -
viewDidLayoutSubviews
public void viewDidLayoutSubviews() -
didReceiveMemoryWarning
public void didReceiveMemoryWarning() -
presentViewController
public void presentViewController(UIViewController viewControllerToPresent, boolean animated, Runnable completion) -
dismissViewController
-
setContentScrollView
- Since:
- Available in iOS 15.0 and later.
-
contentScrollViewForEdge
- Since:
- Available in iOS 15.0 and later.
-
setNeedsStatusBarAppearanceUpdate
public void setNeedsStatusBarAppearanceUpdate() -
getTargetViewControllerForAction
-
showViewController
-
showDetailViewController
-
getRotatingHeaderView
Deprecated.Deprecated in iOS 8.0. Header views are animated along with the rest of the view hierarchy -
getRotatingFooterView
Deprecated.Deprecated in iOS 8.0. Footer views are animated along with the rest of the view hierarchy -
willRotate
Deprecated.Deprecated in iOS 8.0. Implement viewWillTransitionToSize:withTransitionCoordinator: instead -
didRotate
Deprecated.Deprecated in iOS 8.0. -
willAnimateRotation
@Deprecated public void willAnimateRotation(UIInterfaceOrientation toInterfaceOrientation, double duration)Deprecated.Deprecated in iOS 8.0. Implement viewWillTransitionToSize:withTransitionCoordinator: instead -
attemptRotationToDeviceOrientation
public static void attemptRotationToDeviceOrientation() -
setEditing
public void setEditing(boolean editing, boolean animated) -
addChildViewController
-
removeFromParentViewController
public void removeFromParentViewController() -
transition
public void transition(UIViewController fromViewController, UIViewController toViewController, double duration, UIViewAnimationOptions options, Runnable animations, VoidBooleanBlock completion) -
beginAppearanceTransition
public void beginAppearanceTransition(boolean isAppearing, boolean animated) -
endAppearanceTransition
public void endAppearanceTransition() -
setOverrideTraitCollection
public void setOverrideTraitCollection(UITraitCollection collection, UIViewController childViewController) -
getOverrideTraitCollection
-
shouldAutomaticallyForwardRotationMethods
Deprecated.Deprecated in iOS 8.0. Manually forward viewWillTransitionToSize:withTransitionCoordinator: if necessary -
willMoveToParentViewController
-
didMoveToParentViewController
-
encodeRestorableState
- Specified by:
encodeRestorableStatein interfaceUIStateRestoring
-
decodeRestorableState
- Specified by:
decodeRestorableStatein interfaceUIStateRestoring
-
applicationFinishedRestoringState
public void applicationFinishedRestoringState()- Specified by:
applicationFinishedRestoringStatein interfaceUIStateRestoring
-
updateViewConstraints
public void updateViewConstraints() -
viewLayoutMarginsDidChange
public void viewLayoutMarginsDidChange()- Since:
- Available in iOS 11.0 and later.
-
viewSafeAreaInsetsDidChange
public void viewSafeAreaInsetsDidChange()- Since:
- Available in iOS 11.0 and later.
-
addKeyCommand
- Since:
- Available in iOS 9.0 and later.
-
removeKeyCommand
- Since:
- Available in iOS 9.0 and later.
-
registerForPreviewing
@Deprecated public UIViewControllerPreviewing registerForPreviewing(UIViewControllerPreviewingDelegate delegate, UIView sourceView)Deprecated.Deprecated in iOS 13.0. Use UIContextMenuInteraction- Since:
- Available in iOS 9.0 and later.
-
unregisterForPreviewing
Deprecated.Deprecated in iOS 13.0. Use UIContextMenuInteraction- Since:
- Available in iOS 9.0 and later.
-
setNeedsUpdateOfScreenEdgesDeferringSystemGestures
public void setNeedsUpdateOfScreenEdgesDeferringSystemGestures()- Since:
- Available in iOS 11.0 and later.
-
setNeedsUpdateOfHomeIndicatorAutoHidden
public void setNeedsUpdateOfHomeIndicatorAutoHidden()- Since:
- Available in iOS 11.0 and later.
-
setNeedsUpdateOfPrefersPointerLocked
public void setNeedsUpdateOfPrefersPointerLocked()- Since:
- Available in iOS 14.0 and later.
-
setToolbarItems
-
collapseSecondaryViewController
public void collapseSecondaryViewController(UIViewController secondaryViewController, UISplitViewController splitViewController) -
separateSecondaryViewController
-
encode
-
traitCollectionDidChange
- Specified by:
traitCollectionDidChangein interfaceUITraitEnvironment
-
preferredContentSizeDidChangeForChildContentContainer
- Specified by:
preferredContentSizeDidChangeForChildContentContainerin interfaceUIContentContainer
-
systemLayoutFittingSizeDidChangeForChildContentContainer
- Specified by:
systemLayoutFittingSizeDidChangeForChildContentContainerin interfaceUIContentContainer
-
sizeForChildContentContainer
- Specified by:
sizeForChildContentContainerin interfaceUIContentContainer
-
viewWillTransitionToSize
public void viewWillTransitionToSize(CGSize size, UIViewControllerTransitionCoordinator coordinator)- Specified by:
viewWillTransitionToSizein interfaceUIContentContainer
-
willTransitionToTraitCollection
public void willTransitionToTraitCollection(UITraitCollection newCollection, UIViewControllerTransitionCoordinator coordinator)- Specified by:
willTransitionToTraitCollectionin interfaceUIContentContainer
-
setNeedsFocusUpdate
public void setNeedsFocusUpdate()- Specified by:
setNeedsFocusUpdatein interfaceUIFocusEnvironment
-
updateFocusIfNeeded
public void updateFocusIfNeeded()- Specified by:
updateFocusIfNeededin interfaceUIFocusEnvironment
-
shouldUpdateFocus
- Specified by:
shouldUpdateFocusin interfaceUIFocusEnvironment
-
didUpdateFocus
- Specified by:
didUpdateFocusin interfaceUIFocusEnvironment
-
beginRequest
- Specified by:
beginRequestin interfaceNSExtensionRequestHandling
-