Package org.robovm.apple.uikit
Class UICollectionViewController
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.uikit.UIResponder
org.robovm.apple.uikit.UIViewController
org.robovm.apple.uikit.UICollectionViewController
- All Implemented Interfaces:
NSCoding,NSExtensionRequestHandling,NSObjectProtocol,UIActivityItemsConfigurationProviding,UIAppearanceContainer,UICollectionViewDataSource,UICollectionViewDelegate,UIContentContainer,UIFocusEnvironment,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIScrollViewDelegate,UIStateRestoring,UITraitEnvironment,UIUserActivityRestoring,ObjCProtocol
public class UICollectionViewController extends UIViewController implements UICollectionViewDelegate, UICollectionViewDataSource
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUICollectionViewController.UICollectionViewControllerPtrNested classes/interfaces inherited from class org.robovm.apple.uikit.UIViewController
UIViewController.Notifications, UIViewController.UIViewControllerPtrNested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
Constructors Modifier Constructor Description UICollectionViewController()UICollectionViewController(String nibNameOrNil, NSBundle nibBundleOrNil)UICollectionViewController(NSCoder coder)protectedUICollectionViewController(NSObject.Handle h, long handle)protectedUICollectionViewController(NSObject.SkipInit skipInit)UICollectionViewController(UICollectionViewLayout layout) -
Method Summary
Methods inherited from class org.robovm.apple.uikit.UIViewController
addChildViewController, addKeyCommand, applicationFinishedRestoringState, attemptRotationToDeviceOrientation, automaticallyAdjustsScrollViewInsets, beginAppearanceTransition, beginRequest, canPerformUnwind, canPerformUnwindSegueAction, collapseSecondaryViewController, contentScrollViewForEdge, decodeRestorableState, definesPresentationContext, didMoveToParentViewController, didReceiveMemoryWarning, didRotate, didUpdateFocus, disablesAutomaticKeyboardDismissal, dismissMoviePlayerViewController, dismissViewController, encode, encodeRestorableState, endAppearanceTransition, extendedLayoutIncludesOpaqueBars, getAdditionalSafeAreaInsets, getAllowedChildViewControllersForUnwinding, getBottomLayoutGuide, getChildViewControllerContainingSegueSource, getChildViewControllerForHomeIndicatorAutoHidden, getChildViewControllerForPointerLock, getChildViewControllerForScreenEdgesDeferringSystemGestures, getChildViewControllerForStatusBarHidden, getChildViewControllerForStatusBarStyle, getChildViewControllers, getContentSizeForViewInPopover, getEdgesForExtendedLayout, getEditButtonItem, getExtensionContext, getFocusGroupIdentifier, getFocusItemContainer, getInterfaceOrientation, getInterstitialPresentationPolicy, getModalPresentationStyle, getModalTransitionStyle, getNavigationController, getNavigationItem, getNibBundle, getNibName, getObjectRestorationClass, getOriginalContentView, getOverrideTraitCollection, getOverrideUserInterfaceStyle, getParentFocusEnvironment, getParentViewController, getPopoverPresentationController, getPreferredContentSize, getPreferredFocusedView, getPreferredFocusEnvironments, getPreferredInterfaceOrientationForPresentation, getPreferredScreenEdgesDeferringSystemGestures, getPreferredStatusBarStyle, getPreferredStatusBarUpdateAnimation, getPresentationController, getPresentedViewController, getPresentingViewController, getPreviewActionItems, getRestorationClass, getRestorationIdentifier, getRestorationParent, getRotatingFooterView, getRotatingHeaderView, getSearchDisplayController, getSegueForUnwinding, getSheetPresentationController, getSplitViewController, getStoryboard, getSupportedInterfaceOrientations, getSystemMinimumLayoutMargins, getTabBarController, getTabBarItem, getTargetViewControllerForAction, getTitle, getToolbarItems, getTopLayoutGuide, getTraitCollection, getTransitionCoordinator, getTransitioningDelegate, getView, getViewControllerForUnwind, getViewIfLoaded, hidesBottomBarWhenPushed, isBeingDismissed, isBeingPresented, isCanDisplayBannerAds, isDisplayingBannerAd, isEditing, isModalInPopover, isModalInPresentation, isMovingFromParentViewController, isMovingToParentViewController, isPresentingFullScreenAd, isRestoresFocusAfterTransition, isViewLoaded, isViewRespectsSystemMinimumLayoutMargins, loadView, loadViewIfNeeded, modalPresentationCapturesStatusBarAppearance, performsActionsWhilePresentingModally, performSegue, preferredContentSizeDidChangeForChildContentContainer, prefersHomeIndicatorAutoHidden, prefersPointerLocked, prefersStatusBarHidden, prepareForSegue, prepareInterstitialAds, presentMoviePlayerViewController, presentViewController, providesPresentationContextTransitionStyle, registerForPreviewing, removeFromParentViewController, removeKeyCommand, requestInterstitialAdPresentation, separateSecondaryViewController, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setCanDisplayBannerAds, setContentScrollView, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditing, setExtendedLayoutIncludesOpaqueBars, setFocusGroupIdentifier, setHidesBottomBarWhenPushed, setInterstitialPresentationPolicy, setModalInPopover, setModalInPresentation, setModalPresentationCapturesStatusBarAppearance, setModalPresentationStyle, setModalTransitionStyle, setNeedsFocusUpdate, setNeedsStatusBarAppearanceUpdate, setNeedsUpdateOfHomeIndicatorAutoHidden, setNeedsUpdateOfPrefersPointerLocked, setNeedsUpdateOfScreenEdgesDeferringSystemGestures, setOverrideTraitCollection, setOverrideUserInterfaceStyle, setPreferredContentSize, setProvidesPresentationContextTransitionStyle, setRestorationClass, setRestorationIdentifier, setRestoresFocusAfterTransition, setTabBarItem, setTitle, setToolbarItems, setToolbarItems, setTransitioningDelegate, setView, setViewRespectsSystemMinimumLayoutMargins, setWantsFullScreenLayout, shouldAutomaticallyForwardAppearanceMethods, shouldAutomaticallyForwardRotationMethods, shouldAutorotate, shouldPerformSegue, shouldPresentInterstitialAd, shouldUpdateFocus, ShowDetailTargetDidChangeNotification, showDetailViewController, showViewController, sizeForChildContentContainer, systemLayoutFittingSizeDidChangeForChildContentContainer, traitCollectionDidChange, transition, unregisterForPreviewing, unwind, updateFocusIfNeeded, updateViewConstraints, viewDidAppear, viewDidDisappear, viewDidLayoutSubviews, viewDidLoad, viewLayoutMarginsDidChange, viewSafeAreaInsetsDidChange, viewWillAppear, viewWillDisappear, viewWillLayoutSubviews, viewWillTransitionToSize, wantsFullScreenLayout, willAnimateRotation, willMoveToParentViewController, willRotate, willTransitionToTraitCollectionMethods inherited from class org.robovm.apple.uikit.UIResponder
becomeFirstResponder, buildMenu, canBecomeFirstResponder, canPasteItemProviders, canPerformAction, canResignFirstResponder, captureTextFromCamera, clearTextInputContextIdentifier, copy, cut, decreaseSize, delete, getActionTarget, getActivityItemsConfiguration, getEditingInteractionConfiguration, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getPasteConfiguration, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, increaseSize, isFirstResponder, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBegan, motionCancelled, motionEnded, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteItemProviders, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, print, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, toggleBoldface, toggleItalics, toggleUnderline, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateTextAttributes, updateUserActivityState, validateCommandMethods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandle, setHandle
-
Constructor Details
-
UICollectionViewController
public UICollectionViewController() -
UICollectionViewController
-
UICollectionViewController
-
UICollectionViewController
-
UICollectionViewController
-
UICollectionViewController
-
-
Method Details
-
getCollectionView
-
setCollectionView
-
clearsSelectionOnViewWillAppear
public boolean clearsSelectionOnViewWillAppear() -
setClearsSelectionOnViewWillAppear
public void setClearsSelectionOnViewWillAppear(boolean v) -
getCollectionViewLayout
-
installsStandardGestureForInteractiveMovement
public boolean installsStandardGestureForInteractiveMovement()- Since:
- Available in iOS 9.0 and later.
-
setInstallsStandardGestureForInteractiveMovement
public void setInstallsStandardGestureForInteractiveMovement(boolean v)- Since:
- Available in iOS 9.0 and later.
-
init
-
init
- Overrides:
initin classUIViewController
-
init
- Overrides:
initin classUIViewController
-
shouldHighlightItem
- Specified by:
shouldHighlightItemin interfaceUICollectionViewDelegate
-
didHighlightItem
- Specified by:
didHighlightItemin interfaceUICollectionViewDelegate
-
didUnhighlightItem
- Specified by:
didUnhighlightItemin interfaceUICollectionViewDelegate
-
shouldSelectItem
- Specified by:
shouldSelectItemin interfaceUICollectionViewDelegate
-
shouldDeselectItem
- Specified by:
shouldDeselectItemin interfaceUICollectionViewDelegate
-
didSelectItem
- Specified by:
didSelectItemin interfaceUICollectionViewDelegate
-
didDeselectItem
- Specified by:
didDeselectItemin interfaceUICollectionViewDelegate
-
willDisplayCell
public void willDisplayCell(UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath)- Specified by:
willDisplayCellin interfaceUICollectionViewDelegate
-
willDisplaySupplementaryView
public void willDisplaySupplementaryView(UICollectionView collectionView, UICollectionReusableView view, String elementKind, NSIndexPath indexPath)- Specified by:
willDisplaySupplementaryViewin interfaceUICollectionViewDelegate
-
didEndDisplayingCell
public void didEndDisplayingCell(UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath)- Specified by:
didEndDisplayingCellin interfaceUICollectionViewDelegate
-
didEndDisplayingSupplementaryView
public void didEndDisplayingSupplementaryView(UICollectionView collectionView, UICollectionReusableView view, String elementKind, NSIndexPath indexPath)- Specified by:
didEndDisplayingSupplementaryViewin interfaceUICollectionViewDelegate
-
shouldShowMenuForItem
@Deprecated public boolean shouldShowMenuForItem(UICollectionView collectionView, NSIndexPath indexPath)Deprecated.Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemAtIndexPath:- Specified by:
shouldShowMenuForItemin interfaceUICollectionViewDelegate
-
canPerformAction
@Deprecated public boolean canPerformAction(UICollectionView collectionView, Selector action, NSIndexPath indexPath, NSObject sender)Deprecated.Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemAtIndexPath:- Specified by:
canPerformActionin interfaceUICollectionViewDelegate
-
performAction
@Deprecated public void performAction(UICollectionView collectionView, Selector action, NSIndexPath indexPath, NSObject sender)Deprecated.Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemAtIndexPath:- Specified by:
performActionin interfaceUICollectionViewDelegate
-
getTransitionLayout
public UICollectionViewTransitionLayout getTransitionLayout(UICollectionView collectionView, UICollectionViewLayout fromLayout, UICollectionViewLayout toLayout)- Specified by:
getTransitionLayoutin interfaceUICollectionViewDelegate
-
canFocusItem
- Specified by:
canFocusItemin interfaceUICollectionViewDelegate- Since:
- Available in iOS 9.0 and later.
-
shouldUpdateFocus
public boolean shouldUpdateFocus(UICollectionView collectionView, UICollectionViewFocusUpdateContext context)- Specified by:
shouldUpdateFocusin interfaceUICollectionViewDelegate- Since:
- Available in iOS 9.0 and later.
-
didUpdateFocus
public void didUpdateFocus(UICollectionView collectionView, UICollectionViewFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)- Specified by:
didUpdateFocusin interfaceUICollectionViewDelegate- Since:
- Available in iOS 9.0 and later.
-
getIndexPathForPreferredFocusedView
- Specified by:
getIndexPathForPreferredFocusedViewin interfaceUICollectionViewDelegate- Since:
- Available in iOS 9.0 and later.
-
isSelectionFollowsFocus
- Specified by:
isSelectionFollowsFocusin interfaceUICollectionViewDelegate- Since:
- Available in iOS 15.0 and later.
-
getTargetIndexPathForMoveOfItemFromOriginalIndexPath
public NSIndexPath getTargetIndexPathForMoveOfItemFromOriginalIndexPath(UICollectionView collectionView, NSIndexPath originalIndexPath, NSIndexPath currentIndexPath, NSIndexPath proposedIndexPath)- Specified by:
getTargetIndexPathForMoveOfItemFromOriginalIndexPathin interfaceUICollectionViewDelegate- Since:
- Available in iOS 15.0 and later.
-
getTargetIndexPathForMoveFromItem
@Deprecated public NSIndexPath getTargetIndexPathForMoveFromItem(UICollectionView collectionView, NSIndexPath currentIndexPath, NSIndexPath proposedIndexPath)Deprecated.Deprecated in iOS 15.0. Use collectionView:targetIndexPathForMoveOfItemFromOriginalIndexPath:atCurrentIndexPath:toProposedIndexPath:- Specified by:
getTargetIndexPathForMoveFromItemin interfaceUICollectionViewDelegate- Since:
- Available in iOS 9.0 and later.
-
getTargetContentOffsetForProposedContentOffset
public CGPoint getTargetContentOffsetForProposedContentOffset(UICollectionView collectionView, CGPoint proposedContentOffset)- Specified by:
getTargetContentOffsetForProposedContentOffsetin interfaceUICollectionViewDelegate- Since:
- Available in iOS 9.0 and later.
-
canEditItem
- Specified by:
canEditItemin interfaceUICollectionViewDelegate- Since:
- Available in iOS 14.0 and later.
-
shouldSpringLoadItem
public boolean shouldSpringLoadItem(UICollectionView collectionView, NSIndexPath indexPath, UISpringLoadedInteractionContext context)- Specified by:
shouldSpringLoadItemin interfaceUICollectionViewDelegate- Since:
- Available in iOS 11.0 and later.
-
shouldBeginMultipleSelectionInteraction
public boolean shouldBeginMultipleSelectionInteraction(UICollectionView collectionView, NSIndexPath indexPath)- Specified by:
shouldBeginMultipleSelectionInteractionin interfaceUICollectionViewDelegate- Since:
- Available in iOS 13.0 and later.
-
didBeginMultipleSelectionInteraction
public void didBeginMultipleSelectionInteraction(UICollectionView collectionView, NSIndexPath indexPath)- Specified by:
didBeginMultipleSelectionInteractionin interfaceUICollectionViewDelegate- Since:
- Available in iOS 13.0 and later.
-
collectionViewDidEndMultipleSelectionInteraction
- Specified by:
collectionViewDidEndMultipleSelectionInteractionin interfaceUICollectionViewDelegate- Since:
- Available in iOS 13.0 and later.
-
getContextMenuConfiguration
public UIContextMenuConfiguration getContextMenuConfiguration(UICollectionView collectionView, NSIndexPath indexPath, CGPoint point)- Specified by:
getContextMenuConfigurationin interfaceUICollectionViewDelegate- Since:
- Available in iOS 13.0 and later.
-
getPreviewForHighlightingContextMenu
public UITargetedPreview getPreviewForHighlightingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration)- Specified by:
getPreviewForHighlightingContextMenuin interfaceUICollectionViewDelegate- Since:
- Available in iOS 13.0 and later.
-
getPreviewForDismissingContextMenu
public UITargetedPreview getPreviewForDismissingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration)- Specified by:
getPreviewForDismissingContextMenuin interfaceUICollectionViewDelegate- Since:
- Available in iOS 13.0 and later.
-
willPerformPreviewAction
public void willPerformPreviewAction(UICollectionView collectionView, UIContextMenuConfiguration configuration, UIContextMenuInteractionCommitAnimating animator)- Specified by:
willPerformPreviewActionin interfaceUICollectionViewDelegate- Since:
- Available in iOS 13.0 and later.
-
willDisplayContextMenu
public void willDisplayContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator)- Specified by:
willDisplayContextMenuin interfaceUICollectionViewDelegate- Since:
- Available in iOS 13.2 and later.
-
willEndContextMenuInteraction
public void willEndContextMenuInteraction(UICollectionView collectionView, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator)- Specified by:
willEndContextMenuInteractionin interfaceUICollectionViewDelegate- Since:
- Available in iOS 13.2 and later.
-
getSceneActivationConfiguration
public UIWindowSceneActivationConfiguration getSceneActivationConfiguration(UICollectionView collectionView, NSIndexPath indexPath, CGPoint point)- Specified by:
getSceneActivationConfigurationin interfaceUICollectionViewDelegate- Since:
- Available in iOS 15.0 and later.
-
didScroll
- Specified by:
didScrollin interfaceUIScrollViewDelegate
-
didZoom
- Specified by:
didZoomin interfaceUIScrollViewDelegate
-
willBeginDragging
- Specified by:
willBeginDraggingin interfaceUIScrollViewDelegate
-
willEndDragging
public void willEndDragging(UIScrollView scrollView, CGPoint velocity, CGPoint targetContentOffset)- Specified by:
willEndDraggingin interfaceUIScrollViewDelegate
-
didEndDragging
- Specified by:
didEndDraggingin interfaceUIScrollViewDelegate
-
willBeginDecelerating
- Specified by:
willBeginDeceleratingin interfaceUIScrollViewDelegate
-
didEndDecelerating
- Specified by:
didEndDeceleratingin interfaceUIScrollViewDelegate
-
didEndScrollingAnimation
- Specified by:
didEndScrollingAnimationin interfaceUIScrollViewDelegate
-
getViewForZooming
- Specified by:
getViewForZoomingin interfaceUIScrollViewDelegate
-
willBeginZooming
- Specified by:
willBeginZoomingin interfaceUIScrollViewDelegate
-
didEndZooming
- Specified by:
didEndZoomingin interfaceUIScrollViewDelegate
-
shouldScrollToTop
- Specified by:
shouldScrollToTopin interfaceUIScrollViewDelegate
-
didScrollToTop
- Specified by:
didScrollToTopin interfaceUIScrollViewDelegate
-
scrollViewDidChangeAdjustedContentInset
- Specified by:
scrollViewDidChangeAdjustedContentInsetin interfaceUIScrollViewDelegate- Since:
- Available in iOS 11.0 and later.
-
getNumberOfItemsInSection
- Specified by:
getNumberOfItemsInSectionin interfaceUICollectionViewDataSource
-
getCellForItem
- Specified by:
getCellForItemin interfaceUICollectionViewDataSource
-
getNumberOfSections
- Specified by:
getNumberOfSectionsin interfaceUICollectionViewDataSource
-
getViewForSupplementaryElement
public UICollectionReusableView getViewForSupplementaryElement(UICollectionView collectionView, String kind, NSIndexPath indexPath)- Specified by:
getViewForSupplementaryElementin interfaceUICollectionViewDataSource
-
canMoveItemAt
- Specified by:
canMoveItemAtin interfaceUICollectionViewDataSource- Since:
- Available in iOS 9.0 and later.
-
moveItemAt
public void moveItemAt(UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)- Specified by:
moveItemAtin interfaceUICollectionViewDataSource- Since:
- Available in iOS 9.0 and later.
-
indexTitlesForCollectionView
- Specified by:
indexTitlesForCollectionViewin interfaceUICollectionViewDataSource- Since:
- Available in iOS 14.0 and later.
-
indexPathForIndexTitle
public NSIndexPath indexPathForIndexTitle(UICollectionView collectionView, String title, long index)- Specified by:
indexPathForIndexTitlein interfaceUICollectionViewDataSource- Since:
- Available in iOS 14.0 and later.
-