Share via


IUICollectionViewDelegate.ShouldSelectItem Method

Definition

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

[Foundation.Export("collectionView:shouldSelectItemAtIndexPath:")]
[Foundation.OptionalMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool ShouldSelectItem(UIKit.UICollectionView collectionView, Foundation.NSIndexPath indexPath);
[<Foundation.Export("collectionView:shouldSelectItemAtIndexPath:")>]
[<Foundation.OptionalMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ShouldSelectItem : UIKit.UICollectionView * Foundation.NSIndexPath -> bool
override this.ShouldSelectItem : UIKit.UICollectionView * Foundation.NSIndexPath -> bool

Parameters

collectionView
UICollectionView

The collection view that originated the request.

indexPath
NSIndexPath

Returns

Attributes

Applies to