Package apple.uikit
Class UICollectionViewController
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.uikit.UIViewController
-
- apple.uikit.UICollectionViewController
-
- All Implemented Interfaces:
NSCoding,NSExtensionRequestHandling,NSObject,UIActivityItemsConfigurationProviding,UIAppearanceContainer,UICollectionViewDataSource,UICollectionViewDelegate,UIContentContainer,UIFocusEnvironment,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIScrollViewDelegate,UIStateRestoring,UITraitChangeObservable,UITraitEnvironment,UIUserActivityRestoring
public class UICollectionViewController extends UIViewController implements UICollectionViewDelegate, UICollectionViewDataSource
API-Since: 6.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.uikit.UIViewController
UIViewController.Block_dismissViewControllerAnimatedCompletion, UIViewController.Block_presentViewControllerAnimatedCompletion, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_4, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_5
-
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.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UITraitChangeObservable
UITraitChangeObservable.Block_registerForTraitChangesWithHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUICollectionViewController(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()static UICollectionViewControlleralloc()static UICollectionViewControllerallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static voidattemptRotationToDeviceOrientation()Deprecated.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()booleanclearsSelectionOnViewWillAppear()Defaults to YES, and if YES, any selection is cleared in viewWillAppear: This property has no effect if the useLayoutToLayoutNavigationTransitions property is set to YESstatic voidclearTextInputContextIdentifier(@NotNull java.lang.String identifier)UICollectionViewcollectionView()booleancollectionViewCanEditItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)Editing Asks the delegate to verify that the given item is editable.booleancollectionViewCanFocusItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)Focus API-Since: 9.0booleancollectionViewCanMoveItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)API-Since: 9.0booleancollectionViewCanPerformActionForItemAtIndexPathWithSender(@NotNull UICollectionView collectionView, @NotNull org.moe.natj.objc.SEL action, @NotNull NSIndexPath indexPath, @Nullable java.lang.Object sender)Deprecated.booleancollectionViewCanPerformPrimaryActionForItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)Called to determine if a primary action can be performed for the item at the given indexPath.@NotNull UICollectionViewCellcollectionViewCellForItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)The cell that is returned must be retrieved from a call to -dequeueReusableCellWithReuseIdentifier:forIndexPath:@Nullable UITargetedPreviewcollectionViewContextMenuConfigurationDismissalPreviewForItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull UIContextMenuConfiguration configuration, @NotNull NSIndexPath indexPath)Called when a context menu presented from this collection view is dismissed.@Nullable UIContextMenuConfigurationcollectionViewContextMenuConfigurationForItemAtIndexPathPoint(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath, CGPoint point)Deprecated.@Nullable UIContextMenuConfigurationcollectionViewContextMenuConfigurationForItemsAtIndexPathsPoint(@NotNull UICollectionView collectionView, @NotNull NSArray<? extends NSIndexPath> indexPaths, CGPoint point)Called when a context menu is invoked from this collection view.@Nullable UITargetedPreviewcollectionViewContextMenuConfigurationHighlightPreviewForItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull UIContextMenuConfiguration configuration, @NotNull NSIndexPath indexPath)Called when a context menu interaction begins in this collection view to request a preview for the interaction's initial highlight effect.voidcollectionViewDidBeginMultipleSelectionInteractionAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)Called right after allowsMultipleSelection is set to YES if -collectionView:shouldBeginMultipleSelectionInteractionAtIndexPath: returned YES.voidcollectionViewDidDeselectItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)voidcollectionViewDidEndDisplayingCellForItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull UICollectionViewCell cell, @NotNull NSIndexPath indexPath)voidcollectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath(@NotNull UICollectionView collectionView, @NotNull UICollectionReusableView view, @NotNull java.lang.String elementKind, @NotNull NSIndexPath indexPath)voidcollectionViewDidEndMultipleSelectionInteraction(@NotNull UICollectionView collectionView)Called when the multi-select interaction ends.voidcollectionViewDidHighlightItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)voidcollectionViewDidSelectItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)voidcollectionViewDidUnhighlightItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)voidcollectionViewDidUpdateFocusInContextWithAnimationCoordinator(@NotNull UICollectionView collectionView, @NotNull UICollectionViewFocusUpdateContext context, @NotNull UIFocusAnimationCoordinator coordinator)API-Since: 9.0@NotNull NSIndexPathcollectionViewIndexPathForIndexTitleAtIndex(@NotNull UICollectionView collectionView, @NotNull java.lang.String title, long index)Returns the index path that corresponds to the given title / index.@NotNull UICollectionViewLayoutcollectionViewLayout()The layout object is needed when defining interactive layout to layout transitions.voidcollectionViewMoveItemAtIndexPathToIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath sourceIndexPath, @NotNull NSIndexPath destinationIndexPath)API-Since: 9.0longcollectionViewNumberOfItemsInSection(@NotNull UICollectionView collectionView, long section)voidcollectionViewPerformActionForItemAtIndexPathWithSender(@NotNull UICollectionView collectionView, @NotNull org.moe.natj.objc.SEL action, @NotNull NSIndexPath indexPath, @Nullable java.lang.Object sender)Deprecated.voidcollectionViewPerformPrimaryActionForItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)Called when the primary action should be performed for the item at the given indexPath.@Nullable UITargetedPreviewcollectionViewPreviewForDismissingContextMenuWithConfiguration(@NotNull UICollectionView collectionView, @NotNull UIContextMenuConfiguration configuration)Deprecated.@Nullable UITargetedPreviewcollectionViewPreviewForHighlightingContextMenuWithConfiguration(@NotNull UICollectionView collectionView, @NotNull UIContextMenuConfiguration configuration)Deprecated.@Nullable UIWindowSceneActivationConfigurationcollectionViewSceneActivationConfigurationForItemAtIndexPathPoint(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath, CGPoint point)Return a valid @c UIWindowSceneActivationConfiguration to allow for the cell to be expanded into a new scene.booleancollectionViewSelectionFollowsFocusForItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)Determines if the item at the specified index path should also become selected when focus moves to it.booleancollectionViewShouldBeginMultipleSelectionInteractionAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)Allows a two-finger pan gesture to automatically enable allowsMultipleSelection and start selecting multiple cells.booleancollectionViewShouldDeselectItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)called when the user taps on an already-selected item in multi-select modebooleancollectionViewShouldHighlightItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)Methods for notification of selection/deselection and highlight/unhighlight events.booleancollectionViewShouldSelectItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)booleancollectionViewShouldShowMenuForItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath)Deprecated.booleancollectionViewShouldSpringLoadItemAtIndexPathWithContext(@NotNull UICollectionView collectionView, @NotNull NSIndexPath indexPath, @NotNull UISpringLoadedInteractionContext context)Allows opting-out of spring loading for an particular item.booleancollectionViewShouldUpdateFocusInContext(@NotNull UICollectionView collectionView, @NotNull UICollectionViewFocusUpdateContext context)API-Since: 9.0CGPointcollectionViewTargetContentOffsetForProposedContentOffset(@NotNull UICollectionView collectionView, CGPoint proposedContentOffset)customize the content offset to be applied during transition or update animations API-Since: 9.0@NotNull NSIndexPathcollectionViewTargetIndexPathForMoveFromItemAtIndexPathToProposedIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath currentIndexPath, @NotNull NSIndexPath proposedIndexPath)Deprecated.@NotNull NSIndexPathcollectionViewTargetIndexPathForMoveOfItemFromOriginalIndexPathAtCurrentIndexPathToProposedIndexPath(@NotNull UICollectionView collectionView, @NotNull NSIndexPath originalIndexPath, @NotNull NSIndexPath currentIndexPath, @NotNull NSIndexPath proposedIndexPath)API-Since: 15.0@NotNull UICollectionViewTransitionLayoutcollectionViewTransitionLayoutForOldLayoutNewLayout(@NotNull UICollectionView collectionView, @NotNull UICollectionViewLayout fromLayout, @NotNull UICollectionViewLayout toLayout)support for custom transition layout@NotNull UICollectionReusableViewcollectionViewViewForSupplementaryElementOfKindAtIndexPath(@NotNull UICollectionView collectionView, @NotNull java.lang.String kind, @NotNull NSIndexPath indexPath)The view that is returned must be retrieved from a call to -dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:voidcollectionViewWillDisplayCellForItemAtIndexPath(@NotNull UICollectionView collectionView, @NotNull UICollectionViewCell cell, @NotNull NSIndexPath indexPath)API-Since: 8.0voidcollectionViewWillDisplayContextMenuWithConfigurationAnimator(@NotNull UICollectionView collectionView, @NotNull UIContextMenuConfiguration configuration, @Nullable UIContextMenuInteractionAnimating animator)Called when the collection view is about to display a menu.voidcollectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath(@NotNull UICollectionView collectionView, @NotNull UICollectionReusableView view, @NotNull java.lang.String elementKind, @NotNull NSIndexPath indexPath)API-Since: 8.0voidcollectionViewWillEndContextMenuInteractionWithConfigurationAnimator(@NotNull UICollectionView collectionView, @NotNull UIContextMenuConfiguration configuration, @Nullable UIContextMenuInteractionAnimating animator)Called when the collection view's context menu interaction is about to end.voidcollectionViewWillPerformPreviewActionForMenuWithConfigurationAnimator(@NotNull UICollectionView collectionView, @NotNull UIContextMenuConfiguration configuration, @NotNull UIContextMenuInteractionCommitAnimating animator)Called when the interaction is about to "commit" in response to the user tapping the preview.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()@Nullable NSIndexPathindexPathForPreferredFocusedViewInCollectionView(@NotNull UICollectionView collectionView)API-Since: 9.0@Nullable NSArray<java.lang.String>indexTitlesForCollectionView(@NotNull UICollectionView collectionView)Returns a list of index titles to display in the index view (e.g.UICollectionViewControllerinit()UICollectionViewControllerinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERUICollectionViewControllerinitWithCollectionViewLayout(@NotNull UICollectionViewLayout layout)UICollectionViewControllerinitWithNibNameBundle(@Nullable java.lang.String nibNameOrNil, @Nullable NSBundle nibBundleOrNil)The designated initializer.booleaninstallsStandardGestureForInteractiveMovement()Defaults to YES, and if YES, a system standard reordering gesture is used to drive collection view reordering API-Since: 9.0static 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 UICollectionViewControllernew_objc()longnumberOfSectionsInCollectionView(@NotNull UICollectionView collectionView)static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidscrollViewDidChangeAdjustedContentInset(@NotNull UIScrollView scrollView)Also see -[UIScrollView adjustedContentInsetDidChange] API-Since: 11.0voidscrollViewDidEndDecelerating(@NotNull UIScrollView scrollView)called when scroll view grinds to a haltvoidscrollViewDidEndDraggingWillDecelerate(@NotNull UIScrollView scrollView, boolean decelerate)called on finger up if the user dragged.voidscrollViewDidEndScrollingAnimation(@NotNull UIScrollView scrollView)called when setContentOffset/scrollRectVisible:animated: finishes.voidscrollViewDidEndZoomingWithViewAtScale(@NotNull UIScrollView scrollView, @Nullable UIView view, double scale)scale between minimum and maximum.voidscrollViewDidScroll(@NotNull UIScrollView scrollView)any offset changesvoidscrollViewDidScrollToTop(@NotNull UIScrollView scrollView)called when scrolling animation finished.voidscrollViewDidZoom(@NotNull UIScrollView scrollView)any zoom scale changes API-Since: 3.2booleanscrollViewShouldScrollToTop(@NotNull UIScrollView scrollView)return a yes if you want to scroll to the top.voidscrollViewWillBeginDecelerating(@NotNull UIScrollView scrollView)called on finger up as we are movingvoidscrollViewWillBeginDragging(@NotNull UIScrollView scrollView)called on start of dragging (may require some time and or distance to move)voidscrollViewWillBeginZoomingWithView(@NotNull UIScrollView scrollView, @Nullable UIView view)called before the scroll view begins zooming its content API-Since: 3.2voidscrollViewWillEndDraggingWithVelocityTargetContentOffset(@NotNull UIScrollView scrollView, CGPoint velocity, @NotNull CGPoint targetContentOffset)called on finger up if the user dragged.voidsetClearsSelectionOnViewWillAppear(boolean value)Defaults to YES, and if YES, any selection is cleared in viewWillAppear: This property has no effect if the useLayoutToLayoutNavigationTransitions property is set to YESvoidsetCollectionView(UICollectionView value)voidsetInstallsStandardGestureForInteractiveMovement(boolean value)Defaults to YES, and if YES, a system standard reordering gesture is used to drive collection view reordering API-Since: 9.0voidsetUseLayoutToLayoutNavigationTransitions(boolean value)Set to YES before pushing a a UICollectionViewController onto a UINavigationController.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()booleanuseLayoutToLayoutNavigationTransitions()Set to YES before pushing a a UICollectionViewController onto a UINavigationController.static booleanuseStoredAccessor()Deprecated.static longversion_static()@Nullable UIViewviewForZoomingInScrollView(@NotNull UIScrollView scrollView)return a view that will be scaled.-
Methods inherited from class apple.uikit.UIViewController
activePresentationController, addChildViewController, additionalSafeAreaInsets, addKeyCommand, allowedChildViewControllersForUnwindingFromSource, applicationFinishedRestoringState, automaticallyAdjustsScrollViewInsets, automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers, beginAppearanceTransitionAnimated, beginRequestWithExtensionContext, bottomLayoutGuide, canPerformUnwindSegueActionFromViewControllerSender, canPerformUnwindSegueActionFromViewControllerWithSender, childViewControllerContainingSegueSource, childViewControllerForHomeIndicatorAutoHidden, childViewControllerForPointerLock, childViewControllerForScreenEdgesDeferringSystemGestures, childViewControllerForStatusBarHidden, childViewControllerForStatusBarStyle, childViewControllers, collapseSecondaryViewControllerForSplitViewController, contentScrollViewForEdge, contentSizeForViewInPopover, contentUnavailableConfiguration, contentUnavailableConfigurationState, decodeRestorableStateWithCoder, definesPresentationContext, didAnimateFirstHalfOfRotationToInterfaceOrientation, didMoveToParentViewController, didReceiveMemoryWarning, didRotateFromInterfaceOrientation, didUpdateFocusInContextWithAnimationCoordinator, disablesAutomaticKeyboardDismissal, dismissModalViewControllerAnimated, dismissMoviePlayerViewControllerAnimated, dismissViewControllerAnimatedCompletion, edgesForExtendedLayout, editButtonItem, encodeRestorableStateWithCoder, encodeWithCoder, endAppearanceTransition, extendedLayoutIncludesOpaqueBars, extensionContext, focusGroupIdentifier, focusItemContainer, hidesBottomBarWhenPushed, interactionActivityTrackingBaseName, interfaceOrientation, isBeingDismissed, isBeingPresented, isEditing, isModalInPopover, isModalInPresentation, isMovingFromParentViewController, isMovingToParentViewController, isViewLoaded, loadView, loadViewIfNeeded, modalPresentationCapturesStatusBarAppearance, modalPresentationStyle, modalTransitionStyle, modalViewController, navigationController, navigationItem, nibBundle, nibName, objectRestorationClass, overrideTraitCollectionForChildViewController, overrideUserInterfaceStyle, parentFocusEnvironment, parentViewController, performsActionsWhilePresentingModally, performSegueWithIdentifierSender, popoverPresentationController, preferredContentSize, preferredContentSizeDidChangeForChildContentContainer, preferredFocusedView, preferredFocusEnvironments, preferredInterfaceOrientationForPresentation, preferredScreenEdgesDeferringSystemGestures, preferredStatusBarStyle, preferredStatusBarUpdateAnimation, prefersHomeIndicatorAutoHidden, prefersPointerLocked, prefersStatusBarHidden, prepareForSegueSender, presentationController, presentedViewController, presentingViewController, presentModalViewControllerAnimated, presentMoviePlayerViewControllerAnimated, presentViewControllerAnimatedCompletion, previewActionItems, providesPresentationContextTransitionStyle, registerForPreviewingWithDelegateSourceView, registerForTraitChangesWithAction, registerForTraitChangesWithHandler, registerForTraitChangesWithTargetAction, removeFromParentViewController, removeKeyCommand, restorationClass, restorationIdentifier, restorationParent, restoresFocusAfterTransition, rotatingFooterView, rotatingHeaderView, searchDisplayController, segueForUnwindingToViewControllerFromViewControllerIdentifier, separateSecondaryViewControllerForSplitViewController, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setContentScrollViewForEdge, setContentSizeForViewInPopover, setContentUnavailableConfiguration, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditingAnimated, setExtendedLayoutIncludesOpaqueBars, setFocusGroupIdentifier, setHidesBottomBarWhenPushed, setInteractionActivityTrackingBaseName, setModalInPopover, setModalInPresentation, setModalPresentationCapturesStatusBarAppearance, setModalPresentationStyle, setModalTransitionStyle, setNeedsFocusUpdate, setNeedsStatusBarAppearanceUpdate, setNeedsUpdateContentUnavailableConfiguration, setNeedsUpdateOfHomeIndicatorAutoHidden, setNeedsUpdateOfPrefersPointerLocked, setNeedsUpdateOfScreenEdgesDeferringSystemGestures, setNeedsUpdateOfSupportedInterfaceOrientations, setOverrideTraitCollectionForChildViewController, setOverrideUserInterfaceStyle, setPreferredContentSize, setProvidesPresentationContextTransitionStyle, setRestorationClass, setRestorationClass_unsafe, setRestorationIdentifier, setRestoresFocusAfterTransition, setTabBarItem, setTitle, setToolbarItems, setToolbarItemsAnimated, setTransitioningDelegate, setTransitioningDelegate_unsafe, setView, setViewRespectsSystemMinimumLayoutMargins, setWantsFullScreenLayout, sheetPresentationController, shouldAutomaticallyForwardAppearanceMethods, shouldAutomaticallyForwardRotationMethods, shouldAutorotate, shouldAutorotateToInterfaceOrientation, shouldPerformSegueWithIdentifierSender, shouldUpdateFocusInContext, showDetailViewControllerSender, showViewControllerSender, sizeForChildContentContainerWithParentContainerSize, splitViewController, storyboard, supportedInterfaceOrientations, systemLayoutFittingSizeDidChangeForChildContentContainer, systemMinimumLayoutMargins, tabBarController, tabBarItem, targetViewControllerForActionSender, title, toolbarItems, topLayoutGuide, traitCollection, traitCollectionDidChange, traitOverrides, transitionCoordinator, transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion, transitioningDelegate, unregisterForPreviewingWithContext, unregisterForTraitChanges, unwindForSegueTowardsViewController, updateContentUnavailableConfigurationUsingState, updateFocusIfNeeded, updateTraitsIfNeeded, updateViewConstraints, view, viewControllerForUnwindSegueActionFromViewControllerWithSender, viewDidAppear, viewDidDisappear, viewDidLayoutSubviews, viewDidLoad, viewDidUnload, viewIfLoaded, viewIsAppearing, viewLayoutMarginsDidChange, viewRespectsSystemMinimumLayoutMargins, viewSafeAreaInsetsDidChange, viewWillAppear, viewWillDisappear, viewWillLayoutSubviews, viewWillTransitionToSizeWithTransitionCoordinator, viewWillUnload, wantsFullScreenLayout, willAnimateFirstHalfOfRotationToInterfaceOrientationDuration, willAnimateRotationToInterfaceOrientationDuration, willAnimateSecondHalfOfRotationFromInterfaceOrientationDuration, willMoveToParentViewController, willRotateToInterfaceOrientationDuration, willTransitionToTraitCollectionWithTransitionCoordinator
-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, duplicate, editingInteractionConfiguration, export, find, findAndReplace, findNext, findPrevious, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, move, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, rename, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, useSelectionForFind, validateCommand
-
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 UICollectionViewController alloc()
-
allocWithZone
public static UICollectionViewController allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
attemptRotationToDeviceOrientation
@Deprecated public static void attemptRotationToDeviceOrientation()
Deprecated.
-
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()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(@NotNull @NotNull java.lang.String identifier)
-
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 UICollectionViewController 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()
-
clearsSelectionOnViewWillAppear
public boolean clearsSelectionOnViewWillAppear()
Defaults to YES, and if YES, any selection is cleared in viewWillAppear: This property has no effect if the useLayoutToLayoutNavigationTransitions property is set to YES
-
collectionView
public UICollectionView collectionView()
-
collectionViewCanFocusItemAtIndexPath
public boolean collectionViewCanFocusItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)Description copied from interface:UICollectionViewDelegateFocus API-Since: 9.0- Specified by:
collectionViewCanFocusItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewCanMoveItemAtIndexPath
public boolean collectionViewCanMoveItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)Description copied from interface:UICollectionViewDataSourceAPI-Since: 9.0- Specified by:
collectionViewCanMoveItemAtIndexPathin interfaceUICollectionViewDataSource
-
collectionViewCanPerformActionForItemAtIndexPathWithSender
@Deprecated public boolean collectionViewCanPerformActionForItemAtIndexPathWithSender(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull org.moe.natj.objc.SEL action, @NotNull @NotNull NSIndexPath indexPath, @Nullable @Nullable java.lang.Object sender)Deprecated.Description copied from interface:UICollectionViewDelegateAPI-Since: 6.0 Deprecated-Since: 13.0- Specified by:
collectionViewCanPerformActionForItemAtIndexPathWithSenderin interfaceUICollectionViewDelegate
-
collectionViewCellForItemAtIndexPath
@NotNull public @NotNull UICollectionViewCell collectionViewCellForItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)
Description copied from interface:UICollectionViewDataSourceThe cell that is returned must be retrieved from a call to -dequeueReusableCellWithReuseIdentifier:forIndexPath:- Specified by:
collectionViewCellForItemAtIndexPathin interfaceUICollectionViewDataSource
-
collectionViewDidDeselectItemAtIndexPath
public void collectionViewDidDeselectItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)- Specified by:
collectionViewDidDeselectItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewDidEndDisplayingCellForItemAtIndexPath
public void collectionViewDidEndDisplayingCellForItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UICollectionViewCell cell, @NotNull @NotNull NSIndexPath indexPath)- Specified by:
collectionViewDidEndDisplayingCellForItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath
public void collectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UICollectionReusableView view, @NotNull @NotNull java.lang.String elementKind, @NotNull @NotNull NSIndexPath indexPath)- Specified by:
collectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewDidHighlightItemAtIndexPath
public void collectionViewDidHighlightItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)- Specified by:
collectionViewDidHighlightItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewDidSelectItemAtIndexPath
public void collectionViewDidSelectItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)- Specified by:
collectionViewDidSelectItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewDidUnhighlightItemAtIndexPath
public void collectionViewDidUnhighlightItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)- Specified by:
collectionViewDidUnhighlightItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewDidUpdateFocusInContextWithAnimationCoordinator
public void collectionViewDidUpdateFocusInContextWithAnimationCoordinator(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UICollectionViewFocusUpdateContext context, @NotNull @NotNull UIFocusAnimationCoordinator coordinator)Description copied from interface:UICollectionViewDelegateAPI-Since: 9.0- Specified by:
collectionViewDidUpdateFocusInContextWithAnimationCoordinatorin interfaceUICollectionViewDelegate
-
collectionViewMoveItemAtIndexPathToIndexPath
public void collectionViewMoveItemAtIndexPathToIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath sourceIndexPath, @NotNull @NotNull NSIndexPath destinationIndexPath)Description copied from interface:UICollectionViewDataSourceAPI-Since: 9.0- Specified by:
collectionViewMoveItemAtIndexPathToIndexPathin interfaceUICollectionViewDataSource
-
collectionViewNumberOfItemsInSection
public long collectionViewNumberOfItemsInSection(@NotNull @NotNull UICollectionView collectionView, long section)- Specified by:
collectionViewNumberOfItemsInSectionin interfaceUICollectionViewDataSource
-
collectionViewPerformActionForItemAtIndexPathWithSender
@Deprecated public void collectionViewPerformActionForItemAtIndexPathWithSender(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull org.moe.natj.objc.SEL action, @NotNull @NotNull NSIndexPath indexPath, @Nullable @Nullable java.lang.Object sender)Deprecated.Description copied from interface:UICollectionViewDelegateAPI-Since: 6.0 Deprecated-Since: 13.0- Specified by:
collectionViewPerformActionForItemAtIndexPathWithSenderin interfaceUICollectionViewDelegate
-
collectionViewShouldDeselectItemAtIndexPath
public boolean collectionViewShouldDeselectItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)Description copied from interface:UICollectionViewDelegatecalled when the user taps on an already-selected item in multi-select mode- Specified by:
collectionViewShouldDeselectItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewShouldHighlightItemAtIndexPath
public boolean collectionViewShouldHighlightItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)Description copied from interface:UICollectionViewDelegateMethods for notification of selection/deselection and highlight/unhighlight events. The sequence of calls leading to selection from a user touch is: (when the touch begins) 1. -collectionView:shouldHighlightItemAtIndexPath: 2. -collectionView:didHighlightItemAtIndexPath: (when the touch lifts) 3. -collectionView:shouldSelectItemAtIndexPath: or -collectionView:shouldDeselectItemAtIndexPath: 4. -collectionView:didSelectItemAtIndexPath: or -collectionView:didDeselectItemAtIndexPath: 5. -collectionView:didUnhighlightItemAtIndexPath:- Specified by:
collectionViewShouldHighlightItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewShouldSelectItemAtIndexPath
public boolean collectionViewShouldSelectItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)- Specified by:
collectionViewShouldSelectItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewShouldShowMenuForItemAtIndexPath
@Deprecated public boolean collectionViewShouldShowMenuForItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)Deprecated.Description copied from interface:UICollectionViewDelegateThese methods provide support for copy/paste actions on cells. All three should be implemented if any are. API-Since: 6.0 Deprecated-Since: 13.0- Specified by:
collectionViewShouldShowMenuForItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewShouldUpdateFocusInContext
public boolean collectionViewShouldUpdateFocusInContext(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UICollectionViewFocusUpdateContext context)Description copied from interface:UICollectionViewDelegateAPI-Since: 9.0- Specified by:
collectionViewShouldUpdateFocusInContextin interfaceUICollectionViewDelegate
-
collectionViewTargetContentOffsetForProposedContentOffset
public CGPoint collectionViewTargetContentOffsetForProposedContentOffset(@NotNull @NotNull UICollectionView collectionView, CGPoint proposedContentOffset)
Description copied from interface:UICollectionViewDelegatecustomize the content offset to be applied during transition or update animations API-Since: 9.0- Specified by:
collectionViewTargetContentOffsetForProposedContentOffsetin interfaceUICollectionViewDelegate
-
collectionViewTargetIndexPathForMoveFromItemAtIndexPathToProposedIndexPath
@NotNull @Deprecated public @NotNull NSIndexPath collectionViewTargetIndexPathForMoveFromItemAtIndexPathToProposedIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath currentIndexPath, @NotNull @NotNull NSIndexPath proposedIndexPath)
Deprecated.Description copied from interface:UICollectionViewDelegateAPI-Since: 9.0 Deprecated-Since: 15.0- Specified by:
collectionViewTargetIndexPathForMoveFromItemAtIndexPathToProposedIndexPathin interfaceUICollectionViewDelegate
-
collectionViewTransitionLayoutForOldLayoutNewLayout
@NotNull public @NotNull UICollectionViewTransitionLayout collectionViewTransitionLayoutForOldLayoutNewLayout(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UICollectionViewLayout fromLayout, @NotNull @NotNull UICollectionViewLayout toLayout)
Description copied from interface:UICollectionViewDelegatesupport for custom transition layout- Specified by:
collectionViewTransitionLayoutForOldLayoutNewLayoutin interfaceUICollectionViewDelegate
-
collectionViewViewForSupplementaryElementOfKindAtIndexPath
@NotNull public @NotNull UICollectionReusableView collectionViewViewForSupplementaryElementOfKindAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull java.lang.String kind, @NotNull @NotNull NSIndexPath indexPath)
Description copied from interface:UICollectionViewDataSourceThe view that is returned must be retrieved from a call to -dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:- Specified by:
collectionViewViewForSupplementaryElementOfKindAtIndexPathin interfaceUICollectionViewDataSource
-
collectionViewWillDisplayCellForItemAtIndexPath
public void collectionViewWillDisplayCellForItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UICollectionViewCell cell, @NotNull @NotNull NSIndexPath indexPath)Description copied from interface:UICollectionViewDelegateAPI-Since: 8.0- Specified by:
collectionViewWillDisplayCellForItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath
public void collectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UICollectionReusableView view, @NotNull @NotNull java.lang.String elementKind, @NotNull @NotNull NSIndexPath indexPath)Description copied from interface:UICollectionViewDelegateAPI-Since: 8.0- Specified by:
collectionViewWillDisplaySupplementaryViewForElementKindAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewLayout
@NotNull public @NotNull UICollectionViewLayout collectionViewLayout()
The layout object is needed when defining interactive layout to layout transitions. API-Since: 7.0
-
indexPathForPreferredFocusedViewInCollectionView
@Nullable public @Nullable NSIndexPath indexPathForPreferredFocusedViewInCollectionView(@NotNull @NotNull UICollectionView collectionView)
Description copied from interface:UICollectionViewDelegateAPI-Since: 9.0- Specified by:
indexPathForPreferredFocusedViewInCollectionViewin interfaceUICollectionViewDelegate
-
init
public UICollectionViewController init()
- Overrides:
initin classUIViewController
-
initWithCoder
public UICollectionViewController initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classUIViewController
-
initWithCollectionViewLayout
public UICollectionViewController initWithCollectionViewLayout(@NotNull @NotNull UICollectionViewLayout layout)
-
initWithNibNameBundle
public UICollectionViewController initWithNibNameBundle(@Nullable @Nullable java.lang.String nibNameOrNil, @Nullable @Nullable NSBundle nibBundleOrNil)
Description copied from class:UIViewControllerThe designated initializer. If you subclass UIViewController, you must call the super implementation of this method, even if you aren't using a NIB. (As a convenience, the default init method will do this for you, and specify nil for both of this methods arguments.) In the specified NIB, the File's Owner proxy should have its class set to your view controller subclass, with the view outlet connected to the main view. If you invoke this method with a nil nib name, then this class' -loadView method will attempt to load a NIB whose name is the same as your view controller's class. If no such NIB in fact exists then you must either call -setView: before -view is invoked, or override the -loadView method to set up your views programatically.- Overrides:
initWithNibNameBundlein classUIViewController
-
installsStandardGestureForInteractiveMovement
public boolean installsStandardGestureForInteractiveMovement()
Defaults to YES, and if YES, a system standard reordering gesture is used to drive collection view reordering API-Since: 9.0
-
numberOfSectionsInCollectionView
public long numberOfSectionsInCollectionView(@NotNull @NotNull UICollectionView collectionView)- Specified by:
numberOfSectionsInCollectionViewin interfaceUICollectionViewDataSource
-
scrollViewDidEndDecelerating
public void scrollViewDidEndDecelerating(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegatecalled when scroll view grinds to a halt- Specified by:
scrollViewDidEndDeceleratingin interfaceUIScrollViewDelegate
-
scrollViewDidEndDraggingWillDecelerate
public void scrollViewDidEndDraggingWillDecelerate(@NotNull @NotNull UIScrollView scrollView, boolean decelerate)Description copied from interface:UIScrollViewDelegatecalled on finger up if the user dragged. decelerate is true if it will continue moving afterwards- Specified by:
scrollViewDidEndDraggingWillDeceleratein interfaceUIScrollViewDelegate
-
scrollViewDidEndScrollingAnimation
public void scrollViewDidEndScrollingAnimation(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegatecalled when setContentOffset/scrollRectVisible:animated: finishes. not called if not animating- Specified by:
scrollViewDidEndScrollingAnimationin interfaceUIScrollViewDelegate
-
scrollViewDidEndZoomingWithViewAtScale
public void scrollViewDidEndZoomingWithViewAtScale(@NotNull @NotNull UIScrollView scrollView, @Nullable @Nullable UIView view, double scale)Description copied from interface:UIScrollViewDelegatescale between minimum and maximum. called after any 'bounce' animations- Specified by:
scrollViewDidEndZoomingWithViewAtScalein interfaceUIScrollViewDelegate
-
scrollViewDidScroll
public void scrollViewDidScroll(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegateany offset changes- Specified by:
scrollViewDidScrollin interfaceUIScrollViewDelegate
-
scrollViewDidScrollToTop
public void scrollViewDidScrollToTop(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegatecalled when scrolling animation finished. may be called immediately if already at top- Specified by:
scrollViewDidScrollToTopin interfaceUIScrollViewDelegate
-
scrollViewDidZoom
public void scrollViewDidZoom(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegateany zoom scale changes API-Since: 3.2- Specified by:
scrollViewDidZoomin interfaceUIScrollViewDelegate
-
scrollViewShouldScrollToTop
public boolean scrollViewShouldScrollToTop(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegatereturn a yes if you want to scroll to the top. if not defined, assumes YES- Specified by:
scrollViewShouldScrollToTopin interfaceUIScrollViewDelegate
-
scrollViewWillBeginDecelerating
public void scrollViewWillBeginDecelerating(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegatecalled on finger up as we are moving- Specified by:
scrollViewWillBeginDeceleratingin interfaceUIScrollViewDelegate
-
scrollViewWillBeginDragging
public void scrollViewWillBeginDragging(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegatecalled on start of dragging (may require some time and or distance to move)- Specified by:
scrollViewWillBeginDraggingin interfaceUIScrollViewDelegate
-
scrollViewWillBeginZoomingWithView
public void scrollViewWillBeginZoomingWithView(@NotNull @NotNull UIScrollView scrollView, @Nullable @Nullable UIView view)Description copied from interface:UIScrollViewDelegatecalled before the scroll view begins zooming its content API-Since: 3.2- Specified by:
scrollViewWillBeginZoomingWithViewin interfaceUIScrollViewDelegate
-
scrollViewWillEndDraggingWithVelocityTargetContentOffset
public void scrollViewWillEndDraggingWithVelocityTargetContentOffset(@NotNull @NotNull UIScrollView scrollView, CGPoint velocity, @NotNull @NotNull CGPoint targetContentOffset)Description copied from interface:UIScrollViewDelegatecalled on finger up if the user dragged. velocity is in points/millisecond. targetContentOffset may be changed to adjust where the scroll view comes to rest API-Since: 5.0- Specified by:
scrollViewWillEndDraggingWithVelocityTargetContentOffsetin interfaceUIScrollViewDelegate
-
setClearsSelectionOnViewWillAppear
public void setClearsSelectionOnViewWillAppear(boolean value)
Defaults to YES, and if YES, any selection is cleared in viewWillAppear: This property has no effect if the useLayoutToLayoutNavigationTransitions property is set to YES
-
setCollectionView
public void setCollectionView(UICollectionView value)
-
setInstallsStandardGestureForInteractiveMovement
public void setInstallsStandardGestureForInteractiveMovement(boolean value)
Defaults to YES, and if YES, a system standard reordering gesture is used to drive collection view reordering API-Since: 9.0
-
setUseLayoutToLayoutNavigationTransitions
public void setUseLayoutToLayoutNavigationTransitions(boolean value)
Set to YES before pushing a a UICollectionViewController onto a UINavigationController. The top view controller of the navigation controller must be a UICollectionViewController that was pushed with this property set to NO. This property should NOT be changed on a UICollectionViewController that has already been pushed onto a UINavigationController. API-Since: 7.0
-
useLayoutToLayoutNavigationTransitions
public boolean useLayoutToLayoutNavigationTransitions()
Set to YES before pushing a a UICollectionViewController onto a UINavigationController. The top view controller of the navigation controller must be a UICollectionViewController that was pushed with this property set to NO. This property should NOT be changed on a UICollectionViewController that has already been pushed onto a UINavigationController. API-Since: 7.0
-
viewForZoomingInScrollView
@Nullable public @Nullable UIView viewForZoomingInScrollView(@NotNull @NotNull UIScrollView scrollView)
Description copied from interface:UIScrollViewDelegatereturn a view that will be scaled. if delegate returns nil, nothing happens- Specified by:
viewForZoomingInScrollViewin interfaceUIScrollViewDelegate
-
collectionViewIndexPathForIndexTitleAtIndex
@NotNull public @NotNull NSIndexPath collectionViewIndexPathForIndexTitleAtIndex(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull java.lang.String title, long index)
Description copied from interface:UICollectionViewDataSourceReturns the index path that corresponds to the given title / index. (e.g. "B",1) Return an index path with a single index to indicate an entire section, instead of a specific item. API-Since: 14.0- Specified by:
collectionViewIndexPathForIndexTitleAtIndexin interfaceUICollectionViewDataSource
-
collectionViewShouldSpringLoadItemAtIndexPathWithContext
public boolean collectionViewShouldSpringLoadItemAtIndexPathWithContext(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath, @NotNull @NotNull UISpringLoadedInteractionContext context)Description copied from interface:UICollectionViewDelegateAllows opting-out of spring loading for an particular item. If you want the interaction effect on a different subview of the spring loaded cell, modify the context.targetView property. The default is the cell. If this method is not implemented, the default is YES. API-Since: 11.0- Specified by:
collectionViewShouldSpringLoadItemAtIndexPathWithContextin interfaceUICollectionViewDelegate
-
indexTitlesForCollectionView
@Nullable public @Nullable NSArray<java.lang.String> indexTitlesForCollectionView(@NotNull @NotNull UICollectionView collectionView)
Description copied from interface:UICollectionViewDataSourceReturns a list of index titles to display in the index view (e.g. ["A", "B", "C" ... "Z", "#"]) API-Since: 14.0- Specified by:
indexTitlesForCollectionViewin interfaceUICollectionViewDataSource
-
scrollViewDidChangeAdjustedContentInset
public void scrollViewDidChangeAdjustedContentInset(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegateAlso see -[UIScrollView adjustedContentInsetDidChange] API-Since: 11.0- Specified by:
scrollViewDidChangeAdjustedContentInsetin interfaceUIScrollViewDelegate
-
collectionViewContextMenuConfigurationForItemAtIndexPathPoint
@Nullable @Deprecated public @Nullable UIContextMenuConfiguration collectionViewContextMenuConfigurationForItemAtIndexPathPoint(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath, CGPoint point)
Deprecated.Description copied from interface:UICollectionViewDelegateCalled when the interaction begins.- Specified by:
collectionViewContextMenuConfigurationForItemAtIndexPathPointin interfaceUICollectionViewDelegate- Parameters:
collectionView- The @c UICollectionView.indexPath- IndexPath of the item for which a configuration is being requested.point- Touch location in the collection view's coordinate space- Returns:
- A UIContextMenuConfiguration describing the menu to be presented. Return nil to prevent the interaction from beginning. Returning an empty configuration causes the interaction to begin then fail with a cancellation effect. You might use this to indicate to users that it's possible for a menu to be presented from this element, but that there are no actions to present at this particular time. If the non-deprecated replacement for the configuration, highlight preview, or dismissal preview methods is implemented this method is not called. API-Since: 13.0 Deprecated-Since: 16.0
-
collectionViewDidBeginMultipleSelectionInteractionAtIndexPath
public void collectionViewDidBeginMultipleSelectionInteractionAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)Description copied from interface:UICollectionViewDelegateCalled right after allowsMultipleSelection is set to YES if -collectionView:shouldBeginMultipleSelectionInteractionAtIndexPath: returned YES. In your app, this would be a good opportunity to update the state of your UI to reflect the fact that the user is now selecting multiple items at once; such as updating buttons to say "Done" instead of "Select"/"Edit", for instance. API-Since: 13.0- Specified by:
collectionViewDidBeginMultipleSelectionInteractionAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewPreviewForDismissingContextMenuWithConfiguration
@Nullable @Deprecated public @Nullable UITargetedPreview collectionViewPreviewForDismissingContextMenuWithConfiguration(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UIContextMenuConfiguration configuration)
Deprecated.Description copied from interface:UICollectionViewDelegateCalled when the interaction is about to dismiss. Return a UITargetedPreview describing the desired dismissal target. The interaction will animate the presented menu to the target. Use this to customize the dismissal animation. If the non-deprecated replacement for the configuration, highlight preview, or dismissal preview methods is implemented this method is not called.- Specified by:
collectionViewPreviewForDismissingContextMenuWithConfigurationin interfaceUICollectionViewDelegate- Parameters:
collectionView- The @c UICollectionView.configuration- The configuration of the menu displayed by this interaction. API-Since: 13.0 Deprecated-Since: 16.0
-
collectionViewPreviewForHighlightingContextMenuWithConfiguration
@Nullable @Deprecated public @Nullable UITargetedPreview collectionViewPreviewForHighlightingContextMenuWithConfiguration(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UIContextMenuConfiguration configuration)
Deprecated.Description copied from interface:UICollectionViewDelegateCalled when the interaction begins. Return a UITargetedPreview describing the desired highlight preview. If the non-deprecated replacement for the configuration, highlight preview, or dismissal preview methods is implemented this method is not called.- Specified by:
collectionViewPreviewForHighlightingContextMenuWithConfigurationin interfaceUICollectionViewDelegate- Parameters:
collectionView- The @c UICollectionView.configuration- The configuration of the menu about to be displayed by this interaction. API-Since: 13.0 Deprecated-Since: 16.0
-
collectionViewShouldBeginMultipleSelectionInteractionAtIndexPath
public boolean collectionViewShouldBeginMultipleSelectionInteractionAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)Description copied from interface:UICollectionViewDelegateAllows a two-finger pan gesture to automatically enable allowsMultipleSelection and start selecting multiple cells. After a multi-select gesture is recognized, this method will be called before allowsMultipleSelection is automatically set to YES to allow the user to select multiple contiguous items using a two-finger pan gesture across the constrained scroll direction. If the collection view has no constrained scroll direction (i.e., the collection view scrolls both horizontally and vertically), then this method will not be called and the multi-select gesture will be disabled. If this method is not implemented, the default is NO. API-Since: 13.0- Specified by:
collectionViewShouldBeginMultipleSelectionInteractionAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewWillPerformPreviewActionForMenuWithConfigurationAnimator
public void collectionViewWillPerformPreviewActionForMenuWithConfigurationAnimator(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UIContextMenuConfiguration configuration, @NotNull @NotNull UIContextMenuInteractionCommitAnimating animator)Description copied from interface:UICollectionViewDelegateCalled when the interaction is about to "commit" in response to the user tapping the preview.- Specified by:
collectionViewWillPerformPreviewActionForMenuWithConfigurationAnimatorin interfaceUICollectionViewDelegate- Parameters:
collectionView- The @c UICollectionView.configuration- Configuration of the currently displayed menu.animator- Commit animator. Add animations to this object to run them alongside the commit transition. API-Since: 13.0
-
collectionViewDidEndMultipleSelectionInteraction
public void collectionViewDidEndMultipleSelectionInteraction(@NotNull @NotNull UICollectionView collectionView)Description copied from interface:UICollectionViewDelegateCalled when the multi-select interaction ends. At this point, the collection view will remain in multi-select mode, but this delegate method is called to indicate that the multiple selection gesture or hardware keyboard interaction has ended. API-Since: 13.0- Specified by:
collectionViewDidEndMultipleSelectionInteractionin interfaceUICollectionViewDelegate
-
collectionViewCanEditItemAtIndexPath
public boolean collectionViewCanEditItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)Description copied from interface:UICollectionViewDelegateEditing Asks the delegate to verify that the given item is editable.- Specified by:
collectionViewCanEditItemAtIndexPathin interfaceUICollectionViewDelegate- Parameters:
collectionView- The collection view object requesting this information.indexPath- An index path locating an item in `collectionView`.- Returns:
- `YES` if the item is editable; otherwise, `NO`. Defaults to `YES`. API-Since: 14.0
-
collectionViewWillDisplayContextMenuWithConfigurationAnimator
public void collectionViewWillDisplayContextMenuWithConfigurationAnimator(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UIContextMenuConfiguration configuration, @Nullable @Nullable UIContextMenuInteractionAnimating animator)Description copied from interface:UICollectionViewDelegateCalled when the collection view is about to display a menu.- Specified by:
collectionViewWillDisplayContextMenuWithConfigurationAnimatorin interfaceUICollectionViewDelegate- Parameters:
collectionView- The @c UICollectionView.configuration- The configuration of the menu about to be displayed.animator- Appearance animator. Add animations to run them alongside the appearance transition. API-Since: 13.2
-
collectionViewWillEndContextMenuInteractionWithConfigurationAnimator
public void collectionViewWillEndContextMenuInteractionWithConfigurationAnimator(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UIContextMenuConfiguration configuration, @Nullable @Nullable UIContextMenuInteractionAnimating animator)Description copied from interface:UICollectionViewDelegateCalled when the collection view's context menu interaction is about to end.- Specified by:
collectionViewWillEndContextMenuInteractionWithConfigurationAnimatorin interfaceUICollectionViewDelegate- Parameters:
collectionView- The @c UICollectionView.configuration- Ending configuration.animator- Disappearance animator. Add animations to run them alongside the disappearance transition. API-Since: 13.2
-
collectionViewSceneActivationConfigurationForItemAtIndexPathPoint
@Nullable public @Nullable UIWindowSceneActivationConfiguration collectionViewSceneActivationConfigurationForItemAtIndexPathPoint(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath, CGPoint point)
Description copied from interface:UICollectionViewDelegateReturn a valid @c UIWindowSceneActivationConfiguration to allow for the cell to be expanded into a new scene. Return nil to prevent the interaction from starting.- Specified by:
collectionViewSceneActivationConfigurationForItemAtIndexPathPointin interfaceUICollectionViewDelegate- Parameters:
collectionView- The collection viewindexPath- The index path of the cell being interacted withpoint- The centroid of the interaction in the collection view's coordinate space. API-Since: 15.0
-
collectionViewSelectionFollowsFocusForItemAtIndexPath
public boolean collectionViewSelectionFollowsFocusForItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)Description copied from interface:UICollectionViewDelegateDetermines if the item at the specified index path should also become selected when focus moves to it. If the collection view's global selectionFollowsFocus is enabled, this method will allow you to override that behavior on a per-index path basis. This method is not called if selectionFollowsFocus is disabled. API-Since: 15.0- Specified by:
collectionViewSelectionFollowsFocusForItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewTargetIndexPathForMoveOfItemFromOriginalIndexPathAtCurrentIndexPathToProposedIndexPath
@NotNull public @NotNull NSIndexPath collectionViewTargetIndexPathForMoveOfItemFromOriginalIndexPathAtCurrentIndexPathToProposedIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath originalIndexPath, @NotNull @NotNull NSIndexPath currentIndexPath, @NotNull @NotNull NSIndexPath proposedIndexPath)
Description copied from interface:UICollectionViewDelegateAPI-Since: 15.0
-
collectionViewCanPerformPrimaryActionForItemAtIndexPath
public boolean collectionViewCanPerformPrimaryActionForItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)Description copied from interface:UICollectionViewDelegateCalled to determine if a primary action can be performed for the item at the given indexPath. See @c collectionView:performPrimaryActionForItemAtIndexPath: for more details about primary actions.- Specified by:
collectionViewCanPerformPrimaryActionForItemAtIndexPathin interfaceUICollectionViewDelegate- Parameters:
collectionView- This UICollectionViewindexPath- NSIndexPath of the item- Returns:
- `YES` if the primary action can be performed; otherwise `NO`. If not implemented, defaults to `YES` when not editing and `NO` when editing. API-Since: 16.0
-
collectionViewContextMenuConfigurationDismissalPreviewForItemAtIndexPath
@Nullable public @Nullable UITargetedPreview collectionViewContextMenuConfigurationDismissalPreviewForItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UIContextMenuConfiguration configuration, @NotNull @NotNull NSIndexPath indexPath)
Description copied from interface:UICollectionViewDelegateCalled when a context menu presented from this collection view is dismissed. Return a @c UITargetedPreview corresponding to the item at the given indexPath.- Specified by:
collectionViewContextMenuConfigurationDismissalPreviewForItemAtIndexPathin interfaceUICollectionViewDelegate- Parameters:
collectionView- The @c UICollectionView.configuration- Configuration of the menu being dismissed.indexPath- Index path of the item to which the menu is being dismissed. API-Since: 16.0
-
collectionViewContextMenuConfigurationHighlightPreviewForItemAtIndexPath
@Nullable public @Nullable UITargetedPreview collectionViewContextMenuConfigurationHighlightPreviewForItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull UIContextMenuConfiguration configuration, @NotNull @NotNull NSIndexPath indexPath)
Description copied from interface:UICollectionViewDelegateCalled when a context menu interaction begins in this collection view to request a preview for the interaction's initial highlight effect. Return a @c UITargetedPreview corresponding to the item at the given indexPath.- Specified by:
collectionViewContextMenuConfigurationHighlightPreviewForItemAtIndexPathin interfaceUICollectionViewDelegate- Parameters:
collectionView- The @c UICollectionView.configuration- Configuration of the menu that will be presented if the interaction proceeds.indexPath- Index path of the item at which the interaction is occurring. API-Since: 16.0
-
collectionViewContextMenuConfigurationForItemsAtIndexPathsPoint
@Nullable public @Nullable UIContextMenuConfiguration collectionViewContextMenuConfigurationForItemsAtIndexPathsPoint(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSArray<? extends NSIndexPath> indexPaths, CGPoint point)
Description copied from interface:UICollectionViewDelegateCalled when a context menu is invoked from this collection view. The @c indexPaths array may contain 0-many items: - An empty array indicates that the menu was invoked in the space between cells (or any location that does not map to an item index path). - An array with multiple index paths indicates that the menu was invoked on an item within a multiple selection. API-Since: 16.0- Specified by:
collectionViewContextMenuConfigurationForItemsAtIndexPathsPointin interfaceUICollectionViewDelegate- Parameters:
collectionView- The @c UICollectionView.indexPaths- An array of index paths on which the menu acts.point- Touch location in the collection view's coordinate space.- Returns:
- A @c UIContextMenuConfiguration describing the menu to be presented. Return nil to prevent the interaction from beginning. Returning an empty configuration causes the interaction to begin then fail with a cancellation effect. You might use this to indicate to users that it's possible for a menu to be presented from this element, but that there are no actions to present at this particular time.
-
collectionViewPerformPrimaryActionForItemAtIndexPath
public void collectionViewPerformPrimaryActionForItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)Description copied from interface:UICollectionViewDelegateCalled when the primary action should be performed for the item at the given indexPath. Primary actions allow you to distinguish between a change of selection (which can be based on focus changes or other indirect selection changes) and distinct user actions. Primary actions are performed when the user selects a cell without extending an existing selection. This is called after @c shouldSelectItem and @c didSelectItem , regardless of whether the cell's selection state was allowed to change. As an example, use @c didSelectItemAtIndexPath for updating state in the current view controller (i.e. buttons, title, etc) and use the primary action for navigation or showing another split view column.- Specified by:
collectionViewPerformPrimaryActionForItemAtIndexPathin interfaceUICollectionViewDelegate- Parameters:
collectionView- This UICollectionViewindexPath- NSIndexPath of the item to perform the action on API-Since: 16.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-