Package apple.uikit
Class UIPresentationController
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIPresentationController
-
- All Implemented Interfaces:
NSObject,UIAppearanceContainer,UIContentContainer,UIFocusEnvironment,UITraitEnvironment
- Direct Known Subclasses:
UIPopoverPresentationController
public class UIPresentationController extends NSObject implements UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIPresentationController(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()longadaptivePresentationStyle()By default this implementation defers to the delegate, if one exists, or returns the current presentation style.longadaptivePresentationStyleForTraitCollection(UITraitCollection traitCollection)static UIPresentationControlleralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()UIViewcontainerView()The view in which a presentation occurs.voidcontainerViewDidLayoutSubviews()voidcontainerViewWillLayoutSubviews()static java.lang.StringdebugDescription_static()java.lang.Objectdelegate()static java.lang.Stringdescription_static()voiddidUpdateFocusInContextWithAnimationCoordinator(UIFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)Called when the screen’s focused item has been updated to a new item.voiddismissalTransitionDidEnd(boolean completed)voiddismissalTransitionWillBegin()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.CGRectframeOfPresentedViewInContainerView()Position of the presented view in the container view by the end of the presentation transition.static longhash_static()UIPresentationControllerinit()UIPresentationControllerinitWithPresentedViewControllerPresentingViewController(UIViewController presentedViewController, UIViewController presentingViewController)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)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()UITraitCollectionoverrideTraitCollection()Modifies the trait collection for the presentation controller.UIFocusEnvironmentparentFocusEnvironment()The parent focus environment of this environment, or nil if no parent exists.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.longpresentationStyle()voidpresentationTransitionDidEnd(boolean completed)voidpresentationTransitionWillBegin()UIViewpresentedView()A view that's going to be animated during the presentation.UIViewControllerpresentedViewController()UIViewControllerpresentingViewController()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetDelegate(java.lang.Object value)voidsetDelegate_unsafe(java.lang.Object value)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.voidsetOverrideTraitCollection(UITraitCollection value)Modifies the trait collection for the presentation controller.static voidsetVersion_static(long aVersion)booleanshouldPresentInFullscreen()By default each new presentation is full screen.booleanshouldRemovePresentersView()Indicate whether the view controller's view we are transitioning from will be removed from the window in the end of the presentation transition (Default: NO)booleanshouldUpdateFocusInContext(UIFocusUpdateContext context)Asks whether the system should allow a focus update to occur.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.static org.moe.natj.objc.Classsuperclass_static()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.UITraitCollectiontraitCollection()voidtraitCollectionDidChange(UITraitCollection previousTraitCollection)To be overridden as needed to provide custom behavior when the environment's traits change.voidupdateFocusIfNeeded()Forces focus to be updated immediately.static longversion_static()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).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.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 UIPresentationController alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
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()
-
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()
-
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()
-
adaptivePresentationStyle
public long adaptivePresentationStyle()
By default this implementation defers to the delegate, if one exists, or returns the current presentation style. UIFormSheetPresentationController, and UIPopoverPresentationController override this implementation to return UIModalPresentationStyleFullscreen if the delegate does not provide an implementation for adaptivePresentationStyleForPresentationController:
-
adaptivePresentationStyleForTraitCollection
public long adaptivePresentationStyleForTraitCollection(UITraitCollection traitCollection)
-
containerView
public UIView containerView()
The view in which a presentation occurs. It is an ancestor of both the presenting and presented view controller's views. This view is being passed to the animation controller.
-
containerViewDidLayoutSubviews
public void containerViewDidLayoutSubviews()
-
containerViewWillLayoutSubviews
public void containerViewWillLayoutSubviews()
-
delegate
public java.lang.Object delegate()
-
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
-
dismissalTransitionDidEnd
public void dismissalTransitionDidEnd(boolean completed)
-
dismissalTransitionWillBegin
public void dismissalTransitionWillBegin()
-
frameOfPresentedViewInContainerView
public CGRect frameOfPresentedViewInContainerView()
Position of the presented view in the container view by the end of the presentation transition. (Default: container view bounds)
-
init
public UIPresentationController init()
-
initWithPresentedViewControllerPresentingViewController
public UIPresentationController initWithPresentedViewControllerPresentingViewController(UIViewController presentedViewController, UIViewController presentingViewController)
-
overrideTraitCollection
public UITraitCollection overrideTraitCollection()
Modifies the trait collection for the presentation controller.
-
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
-
presentationStyle
public long presentationStyle()
-
presentationTransitionDidEnd
public void presentationTransitionDidEnd(boolean completed)
-
presentationTransitionWillBegin
public void presentationTransitionWillBegin()
-
presentedView
public UIView presentedView()
A view that's going to be animated during the presentation. Must be an ancestor of a presented view controller's view or a presented view controller's view itself. (Default: presented view controller's view)
-
presentedViewController
public UIViewController presentedViewController()
-
presentingViewController
public UIViewController presentingViewController()
-
setDelegate_unsafe
public void setDelegate_unsafe(java.lang.Object value)
-
setDelegate
public void setDelegate(java.lang.Object value)
-
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
-
setOverrideTraitCollection
public void setOverrideTraitCollection(UITraitCollection value)
Modifies the trait collection for the presentation controller.
-
shouldPresentInFullscreen
public boolean shouldPresentInFullscreen()
By default each new presentation is full screen. This behavior can be overridden with the following method to force a current context presentation. (Default: YES)
-
shouldRemovePresentersView
public boolean shouldRemovePresentersView()
Indicate whether the view controller's view we are transitioning from will be removed from the window in the end of the presentation transition (Default: NO)
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
-