Edytuj

Udostępnij za pośrednictwem


UICollectionViewSource.ShouldUpdateFocus Method

Definition

Called prior to a cell in the collectionView either losing or receiving focus. If either focus environment returns false, the focus update is canceled.

[Foundation.Export("collectionView:shouldUpdateFocusInContext:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldUpdateFocus (UIKit.UICollectionView collectionView, UIKit.UICollectionViewFocusUpdateContext context);
abstract member ShouldUpdateFocus : UIKit.UICollectionView * UIKit.UICollectionViewFocusUpdateContext -> bool
override this.ShouldUpdateFocus : UIKit.UICollectionView * UIKit.UICollectionViewFocusUpdateContext -> bool

Parameters

collectionView
UICollectionView

The collection view that originated the request.

Returns

Attributes

Applies to