iOS Guides | Samples

MonoTouch.UIKit.UICollectionViewSource Class

An alternative to the UICollectionViewDelegate and UICollectionViewDataSource classes.

See Also: UICollectionViewSource

Syntax

[MonoTouch.Foundation.Model]
[MonoTouch.Foundation.Protocol]
[MonoTouch.Foundation.Register("UICollectionViewSource", false)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 6, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class UICollectionViewSource : NSObject, IUICollectionViewSource, IDisposable

See Also

Remarks

The UICollectionViewSource combines the UICollectionViewDelegate and UICollectionViewDataSource APIs in a single convenience class. It is available via the UICollectionView.Source property.

Related content

Requirements

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

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

See Also: NSObject

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.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Methods

CanFocusItem(UICollectionView, NSIndexPath) : Boolean
Whether the item at indexPath can be focused.
CanMoveItem(UICollectionView, NSIndexPath) : Boolean
CanPerformAction(UICollectionView, Selector, NSIndexPath, NSObject) : Boolean
Whether the cell at the specified indexPath supports the specified action.
CellDisplayingEnded(UICollectionView, UICollectionViewCell, NSIndexPath)
Indicates that the specified cell has stopped displaying.
DecelerationEnded(UIScrollView)
Indicates that deceleration from a scrolling event has ended.
DecelerationStarted(UIScrollView)
Indicates that deceleration from a scrolling event has begun.
DidUpdateFocus(UICollectionView, UICollectionViewFocusUpdateContext, UIFocusAnimationCoordinator)
Indicates that the focus changed as detailed in the context.
DidZoom(UIScrollView)
Indicates that a zoom occurred in the UIScrollView.
DraggingEnded(UIScrollView, Boolean)
Indicates that dragging has ended in the UIScrollView.
DraggingStarted(UIScrollView)
Indicates that dragging has begun in the UIScrollView.
GetCell(UICollectionView, NSIndexPath) : UICollectionViewCell
Retrieves the UICollectionViewCell at the specified NSIndexPath.
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
Retrieves the UICollectionReusableView used for the supplement elementKind at the specified indexPath.
ItemDeselected(UICollectionView, NSIndexPath)
Indicates that the item at the specified indexPath has been deselected.
ItemHighlighted(UICollectionView, NSIndexPath)
Indicates that the item at the specified indexPath has been highlighted.
ItemSelected(UICollectionView, NSIndexPath)
Indicates that the item at the specified indexPath has been selected.
ItemUnhighlighted(UICollectionView, NSIndexPath)
Indicates that the item at the specified indexPath has been unhighlighted.
MoveItem(UICollectionView, NSIndexPath, NSIndexPath)
NumberOfSections(UICollectionView) : Int32
Returns the number of sections in the collectionView.
PerformAction(UICollectionView, Selector, NSIndexPath, NSObject)
Performs the specified action.
ScrollAnimationEnded(UIScrollView)
Indicates that all animations relating to a scrolling event have ended.
Scrolled(UIScrollView)
Indicates that scrolling has occurred.
ScrolledToTop(UIScrollView)
Indicates that scrolling has reached the beginning of the scrollView.
ShouldDeselectItem(UICollectionView, NSIndexPath) : Boolean
Whether the item at the specified indexPath should be deselected.
ShouldHighlightItem(UICollectionView, NSIndexPath) : Boolean
Whether the item at the specified indexPath should be highlighted.
ShouldScrollToTop(UIScrollView) : Boolean
Whether the specified scrollView should be allowed to scroll to its beginning.
ShouldSelectItem(UICollectionView, NSIndexPath) : Boolean
Whether the item at the specified indexPath should be selected.
ShouldShowMenu(UICollectionView, NSIndexPath) : Boolean
Whether the item at the specified indexPath should show an action menu.
ShouldUpdateFocus(UICollectionView, UICollectionViewFocusUpdateContext) : Boolean
Called prior to a cell in the collectionView either losing or receiving focus. If either focus environment returns false, the focus update is canceled.
SupplementaryViewDisplayingEnded(UICollectionView, UICollectionReusableView, NSString, NSIndexPath)
Indicates that the supplementary view has finished displaying.
TransitionLayout(UICollectionView, UICollectionViewLayout, UICollectionViewLayout) : UICollectionViewTransitionLayout
The UICollectionViewTransitionLayout used to move between the specified UICollectionViewLayouts.
ViewForZoomingInScrollView(UIScrollView) : UIView
The UIView to scale when zooming occurs in the specified scrollView.
WillDisplayCell(UICollectionView, UICollectionViewCell, NSIndexPath)
The cell is about to be displayed.
WillDisplaySupplementaryView(UICollectionView, UICollectionReusableView, String, NSIndexPath)
The supplementary view is about to be displayed.
WillEndDragging(UIScrollView, PointF, ref PointF)
Indicates that dragging is about to end.
ZoomingEnded(UIScrollView, UIView, Single)
Indicates that zooming has ended.
ZoomingStarted(UIScrollView, UIView)
Indicates that zooming has begun.