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,UITraitChangeObservable,UITraitEnvironment
- Direct Known Subclasses:
UIPopoverPresentationController,UISheetPresentationController
public class UIPresentationController extends NSObject implements UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment, UITraitChangeObservable
API-Since: 8.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UITraitChangeObservable
UITraitChangeObservable.Block_registerForTraitChangesWithHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIPresentationController(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()longadaptivePresentationStyle()By default this implementation defers to the delegate, if one exists, or returns the current presentation style.longadaptivePresentationStyleForTraitCollection(@NotNull UITraitCollection traitCollection)API-Since: 8.3static UIPresentationControlleralloc()static UIPresentationControllerallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@Nullable UIViewcontainerView()The view in which a presentation occurs.voidcontainerViewDidLayoutSubviews()voidcontainerViewWillLayoutSubviews()static java.lang.StringdebugDescription_static()@Nullable java.lang.Objectdelegate()static java.lang.Stringdescription_static()voiddidUpdateFocusInContextWithAnimationCoordinator(@NotNull UIFocusUpdateContext context, @NotNull UIFocusAnimationCoordinator coordinator)Called when the screen’s focused item has been updated to a new item.voiddismissalTransitionDidEnd(boolean completed)voiddismissalTransitionWillBegin()@Nullable java.lang.StringfocusGroupIdentifier()The identifier of the focus group that this view belongs to.@Nullable 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(@NotNull UIViewController presentedViewController, @Nullable 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 @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static UIPresentationControllernew_objc()@Nullable UITraitCollectionoverrideTraitCollection()Deprecated.@Nullable UIFocusEnvironmentparentFocusEnvironment()The parent focus environment of this environment, or nil if no parent exists.CGSizepreferredContentSize()API-Since: 8.0voidpreferredContentSizeDidChangeForChildContentContainer(@NotNull UIContentContainer container)API-Since: 8.0@Nullable UIViewpreferredFocusedView()Deprecated.@NotNull 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()@Nullable UIViewpresentedView()A view that's going to be animated during the presentation.@NotNull UIViewControllerpresentedViewController()@NotNull UIViewControllerpresentingViewController()@NotNull UITraitChangeRegistrationregisterForTraitChangesWithAction(@NotNull NSArray<?> traits, @NotNull org.moe.natj.objc.SEL action)Convenience method where the target is self.@NotNull UITraitChangeRegistrationregisterForTraitChangesWithHandler(@NotNull NSArray<?> traits, UITraitChangeObservable.Block_registerForTraitChangesWithHandler handler)@NotNull UITraitChangeRegistrationregisterForTraitChangesWithTargetAction(@NotNull NSArray<?> traits, @NotNull java.lang.Object target, @NotNull org.moe.natj.objc.SEL action)The action method you use with the following registration APIs may have zero, one, or two parameters.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetDelegate(@Nullable java.lang.Object value)voidsetDelegate_unsafe(@Nullable 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(@Nullable UITraitCollection value)Deprecated.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(@NotNull UIFocusUpdateContext context)Asks whether the system should allow a focus update to occur.CGSizesizeForChildContentContainerWithParentContainerSize(@NotNull 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(@NotNull UIContentContainer container)Intended as a bridge for a view controller that does not use auto layout presenting a child that does use auto layout.@NotNull UITraitCollectiontraitCollection()API-Since: 8.0voidtraitCollectionDidChange(@Nullable UITraitCollection previousTraitCollection)Deprecated.@NotNull UITraitOverridestraitOverrides()voidunregisterForTraitChanges(@NotNull UITraitChangeRegistration registration)voidupdateFocusIfNeeded()Forces focus to be updated immediately.static booleanuseStoredAccessor()Deprecated.static longversion_static()voidviewWillTransitionToSizeWithTransitionCoordinator(CGSize size, @NotNull UIViewControllerTransitionCoordinator coordinator)This method is called when the view controller's view's size is changed by its parent (i.e.voidwillTransitionToTraitCollectionWithTransitionCoordinator(@NotNull UITraitCollection newCollection, @NotNull 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, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UIPresentationController alloc()
-
allocWithZone
public static UIPresentationController allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull 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
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static UIPresentationController 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(@NotNull @NotNull UITraitCollection traitCollection)API-Since: 8.3
-
containerView
@Nullable public @Nullable 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
@Nullable public @Nullable java.lang.Object delegate()
-
didUpdateFocusInContextWithAnimationCoordinator
public void didUpdateFocusInContextWithAnimationCoordinator(@NotNull @NotNull UIFocusUpdateContext context, @NotNull @NotNull 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(@NotNull @NotNull UIViewController presentedViewController, @Nullable @Nullable UIViewController presentingViewController)
-
overrideTraitCollection
@Deprecated @Nullable public @Nullable UITraitCollection overrideTraitCollection()
Deprecated.Modifies the trait collection for the presentation controller. API-Since: 8.0 Deprecated-Since: 17.0 Deprecated-Message: Use the traitOverrides property instead
-
preferredContentSize
public CGSize preferredContentSize()
Description copied from interface:UIContentContainerAPI-Since: 8.0- Specified by:
preferredContentSizein interfaceUIContentContainer
-
preferredContentSizeDidChangeForChildContentContainer
public void preferredContentSizeDidChangeForChildContentContainer(@NotNull @NotNull UIContentContainer container)Description copied from interface:UIContentContainerAPI-Since: 8.0- Specified by:
preferredContentSizeDidChangeForChildContentContainerin interfaceUIContentContainer
-
preferredFocusEnvironments
@NotNull public @NotNull 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
@Nullable @Deprecated public @Nullable UIView preferredFocusedView()
Deprecated.Description copied from interface:UIFocusEnvironmentAPI-Since: 9.0 Deprecated-Since: 10.0- Specified by:
preferredFocusedViewin interfaceUIFocusEnvironment
-
presentationStyle
public long presentationStyle()
-
presentationTransitionDidEnd
public void presentationTransitionDidEnd(boolean completed)
-
presentationTransitionWillBegin
public void presentationTransitionWillBegin()
-
presentedView
@Nullable public @Nullable 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
@NotNull public @NotNull UIViewController presentedViewController()
-
presentingViewController
@NotNull public @NotNull UIViewController presentingViewController()
-
setDelegate_unsafe
public void setDelegate_unsafe(@Nullable @Nullable java.lang.Object value)
-
setDelegate
public void setDelegate(@Nullable @Nullable 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
@Deprecated public void setOverrideTraitCollection(@Nullable @Nullable UITraitCollection value)Deprecated.Modifies the trait collection for the presentation controller. API-Since: 8.0 Deprecated-Since: 17.0 Deprecated-Message: Use the traitOverrides property instead
-
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(@NotNull @NotNull 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(@NotNull @NotNull 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. API-Since: 8.0- Specified by:
sizeForChildContentContainerWithParentContainerSizein interfaceUIContentContainer
-
systemLayoutFittingSizeDidChangeForChildContentContainer
public void systemLayoutFittingSizeDidChangeForChildContentContainer(@NotNull @NotNull 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. API-Since: 8.0- Specified by:
systemLayoutFittingSizeDidChangeForChildContentContainerin interfaceUIContentContainer
-
traitCollection
@NotNull public @NotNull UITraitCollection traitCollection()
Description copied from interface:UITraitEnvironmentAPI-Since: 8.0- Specified by:
traitCollectionin interfaceUITraitEnvironment
-
traitCollectionDidChange
@Deprecated public void traitCollectionDidChange(@Nullable @Nullable UITraitCollection previousTraitCollection)Deprecated.Description copied from interface:UITraitEnvironmentTo be overridden as needed to provide custom behavior when the environment's traits change. API-Since: 8.0 Deprecated-Since: 17.0 Deprecated-Message: Use the trait change registration APIs declared in the UITraitChangeObservable protocol- 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, @NotNull @NotNull 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. API-Since: 8.0- Specified by:
viewWillTransitionToSizeWithTransitionCoordinatorin interfaceUIContentContainer
-
willTransitionToTraitCollectionWithTransitionCoordinator
public void willTransitionToTraitCollectionWithTransitionCoordinator(@NotNull @NotNull UITraitCollection newCollection, @NotNull @NotNull 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. API-Since: 8.0- Specified by:
willTransitionToTraitCollectionWithTransitionCoordinatorin interfaceUIContentContainer
-
focusItemContainer
@Nullable public @Nullable UIFocusItemContainer focusItemContainer()
Description copied from interface:UIFocusEnvironmentThe container of any child focus items in this focus environment, or nil if no container exists. API-Since: 12.0- Specified by:
focusItemContainerin interfaceUIFocusEnvironment
-
parentFocusEnvironment
@Nullable public @Nullable 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. API-Since: 12.0- Specified by:
parentFocusEnvironmentin interfaceUIFocusEnvironment
-
focusGroupIdentifier
@Nullable public @Nullable 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. API-Since: 14.0- Specified by:
focusGroupIdentifierin interfaceUIFocusEnvironment
-
registerForTraitChangesWithAction
@NotNull public @NotNull UITraitChangeRegistration registerForTraitChangesWithAction(@NotNull @NotNull NSArray<?> traits, @NotNull @NotNull org.moe.natj.objc.SEL action)
Description copied from interface:UITraitChangeObservableConvenience method where the target is self.- Specified by:
registerForTraitChangesWithActionin interfaceUITraitChangeObservable
-
registerForTraitChangesWithHandler
@NotNull public @NotNull UITraitChangeRegistration registerForTraitChangesWithHandler(@NotNull @NotNull NSArray<?> traits, @NotNull UITraitChangeObservable.Block_registerForTraitChangesWithHandler handler)
- Specified by:
registerForTraitChangesWithHandlerin interfaceUITraitChangeObservable
-
registerForTraitChangesWithTargetAction
@NotNull public @NotNull UITraitChangeRegistration registerForTraitChangesWithTargetAction(@NotNull @NotNull NSArray<?> traits, @NotNull @NotNull java.lang.Object target, @NotNull @NotNull org.moe.natj.objc.SEL action)
Description copied from interface:UITraitChangeObservableThe action method you use with the following registration APIs may have zero, one, or two parameters. If the method accepts at least one parameter, the first parameter will be the trait environment whose traits are changing. If the method accepts two parameters, the second parameter will be the trait environment's previous trait collection before the change.- Specified by:
registerForTraitChangesWithTargetActionin interfaceUITraitChangeObservable
-
traitOverrides
@NotNull public @NotNull UITraitOverrides traitOverrides()
-
unregisterForTraitChanges
public void unregisterForTraitChanges(@NotNull @NotNull UITraitChangeRegistration registration)- Specified by:
unregisterForTraitChangesin interfaceUITraitChangeObservable
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-