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
,UIAccessibility
,UIAppearanceContainer
,UICollectionViewDataSource
,UICollectionViewDelegate
,UIContentContainer
,UIFocusEnvironment
,UIScrollViewDelegate
,UIStateRestoring
,UITraitEnvironment
,org.robovm.objc.ObjCProtocol
public class UICollectionViewController extends UIViewController implements UICollectionViewDelegate, UICollectionViewDataSource
- Since:
- Available in iOS 6.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UICollectionViewController.UICollectionViewControllerPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIViewController
UIViewController.Notifications, UIViewController.UIViewControllerPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description UICollectionViewController()
UICollectionViewController(java.lang.String nibNameOrNil, NSBundle nibBundleOrNil)
UICollectionViewController(NSCoder decoder)
protected
UICollectionViewController(NSObject.Handle h, long handle)
protected
UICollectionViewController(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, collapseSecondaryViewController, decodeRestorableState, definesPresentationContext, didMoveToParentViewController, didReceiveMemoryWarning, didRotate, didUpdateFocus, disablesAutomaticKeyboardDismissal, dismissMoviePlayerViewController, dismissViewController, encode, encodeRestorableState, endAppearanceTransition, extendedLayoutIncludesOpaqueBars, getAdditionalSafeAreaInsets, getAllowedChildViewControllersForUnwinding, getBottomLayoutGuide, getChildViewControllerContainingSegueSource, getChildViewControllerForHomeIndicatorAutoHidden, getChildViewControllerForScreenEdgesDeferringSystemGestures, getChildViewControllerForStatusBarHidden, getChildViewControllerForStatusBarStyle, getChildViewControllers, getContentSizeForViewInPopover, getEdgesForExtendedLayout, getEditButtonItem, getExtensionContext, getFocusItemContainer, getInterfaceOrientation, getInterstitialPresentationPolicy, getModalPresentationStyle, getModalTransitionStyle, getNavigationController, getNavigationItem, getNibBundle, getNibName, getObjectRestorationClass, getOriginalContentView, getOverrideTraitCollection, getParentFocusEnvironment, getParentViewController, getPopoverPresentationController, getPreferredContentSize, getPreferredFocusedView, getPreferredFocusEnvironments, getPreferredInterfaceOrientationForPresentation, getPreferredScreenEdgesDeferringSystemGestures, getPreferredStatusBarStyle, getPreferredStatusBarUpdateAnimation, getPresentationController, getPresentedViewController, getPresentingViewController, getPreviewActionItems, getRestorationClass, getRestorationIdentifier, getRestorationParent, getRotatingFooterView, getRotatingHeaderView, getSearchDisplayController, getSegueForUnwinding, getSplitViewController, getStoryboard, getSupportedInterfaceOrientations, getSystemMinimumLayoutMargins, getTabBarController, getTabBarItem, getTargetViewControllerForAction, getTitle, getToolbarItems, getTopLayoutGuide, getTraitCollection, getTransitionCoordinator, getTransitioningDelegate, getView, getViewControllerForUnwind, getViewIfLoaded, hidesBottomBarWhenPushed, isBeingDismissed, isBeingPresented, isCanDisplayBannerAds, isDisplayingBannerAd, isEditing, isModalInPopover, isMovingFromParentViewController, isMovingToParentViewController, isPresentingFullScreenAd, isRestoresFocusAfterTransition, isViewLoaded, isViewRespectsSystemMinimumLayoutMargins, loadView, loadViewIfNeeded, modalPresentationCapturesStatusBarAppearance, performSegue, preferredContentSizeDidChangeForChildContentContainer, prefersHomeIndicatorAutoHidden, prefersStatusBarHidden, prepareForSegue, prepareInterstitialAds, presentMoviePlayerViewController, presentViewController, providesPresentationContextTransitionStyle, registerForPreviewing, removeFromParentViewController, removeKeyCommand, requestInterstitialAdPresentation, separateSecondaryViewController, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setCanDisplayBannerAds, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditing, setExtendedLayoutIncludesOpaqueBars, setHidesBottomBarWhenPushed, setInterstitialPresentationPolicy, setModalInPopover, setModalPresentationCapturesStatusBarAppearance, setModalPresentationStyle, setModalTransitionStyle, setNeedsFocusUpdate, setNeedsStatusBarAppearanceUpdate, setNeedsUpdateOfHomeIndicatorAutoHidden, setNeedsUpdateOfScreenEdgesDeferringSystemGestures, setOverrideTraitCollection, 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, willTransitionToTraitCollection
-
Methods inherited from class org.robovm.apple.uikit.UIResponder
areAccessibilityElementsHidden, becomeFirstResponder, canBecomeFirstResponder, canPerformAction, canResignFirstResponder, clearTextInputContextIdentifier, getAccessibilityActivationPoint, getAccessibilityAttributedHint, getAccessibilityAttributedLabel, getAccessibilityAttributedValue, getAccessibilityFrame, getAccessibilityHint, getAccessibilityLabel, getAccessibilityLanguage, getAccessibilityNavigationStyle, getAccessibilityPath, getAccessibilityTraits, getAccessibilityValue, getActionTarget, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, isAccessibilityElement, isAccessibilityViewModal, isFirstResponder, motionBegan, motionCancelled, motionEnded, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedValue, setAccessibilityElement, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityTraits, setAccessibilityValue, setAccessibilityViewModal, setShouldGroupAccessibilityChildren, setUserActivity, shouldGroupAccessibilityChildren, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateUserActivityState
-
Methods 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, willChangeValues
-
-
-
-
Constructor Detail
-
UICollectionViewController
public UICollectionViewController()
-
UICollectionViewController
protected UICollectionViewController(NSObject.Handle h, long handle)
-
UICollectionViewController
protected UICollectionViewController(NSObject.SkipInit skipInit)
-
UICollectionViewController
public UICollectionViewController(UICollectionViewLayout layout)
-
UICollectionViewController
public UICollectionViewController(java.lang.String nibNameOrNil, NSBundle nibBundleOrNil)
-
UICollectionViewController
public UICollectionViewController(NSCoder decoder)
-
-
Method Detail
-
getCollectionView
public UICollectionView getCollectionView()
-
setCollectionView
public void setCollectionView(UICollectionView v)
-
clearsSelectionOnViewWillAppear
public boolean clearsSelectionOnViewWillAppear()
-
setClearsSelectionOnViewWillAppear
public void setClearsSelectionOnViewWillAppear(boolean v)
-
usesLayoutToLayoutNavigationTransitions
public boolean usesLayoutToLayoutNavigationTransitions()
- Since:
- Available in iOS 7.0 and later.
-
setUsesLayoutToLayoutNavigationTransitions
public void setUsesLayoutToLayoutNavigationTransitions(boolean v)
- Since:
- Available in iOS 7.0 and later.
-
getCollectionViewLayout
public UICollectionViewLayout getCollectionViewLayout()
- Since:
- Available in iOS 7.0 and later.
-
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
protected long init(UICollectionViewLayout layout)
-
init
protected long init(java.lang.String nibNameOrNil, NSBundle nibBundleOrNil)
- Overrides:
init
in classUIViewController
-
init
protected long init(NSCoder decoder)
- Overrides:
init
in classUIViewController
-
shouldHighlightItem
public boolean shouldHighlightItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
shouldHighlightItem
in interfaceUICollectionViewDelegate
-
didHighlightItem
public void didHighlightItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
didHighlightItem
in interfaceUICollectionViewDelegate
-
didUnhighlightItem
public void didUnhighlightItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
didUnhighlightItem
in interfaceUICollectionViewDelegate
-
shouldSelectItem
public boolean shouldSelectItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
shouldSelectItem
in interfaceUICollectionViewDelegate
-
shouldDeselectItem
public boolean shouldDeselectItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
shouldDeselectItem
in interfaceUICollectionViewDelegate
-
didSelectItem
public void didSelectItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
didSelectItem
in interfaceUICollectionViewDelegate
-
didDeselectItem
public void didDeselectItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
didDeselectItem
in interfaceUICollectionViewDelegate
-
willDisplayCell
public void willDisplayCell(UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath)
- Specified by:
willDisplayCell
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 8.0 and later.
-
willDisplaySupplementaryView
public void willDisplaySupplementaryView(UICollectionView collectionView, UICollectionReusableView view, java.lang.String elementKind, NSIndexPath indexPath)
- Specified by:
willDisplaySupplementaryView
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 8.0 and later.
-
didEndDisplayingCell
public void didEndDisplayingCell(UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath)
- Specified by:
didEndDisplayingCell
in interfaceUICollectionViewDelegate
-
didEndDisplayingSupplementaryView
public void didEndDisplayingSupplementaryView(UICollectionView collectionView, UICollectionReusableView view, java.lang.String elementKind, NSIndexPath indexPath)
- Specified by:
didEndDisplayingSupplementaryView
in interfaceUICollectionViewDelegate
-
shouldShowMenuForItem
public boolean shouldShowMenuForItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
shouldShowMenuForItem
in interfaceUICollectionViewDelegate
-
canPerformAction
public boolean canPerformAction(UICollectionView collectionView, org.robovm.objc.Selector action, NSIndexPath indexPath, NSObject sender)
- Specified by:
canPerformAction
in interfaceUICollectionViewDelegate
-
performAction
public void performAction(UICollectionView collectionView, org.robovm.objc.Selector action, NSIndexPath indexPath, NSObject sender)
- Specified by:
performAction
in interfaceUICollectionViewDelegate
-
getTransitionLayout
public UICollectionViewTransitionLayout getTransitionLayout(UICollectionView collectionView, UICollectionViewLayout fromLayout, UICollectionViewLayout toLayout)
- Specified by:
getTransitionLayout
in interfaceUICollectionViewDelegate
-
canFocusItem
public boolean canFocusItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
canFocusItem
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 9.0 and later.
-
shouldUpdateFocus
public boolean shouldUpdateFocus(UICollectionView collectionView, UICollectionViewFocusUpdateContext context)
- Specified by:
shouldUpdateFocus
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 9.0 and later.
-
didUpdateFocus
public void didUpdateFocus(UICollectionView collectionView, UICollectionViewFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)
- Specified by:
didUpdateFocus
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 9.0 and later.
-
getIndexPathForPreferredFocusedView
public NSIndexPath getIndexPathForPreferredFocusedView(UICollectionView collectionView)
- Specified by:
getIndexPathForPreferredFocusedView
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 9.0 and later.
-
getTargetIndexPathForMoveFromItem
public NSIndexPath getTargetIndexPathForMoveFromItem(UICollectionView collectionView, NSIndexPath originalIndexPath, NSIndexPath proposedIndexPath)
- Specified by:
getTargetIndexPathForMoveFromItem
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 9.0 and later.
-
getTargetContentOffsetForProposedContentOffset
public CGPoint getTargetContentOffsetForProposedContentOffset(UICollectionView collectionView, CGPoint proposedContentOffset)
- Specified by:
getTargetContentOffsetForProposedContentOffset
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 9.0 and later.
-
shouldSpringLoadItem
public boolean shouldSpringLoadItem(UICollectionView collectionView, NSIndexPath indexPath, UISpringLoadedInteractionContext context)
- Specified by:
shouldSpringLoadItem
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 11.0 and later.
-
didScroll
public void didScroll(UIScrollView scrollView)
- Specified by:
didScroll
in interfaceUIScrollViewDelegate
-
didZoom
public void didZoom(UIScrollView scrollView)
- Specified by:
didZoom
in interfaceUIScrollViewDelegate
- Since:
- Available in iOS 3.2 and later.
-
willBeginDragging
public void willBeginDragging(UIScrollView scrollView)
- Specified by:
willBeginDragging
in interfaceUIScrollViewDelegate
-
willEndDragging
public void willEndDragging(UIScrollView scrollView, CGPoint velocity, CGPoint targetContentOffset)
- Specified by:
willEndDragging
in interfaceUIScrollViewDelegate
- Since:
- Available in iOS 5.0 and later.
-
didEndDragging
public void didEndDragging(UIScrollView scrollView, boolean decelerate)
- Specified by:
didEndDragging
in interfaceUIScrollViewDelegate
-
willBeginDecelerating
public void willBeginDecelerating(UIScrollView scrollView)
- Specified by:
willBeginDecelerating
in interfaceUIScrollViewDelegate
-
didEndDecelerating
public void didEndDecelerating(UIScrollView scrollView)
- Specified by:
didEndDecelerating
in interfaceUIScrollViewDelegate
-
didEndScrollingAnimation
public void didEndScrollingAnimation(UIScrollView scrollView)
- Specified by:
didEndScrollingAnimation
in interfaceUIScrollViewDelegate
-
getViewForZooming
public UIView getViewForZooming(UIScrollView scrollView)
- Specified by:
getViewForZooming
in interfaceUIScrollViewDelegate
-
willBeginZooming
public void willBeginZooming(UIScrollView scrollView, UIView view)
- Specified by:
willBeginZooming
in interfaceUIScrollViewDelegate
- Since:
- Available in iOS 3.2 and later.
-
didEndZooming
public void didEndZooming(UIScrollView scrollView, UIView view, double scale)
- Specified by:
didEndZooming
in interfaceUIScrollViewDelegate
-
shouldScrollToTop
public boolean shouldScrollToTop(UIScrollView scrollView)
- Specified by:
shouldScrollToTop
in interfaceUIScrollViewDelegate
-
didScrollToTop
public void didScrollToTop(UIScrollView scrollView)
- Specified by:
didScrollToTop
in interfaceUIScrollViewDelegate
-
scrollViewDidChangeAdjustedContentInset
public void scrollViewDidChangeAdjustedContentInset(UIScrollView scrollView)
- Specified by:
scrollViewDidChangeAdjustedContentInset
in interfaceUIScrollViewDelegate
- Since:
- Available in iOS 11.0 and later.
-
getNumberOfItemsInSection
public long getNumberOfItemsInSection(UICollectionView collectionView, long section)
- Specified by:
getNumberOfItemsInSection
in interfaceUICollectionViewDataSource
-
getCellForItem
public UICollectionViewCell getCellForItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
getCellForItem
in interfaceUICollectionViewDataSource
-
getNumberOfSections
public long getNumberOfSections(UICollectionView collectionView)
- Specified by:
getNumberOfSections
in interfaceUICollectionViewDataSource
-
getViewForSupplementaryElement
public UICollectionReusableView getViewForSupplementaryElement(UICollectionView collectionView, java.lang.String kind, NSIndexPath indexPath)
- Specified by:
getViewForSupplementaryElement
in interfaceUICollectionViewDataSource
-
canMoveItemAt
public boolean canMoveItemAt(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
canMoveItemAt
in interfaceUICollectionViewDataSource
- Since:
- Available in iOS 9.0 and later.
-
moveItemAt
public void moveItemAt(UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
- Specified by:
moveItemAt
in interfaceUICollectionViewDataSource
- Since:
- Available in iOS 9.0 and later.
-
indexTitlesForCollectionView
public NSArray<NSString> indexTitlesForCollectionView(UICollectionView collectionView)
- Specified by:
indexTitlesForCollectionView
in interfaceUICollectionViewDataSource
-
indexPathForIndexTitle
public NSIndexPath indexPathForIndexTitle(UICollectionView collectionView, java.lang.String title, long index)
- Specified by:
indexPathForIndexTitle
in interfaceUICollectionViewDataSource
-
-