UICollectionViewDelegate_Extensions.CanFocusItem 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

The instance on which this extension method operates.

collectionView
UICollectionView

The UICollectionView is associated with this.

indexPath
NSIndexPath

The NSIndexPath of the item being checked.

Returns

Returns true if the item can be focused.

Attributes

Remarks

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

Applies to