Share via


UICollectionViewSource.GetTargetIndexPathForMove Method

Definition

When overridden, allows the developer to modify the final ___location of a moved item. (For instance, to disallow a move to a particular proposedIndexPath.)

[Foundation.Export("collectionView:targetIndexPathForMoveFromItemAtIndexPath:toProposedIndexPath:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSIndexPath GetTargetIndexPathForMove(UIKit.UICollectionView collectionView, Foundation.NSIndexPath originalIndexPath, Foundation.NSIndexPath proposedIndexPath);
[<Foundation.Export("collectionView:targetIndexPathForMoveFromItemAtIndexPath:toProposedIndexPath:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetTargetIndexPathForMove : UIKit.UICollectionView * Foundation.NSIndexPath * Foundation.NSIndexPath -> Foundation.NSIndexPath
override this.GetTargetIndexPathForMove : UIKit.UICollectionView * Foundation.NSIndexPath * Foundation.NSIndexPath -> Foundation.NSIndexPath

Parameters

collectionView
UICollectionView

The collection view that originated the request.

originalIndexPath
NSIndexPath
proposedIndexPath
NSIndexPath

Returns

Implements

Attributes

Applies to