Share via


UICollectionViewSource.GetIndexPathForPreferredFocusedView Method

Definition

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

[Foundation.Export("indexPathForPreferredFocusedViewInCollectionView:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSIndexPath? GetIndexPathForPreferredFocusedView(UIKit.UICollectionView collectionView);
[<Foundation.Export("indexPathForPreferredFocusedViewInCollectionView:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetIndexPathForPreferredFocusedView : UIKit.UICollectionView -> Foundation.NSIndexPath
override this.GetIndexPathForPreferredFocusedView : UIKit.UICollectionView -> Foundation.NSIndexPath

Parameters

collectionView
UICollectionView

The collection view that originated the request.

Returns

Implements

Attributes

Remarks

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

Applies to