iOS Guides | Samples

MonoTouch.UIKit.UICollectionViewDelegateFlowLayout Class

Used to customize spacing and react to events in a UICollectionViewFlowLayout.

See Also: UICollectionViewDelegateFlowLayout

Syntax

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

Remarks

Overriding methods in this class allow the application developer to control the spacing in a grid-based UICollectionViewFlowLayout.

Additionally, this delegate can be used to respond to events raised by a UICollectionViewFlowLayout.

Related content

Requirements

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

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

See Also: UICollectionViewDelegate

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

override
CanFocusItem(UICollectionView, NSIndexPath) : Boolean
Whether the item at indexPath can be focused.
override
CanPerformAction(UICollectionView, Selector, NSIndexPath, NSObject) : Boolean
Whether the cell at the specified index can perform a copy or paste operation.
override
CellDisplayingEnded(UICollectionView, UICollectionViewCell, NSIndexPath)
Indicates that displaying has ended for the UICollectionView's cells.
override
DidUpdateFocus(UICollectionView, UICollectionViewFocusUpdateContext, UIFocusAnimationCoordinator)
Indicates that the focus changed as detailed in the context.
override
GetIndexPathForPreferredFocusedView(UICollectionView) : NSIndexPath
When overridden, allows the developer to specify the item that should initially receive focus.
GetInsetForSection(UICollectionView, UICollectionViewLayout, Int32) : UIEdgeInsets
The margins to apply to content in the specified section.
GetMinimumInteritemSpacingForSection(UICollectionView, UICollectionViewLayout, Int32) : Single
The spacing between items in the rows or columns of a section.
GetMinimumLineSpacingForSection(UICollectionView, UICollectionViewLayout, Int32) : Single
The spacing between rows or columns of a section.
GetReferenceSizeForFooter(UICollectionView, UICollectionViewLayout, Int32) : SizeF
The size of the footer view for the specified section.
GetReferenceSizeForHeader(UICollectionView, UICollectionViewLayout, Int32) : SizeF
The size of the header view for the specified section.
GetSizeForItem(UICollectionView, UICollectionViewLayout, NSIndexPath) : SizeF
The size of the specified item's cell.
override
GetTargetContentOffset(UICollectionView, PointF) : PointF
When overridden, allows the developer to modify the content offset for layout and animation changes.
override
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.)
override
ItemDeselected(UICollectionView, NSIndexPath)
Indicates that the cell at the specified indexPath has been deselected.
override
ItemHighlighted(UICollectionView, NSIndexPath)
Indicates that the cell at the specified indexPath has been highlighted.
override
ItemSelected(UICollectionView, NSIndexPath)
Indicates that the cell at the specified indexPath has been selected.
override
ItemUnhighlighted(UICollectionView, NSIndexPath)
Indicates that the cell at the specified indexPath has been unhighlighted.
override
PerformAction(UICollectionView, Selector, NSIndexPath, NSObject)
Whether the cell at the specified indexPath supports the specified Copy or Paste action.
override
ShouldDeselectItem(UICollectionView, NSIndexPath) : Boolean
Whether the cell at the specified indexPath should allow itself to be deselected.
override
ShouldHighlightItem(UICollectionView, NSIndexPath) : Boolean
Whether the cell at the specified indexPath should allow itself to be highlighted.
override
ShouldSelectItem(UICollectionView, NSIndexPath) : Boolean
Whether the cell at the specified indexPath allows itself to be selected.
override
ShouldShowMenu(UICollectionView, NSIndexPath) : Boolean
Whether the cell at the specified indexPath should show an Action menu.
override
ShouldUpdateFocus(UICollectionView, UICollectionViewFocusUpdateContext) : Boolean
When overridden, allows the developer to prevent the focus change specified in context.
override
SupplementaryViewDisplayingEnded(UICollectionView, UICollectionReusableView, NSString, NSIndexPath)
Indicates that the supplementary view at the specified indexPath has been removed.
override
TransitionLayout(UICollectionView, UICollectionViewLayout, UICollectionViewLayout) : UICollectionViewTransitionLayout
The UICollectionViewTransitionLayout to be used when moving from the specified fromLayout to the toLayout.
override
WillDisplayCell(UICollectionView, UICollectionViewCell, NSIndexPath)
The cell is about to be displayed.
override
WillDisplaySupplementaryView(UICollectionView, UICollectionReusableView, String, NSIndexPath)
The supplementary view is about to be displayed.