Share via


UICollectionViewDelegate_Extensions.GetIndexPathForPreferredFocusedView Method

Definition

When overridden, allows the developer to specify the item that should initially receive focus.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSIndexPath? GetIndexPathForPreferredFocusedView(this UIKit.IUICollectionViewDelegate This, UIKit.UICollectionView collectionView);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetIndexPathForPreferredFocusedView : UIKit.IUICollectionViewDelegate * UIKit.UICollectionView -> Foundation.NSIndexPath

Parameters

collectionView
UICollectionView

The collection view that originated the request.

Returns

Attributes

Remarks

The value returned by this method will be ignored on re-entry if the collectionView object's RemembersLastFocusedIndexPath is true.

Applies to