Partager via


UICollectionViewSource.ShouldSpringLoadItem Méthode

Définition

Méthode appelée pour indiquer si l’élément identifié doit être springload dans le contexte spécifié.

[Foundation.Export("collectionView:shouldSpringLoadItemAtIndexPath:withContext:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldSpringLoadItem (UIKit.UICollectionView collectionView, Foundation.NSIndexPath indexPath, UIKit.IUISpringLoadedInteractionContext context);
abstract member ShouldSpringLoadItem : UIKit.UICollectionView * Foundation.NSIndexPath * UIKit.IUISpringLoadedInteractionContext -> bool
override this.ShouldSpringLoadItem : UIKit.UICollectionView * Foundation.NSIndexPath * UIKit.IUISpringLoadedInteractionContext -> bool

Paramètres

collectionView
UICollectionView

Vue de collection à l’origine de la demande.

indexPath
NSIndexPath

Chemin d’accès à l’index de l’élément.

context
IUISpringLoadedInteractionContext

Contexte d’interaction à ressort.

Retours

Attributs

S’applique à