Share via


UICollectionViewSource.CanPerformAction Method

Definition

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

[Foundation.Export("collectionView:canPerformAction:forItemAtIndexPath:withSender:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool CanPerformAction(UIKit.UICollectionView collectionView, ObjCRuntime.Selector action, Foundation.NSIndexPath indexPath, Foundation.NSObject sender);
[<Foundation.Export("collectionView:canPerformAction:forItemAtIndexPath:withSender:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CanPerformAction : UIKit.UICollectionView * ObjCRuntime.Selector * Foundation.NSIndexPath * Foundation.NSObject -> bool
override this.CanPerformAction : UIKit.UICollectionView * ObjCRuntime.Selector * Foundation.NSIndexPath * Foundation.NSObject -> bool

Parameters

collectionView
UICollectionView

The collection view that originated the request.

action
Selector
indexPath
NSIndexPath
sender
NSObject

Returns

The default value is false.

Implements

Attributes

Remarks

This method is called after ShouldShowMenu(IUICollectionViewDelegate, UICollectionView, NSIndexPath) and allows the developer to remove particular menu items from the displayed editing menu.

Applies to