UICollectionViewDelegate_Extensions.ShouldUpdateFocus(IUICollectionViewDelegate, UICollectionView, UICollectionViewFocusUpdateContext) UICollectionViewDelegate_Extensions.ShouldUpdateFocus(IUICollectionViewDelegate, UICollectionView, UICollectionViewFocusUpdateContext) Method

Definition

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

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool ShouldUpdateFocus (this UIKit.IUICollectionViewDelegate This, UIKit.UICollectionView collectionView, UIKit.UICollectionViewFocusUpdateContext context);
static member ShouldUpdateFocus : UIKit.IUICollectionViewDelegate * UIKit.UICollectionView * UIKit.UICollectionViewFocusUpdateContext -> bool

Parameters

This
IUICollectionViewDelegate IUICollectionViewDelegate

The instance on which this extension method operates.

collectionView
UICollectionView UICollectionView

The collection view that originated the request.

Returns

true if the focus specified in context is allowed.

Applies to