iOS Guides | Samples

MonoTouch.UIKit.UICollectionViewController Class

A UIViewController subtype for controlling collection views.

See Also: UICollectionViewController

Syntax

[MonoTouch.Foundation.Register("UICollectionViewController", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 6, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class UICollectionViewController : UIViewController, IUICollectionViewSource, IDisposable

Remarks

The UICollectionViewController is a subtype of UIViewController for controlling collections of UICollectionViewCells as well as supplementary and decoration UIViews.

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UICollectionViewController are listed below.

See Also: UIViewController

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
Constructor, initializes a new instance of this class, configuring the collection view with the provided layout.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.
Constructor, initializes a new instance of this class, configuring the collection view from a specified nib file.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
ClearsSelectionOnViewWillAppearBoolean. Whether this UICollectionViewController clears the selection when the UICollectionView appears.
CollectionViewUICollectionView. The UICollectionView managed by this UICollectionViewController.
InstallsStandardGestureForInteractiveMovementBoolean. Whether the standard long-press gesture recognizer begins cell reordering.
[read-only]
LayoutUICollectionViewLayout. The UICollectionViewLayout used to initialize this UICollectionViewController. Read-only.
UseLayoutToLayoutNavigationTransitionsBoolean. Whether this UICollectionViewController coordinates transitions with a UINavigationController.

Public Methods

CanFocusItem(UICollectionView, NSIndexPath) : Boolean
Whether the item at indexPath can be focused.
CanMoveItem(UICollectionView, NSIndexPath) : Boolean
Whether the cell at the specified indexPath can be interactively moved.
CanPerformAction(UICollectionView, Selector, NSIndexPath, NSObject) : Boolean
Whether the edit menu should have Copy and Paste commands for the specified cell.
CellDisplayingEnded(UICollectionView, UICollectionViewCell, NSIndexPath)
Indicates that the cell at the specified indexPath has been removed.
DecelerationEnded(UIScrollView)
Indicates that, subsequent to scrolling, deceleration has completed.
DecelerationStarted(UIScrollView)
Indicates that deceleration of scrolling has begun.
DidUpdateFocus(UICollectionView, UICollectionViewFocusUpdateContext, UIFocusAnimationCoordinator)
Delegate method called shortly after focus has changed to a new UIView.
DidZoom(UIScrollView)
Indicates that a zoom has occurred in the UICollectionView.
DraggingEnded(UIScrollView, Boolean)
Indicates that dragging has completed.
DraggingStarted(UIScrollView)
Indicates that dragging has begun.
GetCell(UICollectionView, NSIndexPath) : UICollectionViewCell
Retrieves the UICollectionViewCell at the specified index.
GetIndexPathForPreferredFocusedView(UICollectionView) : NSIndexPath
When overridden, allows the developer to specify the item that should initially receive focus.
GetItemsCount(UICollectionView, Int32) : Int32
Returns the number of items in the specified section.
GetTargetContentOffset(UICollectionView, PointF) : PointF
When overridden, allows the developer to modify the content offset for layout and animation changes.
GetTargetIndexPathForMove(UICollectionView, NSIndexPath, NSIndexPath) : NSIndexPath
When overridden, allows the developer to modify the final location of a moved item. (For instance, to disallow a move to a particular proposedIndexPath.)
GetViewForSupplementaryElement(UICollectionView, NSString, NSIndexPath) : UICollectionReusableView
Returns the UICollectionReusableView for a supplementary view of the specified kind.
ItemDeselected(UICollectionView, NSIndexPath)
Indicates that a cell has been deselected.
ItemHighlighted(UICollectionView, NSIndexPath)
Indicates that a cell has been highlighted.
ItemSelected(UICollectionView, NSIndexPath)
Indicates that a cell has been selected.
ItemUnhighlighted(UICollectionView, NSIndexPath)
Indicates that a cell has been unhighlighted.
MoveItem(UICollectionView, NSIndexPath, NSIndexPath)
Moves the cell at sourceIndexPath to destinationIndexPath.
NumberOfSections(UICollectionView) : Int32
The number of sections in the UICollectionView.
PerformAction(UICollectionView, Selector, NSIndexPath, NSObject)
Performs a copy or paste operation on the data at the specified index.
ScrollAnimationEnded(UIScrollView)
Indicates that the scrolling animation has completed.
Scrolled(UIScrollView)
Indicates that scrolling occurred.
ScrolledToTop(UIScrollView)
Indicates that scrolling to the beginning of the collection occurred.
ShouldDeselectItem(UICollectionView, NSIndexPath) : Boolean
Whether the specified item should be deselected.
ShouldHighlightItem(UICollectionView, NSIndexPath) : Boolean
Whether the specified item should be highlighted.
ShouldScrollToTop(UIScrollView) : Boolean
Whether the collection should scroll to its beginning.
ShouldSelectItem(UICollectionView, NSIndexPath) : Boolean
Whether the specified item should be selected.
ShouldShowMenu(UICollectionView, NSIndexPath) : Boolean
Whether the edit menu should be shown for the specified item.
ShouldUpdateFocus(UICollectionView, UICollectionViewFocusUpdateContext) : Boolean
Called prior to the this either losing or receiving focus. If either focus environment returns false, the focus update is canceled.
SupplementaryViewDisplayingEnded(UICollectionView, UICollectionReusableView, NSString, NSIndexPath)
Indicates that a supplementary view's display has completed.
TransitionLayout(UICollectionView, UICollectionViewLayout, UICollectionViewLayout) : UICollectionViewTransitionLayout
The UICollectionViewTransitionLayout associated with this UIColllectionViewController.
ViewForZoomingInScrollView(UIScrollView) : UIView
The UIView to scale when zooming is about to occur.
WillDisplayCell(UICollectionView, UICollectionViewCell, NSIndexPath)
The cell at indexPath is about to be displayed.
WillDisplaySupplementaryView(UICollectionView, UICollectionReusableView, String, NSIndexPath)
Informs the delegate that the specified supplementary view is going to be displayed by the collection view.
WillEndDragging(UIScrollView, PointF, ref PointF)
Indicates that dragging will end shortly.
ZoomingEnded(UIScrollView, UIView, Single)
Indicates that zooming has completed.
ZoomingStarted(UIScrollView, UIView)
Indicates that zooming has begun.