UICollectionViewController.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 edit menu should have Copy and Paste commands for the specified cell.
[Foundation.Export("collectionView:canPerformAction:forItemAtIndexPath:withSender:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool CanPerformAction (UIKit.UICollectionView collectionView, ObjCRuntime.Selector action, Foundation.NSIndexPath indexPath, Foundation.NSObject sender);
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
Collection view managed by this view controller.
- action
- Selector
The action that is to be performed.
- indexPath
- NSIndexPath
Index path for the affected item.
- sender
- NSObject
Initiator for the action.
Returns
Returns true
if the specified command corresponding to the action should appear in the editing menu.
- Attributes