UICollectionViewDelegate_Extensions.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.
public static bool CanPerformAction (this UIKit.IUICollectionViewDelegate This, UIKit.UICollectionView collectionView, ObjCRuntime.Selector action, Foundation.NSIndexPath indexPath, Foundation.NSObject sender);
static member CanPerformAction : UIKit.IUICollectionViewDelegate * UIKit.UICollectionView * ObjCRuntime.Selector * Foundation.NSIndexPath * Foundation.NSObject -> bool
Parameters
The instance on which this extension method operates.
- collectionView
- UICollectionView
The collection view that originated the request.
- action
- Selector
- indexPath
- NSIndexPath
- sender
- NSObject
Returns
The default value is false
.
Remarks
This method is called after ShouldShowMenu(IUICollectionViewDelegate, UICollectionView, NSIndexPath) and allows the developer to remove particular menu items from the displayed editing menu.