UICollectionViewController.ShouldDeselectItem Method

Definition

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

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

Parameters

collectionView
UICollectionView

The collection view that originated the request.

indexPath
NSIndexPath

Returns

Implements

Attributes

Applies to