Bewerken

Delen via


UIPresentationController.DidUpdateFocus Method

Definition

Indicates that the focus changed as detailed in the context.

[Foundation.Export("didUpdateFocusInContext:withAnimationCoordinator:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DidUpdateFocus (UIKit.UIFocusUpdateContext context, UIKit.UIFocusAnimationCoordinator coordinator);
abstract member DidUpdateFocus : UIKit.UIFocusUpdateContext * UIKit.UIFocusAnimationCoordinator -> unit
override this.DidUpdateFocus : UIKit.UIFocusUpdateContext * UIKit.UIFocusAnimationCoordinator -> unit

Parameters

context
UIFocusUpdateContext

A UICollectionViewFocusUpdateContext object containing metadata.

coordinator
UIFocusAnimationCoordinator

A UIFocusAnimationCoordinator object containing metadata.

Implements

Attributes

Remarks

The values of PreviouslyFocusedIndexPath and NextFocusedIndexPath may be null if focus was previously not within, or just departed, the collectionView.

Applies to