Edit

Share via


UICollectionViewDelegate_Extensions Class

Definition

Extension methods to the IUICollectionViewDelegate interface to support all the methods from the UICollectionViewDelegate protocol.

public static class UICollectionViewDelegate_Extensions
type UICollectionViewDelegate_Extensions = class
Inheritance
UICollectionViewDelegate_Extensions

Remarks

The extension methods for IUICollectionViewDelegate allow developers to treat instances of the interface as having all the optional methods of the original UICollectionViewDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

CanFocusItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

Whether the item at indexPath can be focused.

CanPerformAction(IUICollectionViewDelegate, UICollectionView, Selector, NSIndexPath, NSObject)

Whether the cell at the specified indexPath supports the specified action.

CellDisplayingEnded(IUICollectionViewDelegate, UICollectionView, UICollectionViewCell, NSIndexPath)

Indicates that the cell at the specified indexPath has been removed.

DidUpdateFocus(IUICollectionViewDelegate, UICollectionView, UICollectionViewFocusUpdateContext, UIFocusAnimationCoordinator)

Indicates that the focus changed as detailed in the context.

GetIndexPathForPreferredFocusedView(IUICollectionViewDelegate, UICollectionView)

When overridden, allows the developer to specify the item that should initially receive focus.

GetTargetContentOffset(IUICollectionViewDelegate, UICollectionView, CGPoint)

When overridden, allows the developer to modify the content offset for layout and animation changes.

GetTargetIndexPathForMove(IUICollectionViewDelegate, UICollectionView, 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.)

ItemDeselected(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

Indicates that the cell at the specified indexPath has been deselected.

ItemHighlighted(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

Indicates that the cell at the specified indexPath has been highlighted.

ItemSelected(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

Indicates that the cell at the specified indexPath has been selected.

ItemUnhighlighted(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

Indicates that the cell at the specified indexPath has been unhighlighted.

PerformAction(IUICollectionViewDelegate, UICollectionView, Selector, NSIndexPath, NSObject)

Whether the cell at the specified indexPath supports the specified Copy or Paste action.

ShouldDeselectItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

Whether the cell at the specified indexPath should allow itself to be deselected.

ShouldHighlightItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

Whether the cell at the specified indexPath should allow itself to be highlighted.

ShouldSelectItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

Whether the cell at the specified indexPath allows itself to be selected.

ShouldShowMenu(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

Whether the cell at the specified indexPath should show an Action menu.

ShouldSpringLoadItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath, IUISpringLoadedInteractionContext)

Method that is called to indicate whether the identified item should springload in the specified context.

ShouldUpdateFocus(IUICollectionViewDelegate, UICollectionView, UICollectionViewFocusUpdateContext)

When overridden, allows the developer to prevent the focus change specified in context.

SupplementaryViewDisplayingEnded(IUICollectionViewDelegate, UICollectionView, UICollectionReusableView, NSString, NSIndexPath)

Indicates that the supplementary view at the specified indexPath has been removed.

TransitionLayout(IUICollectionViewDelegate, UICollectionView, UICollectionViewLayout, UICollectionViewLayout)

The UICollectionViewTransitionLayout to be used when moving from the specified fromLayout to the toLayout.

WillDisplayCell(IUICollectionViewDelegate, UICollectionView, UICollectionViewCell, NSIndexPath)

The cell is about to be displayed.

WillDisplaySupplementaryView(IUICollectionViewDelegate, UICollectionView, UICollectionReusableView, String, NSIndexPath)

The supplementary view is about to be displayed.

Applies to