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,UIAppearanceContainer,UICollectionViewDataSource,UICollectionViewDelegate,UIContentContainer,UIFocusEnvironment,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIScrollViewDelegate,UIStateRestoring,UITraitEnvironment,UIUserActivityRestoring
public class UICollectionViewController extends UIViewController implements UICollectionViewDelegate, UICollectionViewDataSource
-
-
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.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUICollectionViewController(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static UICollectionViewControlleralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static voidattemptRotationToDeviceOrientation()static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()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(java.lang.String identifier)UICollectionViewcollectionView()booleancollectionViewCanEditItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)Editing Asks the delegate to verify that the given item is editable.booleancollectionViewCanFocusItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)FocusbooleancollectionViewCanMoveItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)booleancollectionViewCanPerformActionForItemAtIndexPathWithSender(UICollectionView collectionView, org.moe.natj.objc.SEL action, NSIndexPath indexPath, java.lang.Object sender)UICollectionViewCellcollectionViewCellForItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)The cell that is returned must be retrieved from a call to -dequeueReusableCellWithReuseIdentifier:forIndexPath:UIContextMenuConfigurationcollectionViewContextMenuConfigurationForItemAtIndexPathPoint(UICollectionView collectionView, NSIndexPath indexPath, CGPoint point)Called when the interaction begins.voidcollectionViewDidBeginMultipleSelectionInteractionAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)Called right after allowsMultipleSelection is set to YES if -collectionView:shouldBeginMultipleSelectionInteractionAtIndexPath: returned YES.voidcollectionViewDidDeselectItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)voidcollectionViewDidEndDisplayingCellForItemAtIndexPath(UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath)voidcollectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath(UICollectionView collectionView, UICollectionReusableView view, java.lang.String elementKind, NSIndexPath indexPath)voidcollectionViewDidEndMultipleSelectionInteraction(UICollectionView collectionView)Called when the multi-select interaction ends.voidcollectionViewDidHighlightItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)voidcollectionViewDidSelectItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)voidcollectionViewDidUnhighlightItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)voidcollectionViewDidUpdateFocusInContextWithAnimationCoordinator(UICollectionView collectionView, UICollectionViewFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)NSIndexPathcollectionViewIndexPathForIndexTitleAtIndex(UICollectionView collectionView, java.lang.String title, long index)Returns the index path that corresponds to the given title / index.UICollectionViewLayoutcollectionViewLayout()The layout object is needed when defining interactive layout to layout transitions.voidcollectionViewMoveItemAtIndexPathToIndexPath(UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)longcollectionViewNumberOfItemsInSection(UICollectionView collectionView, long section)voidcollectionViewPerformActionForItemAtIndexPathWithSender(UICollectionView collectionView, org.moe.natj.objc.SEL action, NSIndexPath indexPath, java.lang.Object sender)UITargetedPreviewcollectionViewPreviewForDismissingContextMenuWithConfiguration(UICollectionView collectionView, UIContextMenuConfiguration configuration)Called when the interaction is about to dismiss.UITargetedPreviewcollectionViewPreviewForHighlightingContextMenuWithConfiguration(UICollectionView collectionView, UIContextMenuConfiguration configuration)Called when the interaction begins.booleancollectionViewShouldBeginMultipleSelectionInteractionAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)Allows a two-finger pan gesture to automatically enable allowsMultipleSelection and start selecting multiple cells.booleancollectionViewShouldDeselectItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)called when the user taps on an already-selected item in multi-select modebooleancollectionViewShouldHighlightItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)Methods for notification of selection/deselection and highlight/unhighlight events.booleancollectionViewShouldSelectItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)booleancollectionViewShouldShowMenuForItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)These methods provide support for copy/paste actions on cells.booleancollectionViewShouldSpringLoadItemAtIndexPathWithContext(UICollectionView collectionView, NSIndexPath indexPath, UISpringLoadedInteractionContext context)Allows opting-out of spring loading for an particular item.booleancollectionViewShouldUpdateFocusInContext(UICollectionView collectionView, UICollectionViewFocusUpdateContext context)CGPointcollectionViewTargetContentOffsetForProposedContentOffset(UICollectionView collectionView, CGPoint proposedContentOffset)customize the content offset to be applied during transition or update animationsNSIndexPathcollectionViewTargetIndexPathForMoveFromItemAtIndexPathToProposedIndexPath(UICollectionView collectionView, NSIndexPath originalIndexPath, NSIndexPath proposedIndexPath)UICollectionViewTransitionLayoutcollectionViewTransitionLayoutForOldLayoutNewLayout(UICollectionView collectionView, UICollectionViewLayout fromLayout, UICollectionViewLayout toLayout)support for custom transition layoutUICollectionReusableViewcollectionViewViewForSupplementaryElementOfKindAtIndexPath(UICollectionView collectionView, java.lang.String kind, NSIndexPath indexPath)The view that is returned must be retrieved from a call to -dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:voidcollectionViewWillDisplayCellForItemAtIndexPath(UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath)voidcollectionViewWillDisplayContextMenuWithConfigurationAnimator(UICollectionView collectionView, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator)Called when the collection view is about to display a menu.voidcollectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath(UICollectionView collectionView, UICollectionReusableView view, java.lang.String elementKind, NSIndexPath indexPath)voidcollectionViewWillEndContextMenuInteractionWithConfigurationAnimator(UICollectionView collectionView, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator)Called when the collection view's context menu interaction is about to end.voidcollectionViewWillPerformPreviewActionForMenuWithConfigurationAnimator(UICollectionView collectionView, UIContextMenuConfiguration configuration, 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()NSIndexPathindexPathForPreferredFocusedViewInCollectionView(UICollectionView collectionView)NSArray<java.lang.String>indexTitlesForCollectionView(UICollectionView collectionView)Returns a list of index titles to display in the index view (e.g.UICollectionViewControllerinit()UICollectionViewControllerinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERUICollectionViewControllerinitWithCollectionViewLayout(UICollectionViewLayout layout)UICollectionViewControllerinitWithNibNameBundle(java.lang.String nibNameOrNil, NSBundle nibBundleOrNil)The designated initializer.booleaninstallsStandardGestureForInteractiveMovement()Defaults to YES, and if YES, a system standard reordering gesture is used to drive collection view reorderingstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()longnumberOfSectionsInCollectionView(UICollectionView collectionView)static voidprepareInterstitialAds()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidscrollViewDidChangeAdjustedContentInset(UIScrollView scrollView)Also see -[UIScrollView adjustedContentInsetDidChange]voidscrollViewDidEndDecelerating(UIScrollView scrollView)called when scroll view grinds to a haltvoidscrollViewDidEndDraggingWillDecelerate(UIScrollView scrollView, boolean decelerate)called on finger up if the user dragged. decelerate is true if it will continue moving afterwardsvoidscrollViewDidEndScrollingAnimation(UIScrollView scrollView)called when setContentOffset/scrollRectVisible:animated: finishes. not called if not animatingvoidscrollViewDidEndZoomingWithViewAtScale(UIScrollView scrollView, UIView view, double scale)scale between minimum and maximum. called after any 'bounce' animationsvoidscrollViewDidScroll(UIScrollView scrollView)any offset changesvoidscrollViewDidScrollToTop(UIScrollView scrollView)called when scrolling animation finished. may be called immediately if already at topvoidscrollViewDidZoom(UIScrollView scrollView)any zoom scale changesbooleanscrollViewShouldScrollToTop(UIScrollView scrollView)return a yes if you want to scroll to the top. if not defined, assumes YESvoidscrollViewWillBeginDecelerating(UIScrollView scrollView)called on finger up as we are movingvoidscrollViewWillBeginDragging(UIScrollView scrollView)called on start of dragging (may require some time and or distance to move)voidscrollViewWillBeginZoomingWithView(UIScrollView scrollView, UIView view)called before the scroll view begins zooming its contentvoidscrollViewWillEndDraggingWithVelocityTargetContentOffset(UIScrollView scrollView, CGPoint velocity, CGPoint targetContentOffset)called on finger up if the user dragged. velocity is in points/millisecond. targetContentOffset may be changed to adjust where the scroll view comes to restvoidsetClearsSelectionOnViewWillAppear(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 reorderingvoidsetUseLayoutToLayoutNavigationTransitions(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 longversion_static()UIViewviewForZoomingInScrollView(UIScrollView scrollView)return a view that will be scaled. if delegate returns nil, nothing happens-
Methods inherited from class apple.uikit.UIViewController
addChildViewController, additionalSafeAreaInsets, addKeyCommand, allowedChildViewControllersForUnwindingFromSource, applicationFinishedRestoringState, automaticallyAdjustsScrollViewInsets, automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers, beginAppearanceTransitionAnimated, beginRequestWithExtensionContext, bottomLayoutGuide, canDisplayBannerAds, canPerformUnwindSegueActionFromViewControllerSender, canPerformUnwindSegueActionFromViewControllerWithSender, childViewControllerContainingSegueSource, childViewControllerForHomeIndicatorAutoHidden, childViewControllerForPointerLock, childViewControllerForScreenEdgesDeferringSystemGestures, childViewControllerForStatusBarHidden, childViewControllerForStatusBarStyle, childViewControllers, collapseSecondaryViewControllerForSplitViewController, contentSizeForViewInPopover, decodeRestorableStateWithCoder, definesPresentationContext, didAnimateFirstHalfOfRotationToInterfaceOrientation, didMoveToParentViewController, didReceiveMemoryWarning, didRotateFromInterfaceOrientation, didUpdateFocusInContextWithAnimationCoordinator, disablesAutomaticKeyboardDismissal, dismissModalViewControllerAnimated, dismissMoviePlayerViewControllerAnimated, dismissViewControllerAnimatedCompletion, edgesForExtendedLayout, editButtonItem, encodeRestorableStateWithCoder, encodeWithCoder, endAppearanceTransition, extendedLayoutIncludesOpaqueBars, extensionContext, focusGroupIdentifier, focusItemContainer, hidesBottomBarWhenPushed, interfaceOrientation, interstitialPresentationPolicy, isBeingDismissed, isBeingPresented, isDisplayingBannerAd, isEditing, isModalInPopover, isModalInPresentation, isMovingFromParentViewController, isMovingToParentViewController, isPresentingFullScreenAd, isViewLoaded, loadView, loadViewIfNeeded, modalPresentationCapturesStatusBarAppearance, modalPresentationStyle, modalTransitionStyle, modalViewController, navigationController, navigationItem, nibBundle, nibName, objectRestorationClass, originalContentView, 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, removeFromParentViewController, removeKeyCommand, requestInterstitialAdPresentation, restorationClass, restorationIdentifier, restorationParent, restoresFocusAfterTransition, rotatingFooterView, rotatingHeaderView, searchDisplayController, segueForUnwindingToViewControllerFromViewControllerIdentifier, separateSecondaryViewControllerForSplitViewController, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setCanDisplayBannerAds, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditingAnimated, setExtendedLayoutIncludesOpaqueBars, setHidesBottomBarWhenPushed, setInterstitialPresentationPolicy, setModalInPopover, setModalInPresentation, setModalPresentationCapturesStatusBarAppearance, setModalPresentationStyle, setModalTransitionStyle, setNeedsFocusUpdate, setNeedsStatusBarAppearanceUpdate, setNeedsUpdateOfHomeIndicatorAutoHidden, setNeedsUpdateOfPrefersPointerLocked, setNeedsUpdateOfScreenEdgesDeferringSystemGestures, setOverrideTraitCollectionForChildViewController, setOverrideUserInterfaceStyle, setPreferredContentSize, setProvidesPresentationContextTransitionStyle, setRestorationClass, setRestorationClass_unsafe, setRestorationIdentifier, setRestoresFocusAfterTransition, setTabBarItem, setTitle, setToolbarItems, setToolbarItemsAnimated, setTransitioningDelegate, setTransitioningDelegate_unsafe, setView, setViewRespectsSystemMinimumLayoutMargins, setWantsFullScreenLayout, shouldAutomaticallyForwardAppearanceMethods, shouldAutomaticallyForwardRotationMethods, shouldAutorotate, shouldAutorotateToInterfaceOrientation, shouldPerformSegueWithIdentifierSender, shouldPresentInterstitialAd, shouldUpdateFocusInContext, showDetailViewControllerSender, showViewControllerSender, sizeForChildContentContainerWithParentContainerSize, splitViewController, storyboard, supportedInterfaceOrientations, systemLayoutFittingSizeDidChangeForChildContentContainer, systemMinimumLayoutMargins, tabBarController, tabBarItem, targetViewControllerForActionSender, title, toolbarItems, topLayoutGuide, traitCollection, traitCollectionDidChange, transitionCoordinator, transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion, transitioningDelegate, unregisterForPreviewingWithContext, unwindForSegueTowardsViewController, updateFocusIfNeeded, updateViewConstraints, view, viewControllerForUnwindSegueActionFromViewControllerWithSender, viewDidAppear, viewDidDisappear, viewDidLayoutSubviews, viewDidLoad, viewDidUnload, viewIfLoaded, 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, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommand
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UICollectionViewController alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
attemptRotationToDeviceOrientation
public static void attemptRotationToDeviceOrientation()
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(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
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
prepareInterstitialAds
public static void prepareInterstitialAds()
-
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(UICollectionView collectionView, NSIndexPath indexPath)
Description copied from interface:UICollectionViewDelegateFocus- Specified by:
collectionViewCanFocusItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewCanMoveItemAtIndexPath
public boolean collectionViewCanMoveItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
collectionViewCanMoveItemAtIndexPathin interfaceUICollectionViewDataSource
-
collectionViewCanPerformActionForItemAtIndexPathWithSender
public boolean collectionViewCanPerformActionForItemAtIndexPathWithSender(UICollectionView collectionView, org.moe.natj.objc.SEL action, NSIndexPath indexPath, java.lang.Object sender)
- Specified by:
collectionViewCanPerformActionForItemAtIndexPathWithSenderin interfaceUICollectionViewDelegate
-
collectionViewCellForItemAtIndexPath
public UICollectionViewCell collectionViewCellForItemAtIndexPath(UICollectionView collectionView, 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(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
collectionViewDidDeselectItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewDidEndDisplayingCellForItemAtIndexPath
public void collectionViewDidEndDisplayingCellForItemAtIndexPath(UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath)
- Specified by:
collectionViewDidEndDisplayingCellForItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath
public void collectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath(UICollectionView collectionView, UICollectionReusableView view, java.lang.String elementKind, NSIndexPath indexPath)
- Specified by:
collectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewDidHighlightItemAtIndexPath
public void collectionViewDidHighlightItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
collectionViewDidHighlightItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewDidSelectItemAtIndexPath
public void collectionViewDidSelectItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
collectionViewDidSelectItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewDidUnhighlightItemAtIndexPath
public void collectionViewDidUnhighlightItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
collectionViewDidUnhighlightItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewDidUpdateFocusInContextWithAnimationCoordinator
public void collectionViewDidUpdateFocusInContextWithAnimationCoordinator(UICollectionView collectionView, UICollectionViewFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)
- Specified by:
collectionViewDidUpdateFocusInContextWithAnimationCoordinatorin interfaceUICollectionViewDelegate
-
collectionViewMoveItemAtIndexPathToIndexPath
public void collectionViewMoveItemAtIndexPathToIndexPath(UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
- Specified by:
collectionViewMoveItemAtIndexPathToIndexPathin interfaceUICollectionViewDataSource
-
collectionViewNumberOfItemsInSection
public long collectionViewNumberOfItemsInSection(UICollectionView collectionView, long section)
- Specified by:
collectionViewNumberOfItemsInSectionin interfaceUICollectionViewDataSource
-
collectionViewPerformActionForItemAtIndexPathWithSender
public void collectionViewPerformActionForItemAtIndexPathWithSender(UICollectionView collectionView, org.moe.natj.objc.SEL action, NSIndexPath indexPath, java.lang.Object sender)
- Specified by:
collectionViewPerformActionForItemAtIndexPathWithSenderin interfaceUICollectionViewDelegate
-
collectionViewShouldDeselectItemAtIndexPath
public boolean collectionViewShouldDeselectItemAtIndexPath(UICollectionView collectionView, 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(UICollectionView collectionView, 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(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
collectionViewShouldSelectItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewShouldShowMenuForItemAtIndexPath
public boolean collectionViewShouldShowMenuForItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)
Description copied from interface:UICollectionViewDelegateThese methods provide support for copy/paste actions on cells. All three should be implemented if any are.- Specified by:
collectionViewShouldShowMenuForItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewShouldUpdateFocusInContext
public boolean collectionViewShouldUpdateFocusInContext(UICollectionView collectionView, UICollectionViewFocusUpdateContext context)
- Specified by:
collectionViewShouldUpdateFocusInContextin interfaceUICollectionViewDelegate
-
collectionViewTargetContentOffsetForProposedContentOffset
public CGPoint collectionViewTargetContentOffsetForProposedContentOffset(UICollectionView collectionView, CGPoint proposedContentOffset)
Description copied from interface:UICollectionViewDelegatecustomize the content offset to be applied during transition or update animations- Specified by:
collectionViewTargetContentOffsetForProposedContentOffsetin interfaceUICollectionViewDelegate
-
collectionViewTargetIndexPathForMoveFromItemAtIndexPathToProposedIndexPath
public NSIndexPath collectionViewTargetIndexPathForMoveFromItemAtIndexPathToProposedIndexPath(UICollectionView collectionView, NSIndexPath originalIndexPath, NSIndexPath proposedIndexPath)
- Specified by:
collectionViewTargetIndexPathForMoveFromItemAtIndexPathToProposedIndexPathin interfaceUICollectionViewDelegate
-
collectionViewTransitionLayoutForOldLayoutNewLayout
public UICollectionViewTransitionLayout collectionViewTransitionLayoutForOldLayoutNewLayout(UICollectionView collectionView, UICollectionViewLayout fromLayout, UICollectionViewLayout toLayout)
Description copied from interface:UICollectionViewDelegatesupport for custom transition layout- Specified by:
collectionViewTransitionLayoutForOldLayoutNewLayoutin interfaceUICollectionViewDelegate
-
collectionViewViewForSupplementaryElementOfKindAtIndexPath
public UICollectionReusableView collectionViewViewForSupplementaryElementOfKindAtIndexPath(UICollectionView collectionView, java.lang.String kind, 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(UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath)
- Specified by:
collectionViewWillDisplayCellForItemAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath
public void collectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath(UICollectionView collectionView, UICollectionReusableView view, java.lang.String elementKind, NSIndexPath indexPath)
- Specified by:
collectionViewWillDisplaySupplementaryViewForElementKindAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewLayout
public UICollectionViewLayout collectionViewLayout()
The layout object is needed when defining interactive layout to layout transitions.
-
indexPathForPreferredFocusedViewInCollectionView
public NSIndexPath indexPathForPreferredFocusedViewInCollectionView(UICollectionView collectionView)
- Specified by:
indexPathForPreferredFocusedViewInCollectionViewin interfaceUICollectionViewDelegate
-
init
public UICollectionViewController init()
- Overrides:
initin classUIViewController
-
initWithCoder
public UICollectionViewController initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classUIViewController
-
initWithCollectionViewLayout
public UICollectionViewController initWithCollectionViewLayout(UICollectionViewLayout layout)
-
initWithNibNameBundle
public UICollectionViewController initWithNibNameBundle(java.lang.String nibNameOrNil, 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
-
numberOfSectionsInCollectionView
public long numberOfSectionsInCollectionView(UICollectionView collectionView)
- Specified by:
numberOfSectionsInCollectionViewin interfaceUICollectionViewDataSource
-
scrollViewDidEndDecelerating
public void scrollViewDidEndDecelerating(UIScrollView scrollView)
Description copied from interface:UIScrollViewDelegatecalled when scroll view grinds to a halt- Specified by:
scrollViewDidEndDeceleratingin interfaceUIScrollViewDelegate
-
scrollViewDidEndDraggingWillDecelerate
public void scrollViewDidEndDraggingWillDecelerate(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(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(UIScrollView scrollView, 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(UIScrollView scrollView)
Description copied from interface:UIScrollViewDelegateany offset changes- Specified by:
scrollViewDidScrollin interfaceUIScrollViewDelegate
-
scrollViewDidScrollToTop
public void scrollViewDidScrollToTop(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(UIScrollView scrollView)
Description copied from interface:UIScrollViewDelegateany zoom scale changes- Specified by:
scrollViewDidZoomin interfaceUIScrollViewDelegate
-
scrollViewShouldScrollToTop
public boolean scrollViewShouldScrollToTop(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(UIScrollView scrollView)
Description copied from interface:UIScrollViewDelegatecalled on finger up as we are moving- Specified by:
scrollViewWillBeginDeceleratingin interfaceUIScrollViewDelegate
-
scrollViewWillBeginDragging
public void scrollViewWillBeginDragging(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(UIScrollView scrollView, UIView view)
Description copied from interface:UIScrollViewDelegatecalled before the scroll view begins zooming its content- Specified by:
scrollViewWillBeginZoomingWithViewin interfaceUIScrollViewDelegate
-
scrollViewWillEndDraggingWithVelocityTargetContentOffset
public void scrollViewWillEndDraggingWithVelocityTargetContentOffset(UIScrollView scrollView, CGPoint velocity, 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- 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
-
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.
-
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.
-
viewForZoomingInScrollView
public UIView viewForZoomingInScrollView(UIScrollView scrollView)
Description copied from interface:UIScrollViewDelegatereturn a view that will be scaled. if delegate returns nil, nothing happens- Specified by:
viewForZoomingInScrollViewin interfaceUIScrollViewDelegate
-
collectionViewIndexPathForIndexTitleAtIndex
public NSIndexPath collectionViewIndexPathForIndexTitleAtIndex(UICollectionView collectionView, 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.- Specified by:
collectionViewIndexPathForIndexTitleAtIndexin interfaceUICollectionViewDataSource
-
collectionViewShouldSpringLoadItemAtIndexPathWithContext
public boolean collectionViewShouldSpringLoadItemAtIndexPathWithContext(UICollectionView collectionView, NSIndexPath indexPath, 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.- Specified by:
collectionViewShouldSpringLoadItemAtIndexPathWithContextin interfaceUICollectionViewDelegate
-
indexTitlesForCollectionView
public NSArray<java.lang.String> indexTitlesForCollectionView(UICollectionView collectionView)
Description copied from interface:UICollectionViewDataSourceReturns a list of index titles to display in the index view (e.g. ["A", "B", "C" ... "Z", "#"])- Specified by:
indexTitlesForCollectionViewin interfaceUICollectionViewDataSource
-
scrollViewDidChangeAdjustedContentInset
public void scrollViewDidChangeAdjustedContentInset(UIScrollView scrollView)
Description copied from interface:UIScrollViewDelegateAlso see -[UIScrollView adjustedContentInsetDidChange]- Specified by:
scrollViewDidChangeAdjustedContentInsetin interfaceUIScrollViewDelegate
-
collectionViewContextMenuConfigurationForItemAtIndexPathPoint
public UIContextMenuConfiguration collectionViewContextMenuConfigurationForItemAtIndexPathPoint(UICollectionView collectionView, NSIndexPath indexPath, CGPoint point)
Description copied from interface:UICollectionViewDelegateCalled when the interaction begins.- Specified by:
collectionViewContextMenuConfigurationForItemAtIndexPathPointin interfaceUICollectionViewDelegate- Parameters:
collectionView- This UICollectionView.indexPath- IndexPath of the item for which a configuration is being requested.point- 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.
-
collectionViewDidBeginMultipleSelectionInteractionAtIndexPath
public void collectionViewDidBeginMultipleSelectionInteractionAtIndexPath(UICollectionView collectionView, 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.- Specified by:
collectionViewDidBeginMultipleSelectionInteractionAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewPreviewForDismissingContextMenuWithConfiguration
public UITargetedPreview collectionViewPreviewForDismissingContextMenuWithConfiguration(UICollectionView collectionView, UIContextMenuConfiguration configuration)
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.- Specified by:
collectionViewPreviewForDismissingContextMenuWithConfigurationin interfaceUICollectionViewDelegate- Parameters:
collectionView- This UICollectionView.configuration- The configuration of the menu displayed by this interaction.
-
collectionViewPreviewForHighlightingContextMenuWithConfiguration
public UITargetedPreview collectionViewPreviewForHighlightingContextMenuWithConfiguration(UICollectionView collectionView, UIContextMenuConfiguration configuration)
Description copied from interface:UICollectionViewDelegateCalled when the interaction begins. Return a UITargetedPreview describing the desired highlight preview.- Specified by:
collectionViewPreviewForHighlightingContextMenuWithConfigurationin interfaceUICollectionViewDelegate- Parameters:
collectionView- This UICollectionView.configuration- The configuration of the menu about to be displayed by this interaction.
-
collectionViewShouldBeginMultipleSelectionInteractionAtIndexPath
public boolean collectionViewShouldBeginMultipleSelectionInteractionAtIndexPath(UICollectionView collectionView, 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.- Specified by:
collectionViewShouldBeginMultipleSelectionInteractionAtIndexPathin interfaceUICollectionViewDelegate
-
collectionViewWillPerformPreviewActionForMenuWithConfigurationAnimator
public void collectionViewWillPerformPreviewActionForMenuWithConfigurationAnimator(UICollectionView collectionView, UIContextMenuConfiguration configuration, 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- This UICollectionView.configuration- Configuration of the currently displayed menu.animator- Commit animator. Add animations to this object to run them alongside the commit transition.
-
collectionViewDidEndMultipleSelectionInteraction
public void collectionViewDidEndMultipleSelectionInteraction(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.- Specified by:
collectionViewDidEndMultipleSelectionInteractionin interfaceUICollectionViewDelegate
-
collectionViewCanEditItemAtIndexPath
public boolean collectionViewCanEditItemAtIndexPath(UICollectionView collectionView, 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`.
-
collectionViewWillDisplayContextMenuWithConfigurationAnimator
public void collectionViewWillDisplayContextMenuWithConfigurationAnimator(UICollectionView collectionView, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator)
Description copied from interface:UICollectionViewDelegateCalled when the collection view is about to display a menu.- Specified by:
collectionViewWillDisplayContextMenuWithConfigurationAnimatorin interfaceUICollectionViewDelegate- Parameters:
collectionView- This UICollectionView.configuration- The configuration of the menu about to be displayed.animator- Appearance animator. Add animations to run them alongside the appearance transition.
-
collectionViewWillEndContextMenuInteractionWithConfigurationAnimator
public void collectionViewWillEndContextMenuInteractionWithConfigurationAnimator(UICollectionView collectionView, UIContextMenuConfiguration configuration, 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- This UICollectionView.configuration- Ending configuration.animator- Disappearance animator. Add animations to run them alongside the disappearance transition.
-
-