public class UIPresentationController extends NSObject implements UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
UIPresentationController(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
long |
adaptivePresentationStyle()
By default this implementation defers to the delegate, if one exists, or returns the current presentation style.
|
long |
adaptivePresentationStyleForTraitCollection(UITraitCollection traitCollection) |
static UIPresentationController |
alloc() |
static UIPresentationController |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(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.Class |
classForKeyedUnarchiver() |
UIView |
containerView()
The view in which a presentation occurs.
|
void |
containerViewDidLayoutSubviews() |
void |
containerViewWillLayoutSubviews() |
static java.lang.String |
debugDescription_static() |
java.lang.Object |
delegate() |
static java.lang.String |
description_static() |
void |
didUpdateFocusInContextWithAnimationCoordinator(UIFocusUpdateContext context,
UIFocusAnimationCoordinator coordinator)
Called when the screen’s focused item has been updated to a new item.
|
void |
dismissalTransitionDidEnd(boolean completed) |
void |
dismissalTransitionWillBegin() |
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.
|
CGRect |
frameOfPresentedViewInContainerView()
Position of the presented view in the container view by the end of the presentation transition.
|
static long |
hash_static() |
UIPresentationController |
init() |
UIPresentationController |
initWithPresentedViewControllerPresentingViewController(UIViewController presentedViewController,
UIViewController presentingViewController) |
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) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static UIPresentationController |
new_objc() |
UITraitCollection |
overrideTraitCollection()
Modifies the trait collection for the presentation controller.
|
UIFocusEnvironment |
parentFocusEnvironment()
The parent focus environment of this environment, or nil if no parent exists.
|
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 |
presentationStyle() |
void |
presentationTransitionDidEnd(boolean completed) |
void |
presentationTransitionWillBegin() |
UIView |
presentedView()
A view that's going to be animated during the presentation.
|
UIViewController |
presentedViewController() |
UIViewController |
presentingViewController() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setDelegate_unsafe(java.lang.Object value) |
void |
setDelegate(java.lang.Object value) |
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 |
setOverrideTraitCollection(UITraitCollection value)
Modifies the trait collection for the presentation controller.
|
static void |
setVersion_static(long aVersion) |
boolean |
shouldPresentInFullscreen()
By default each new presentation is full screen.
|
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)
|
boolean |
shouldUpdateFocusInContext(UIFocusUpdateContext context)
Asks whether the system should allow a focus update to occur.
|
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.
|
static org.moe.natj.objc.Class |
superclass_static() |
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.
|
UITraitCollection |
traitCollection() |
void |
traitCollectionDidChange(UITraitCollection previousTraitCollection)
To be overridden as needed to provide custom behavior when the environment's traits change.
|
void |
updateFocusIfNeeded()
Forces focus to be updated immediately.
|
static long |
version_static() |
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 |
willTransitionToTraitCollectionWithTransitionCoordinator(UITraitCollection newCollection,
UIViewControllerTransitionCoordinator coordinator)
This method is called when the view controller's trait collection is changed by its parent.
|
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, willChangeValuesAtIndexesForKeyprotected UIPresentationController(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static UIPresentationController alloc()
public static UIPresentationController allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
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 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 UIPresentationController 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 long adaptivePresentationStyle()
public long adaptivePresentationStyleForTraitCollection(UITraitCollection traitCollection)
public UIView containerView()
public void containerViewDidLayoutSubviews()
public void containerViewWillLayoutSubviews()
public java.lang.Object delegate()
public void didUpdateFocusInContextWithAnimationCoordinator(UIFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)
UIFocusEnvironmentdidUpdateFocusInContextWithAnimationCoordinator in interface UIFocusEnvironmentpublic void dismissalTransitionDidEnd(boolean completed)
public void dismissalTransitionWillBegin()
public CGRect frameOfPresentedViewInContainerView()
public UIPresentationController init()
public UIPresentationController initWithPresentedViewControllerPresentingViewController(UIViewController presentedViewController, UIViewController presentingViewController)
public UITraitCollection overrideTraitCollection()
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 presentationStyle()
public void presentationTransitionDidEnd(boolean completed)
public void presentationTransitionWillBegin()
public UIView presentedView()
public UIViewController presentedViewController()
public UIViewController presentingViewController()
public void setDelegate_unsafe(java.lang.Object value)
public void setDelegate(java.lang.Object value)
public void setNeedsFocusUpdate()
UIFocusEnvironmentsetNeedsFocusUpdate in interface UIFocusEnvironmentpublic void setOverrideTraitCollection(UITraitCollection value)
public boolean shouldPresentInFullscreen()
public boolean shouldRemovePresentersView()
public boolean shouldUpdateFocusInContext(UIFocusUpdateContext context)
UIFocusEnvironmentshouldUpdateFocusInContext in interface UIFocusEnvironmentpublic 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 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 UITraitCollection traitCollection()
traitCollection in interface UITraitEnvironmentpublic void traitCollectionDidChange(UITraitCollection previousTraitCollection)
UITraitEnvironmenttraitCollectionDidChange in interface UITraitEnvironmentpublic void updateFocusIfNeeded()
UIFocusEnvironmentupdateFocusIfNeeded in interface UIFocusEnvironmentpublic 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 UIContentContainerpublic 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 UIFocusItemContainer focusItemContainer()
UIFocusEnvironmentfocusItemContainer in interface UIFocusEnvironmentpublic UIFocusEnvironment parentFocusEnvironment()
UIFocusEnvironmentparentFocusEnvironment in interface UIFocusEnvironmentpublic java.lang.String focusGroupIdentifier()
UIFocusEnvironmentfocusGroupIdentifier in interface UIFocusEnvironment