UICollectionViewDelegate_Extensions.CanFocusItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath) UICollectionViewDelegate_Extensions.CanFocusItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath) Method

Definition

Whether the item at indexPath can be focused.

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

Parameters

This
IUICollectionViewDelegate IUICollectionViewDelegate

The instance on which this extension method operates.

collectionView
UICollectionView UICollectionView

The UICollectionView is associated with this.

indexPath
NSIndexPath NSIndexPath

The NSIndexPath of the item being checked.

Returns

Returns true if the item can be focused.

Remarks

If this method is not implemented, the item's CanBecomeFocused property will be checked.

Applies to