Compartir a través de


UICollectionViewDelegate.GetTargetIndexPathForMove Método

Definición

Cuando se invalida, permite al desarrollador modificar la ubicación final de un elemento movido. (Por ejemplo, para no permitir un traslado a un determinado proposedIndexPath).

[Foundation.Export("collectionView:targetIndexPathForMoveFromItemAtIndexPath:toProposedIndexPath:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Foundation.NSIndexPath GetTargetIndexPathForMove (UIKit.UICollectionView collectionView, Foundation.NSIndexPath originalIndexPath, Foundation.NSIndexPath proposedIndexPath);
abstract member GetTargetIndexPathForMove : UIKit.UICollectionView * Foundation.NSIndexPath * Foundation.NSIndexPath -> Foundation.NSIndexPath
override this.GetTargetIndexPathForMove : UIKit.UICollectionView * Foundation.NSIndexPath * Foundation.NSIndexPath -> Foundation.NSIndexPath

Parámetros

collectionView
UICollectionView

Vista de colección que originó la solicitud.

originalIndexPath
NSIndexPath
proposedIndexPath
NSIndexPath

Devoluciones

Atributos

Se aplica a