Sdílet prostřednictvím


UICollectionViewController.ShouldUpdateFocus Method

Definition

When overridden, allows the developer to prevent the focus change specified in context.

[Foundation.Export("collectionView:shouldUpdateFocusInContext:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool ShouldUpdateFocus(UIKit.UICollectionView collectionView, UIKit.UICollectionViewFocusUpdateContext context);
[<Foundation.Export("collectionView:shouldUpdateFocusInContext:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
override this.ShouldUpdateFocus : UIKit.UICollectionView * UIKit.UICollectionViewFocusUpdateContext -> bool

Parameters

collectionView
UICollectionView

The collection view that originated the request.

Returns

true if the focus specified in context is allowed.

Implements

Attributes

Applies to