UICollectionViewSource.CanPerformAction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.