Class

UIFocusUpdateContext

An object that provides information relevant to a specific focus update from one view to another.

Declaration

@interface UIFocusUpdateContext : NSObject

Overview

Focus update context objects are ephemeral and are usually discarded after the update is finished. The UIFocus APIs create a single high-level software interface for controlling focus in apps that use focus-based input.

Topics

Locating Focus Direction

previouslyFocusedView

The view that was focused before the focus update.

nextFocusedView

The view that takes the focus after the focus update.

focusHeading

The heading in which the focus update is occurring.

UIFocusHeading

The general type of an event.

Getting Related Focus Items

previouslyFocusedItem

The item that was focused before the update.

nextFocusedItem

The item to be focused after the update.

Responding to Focus-Related Keys and Notifications

UIFocusDidUpdateNotification

The focus for the UI has been updated.

UIFocusMovementDidFailNotification

The focus failed to move to another item.

UIFocusUpdateAnimationCoordinatorKey

Updates the animation coordinator.

UIFocusUpdateContextKey

Updates the context key.

Relationships

Inherits From

See Also

Focus Interactions

About Focus Interactions for Apple TV

Design and implement intuitive control schemes for menus and interactive user interface layouts.

Adding User-Focusable Elements to a tvOS App

Create intuitive and easily manipulated user-interactive controls for your tvOS app.

UIFocusEnvironment

A set of methods that define the focus behavior for a branch of the view hierarchy.

UIFocusSystem

Queries and reevaluates the currently focused item.

UIFocusItem

An object that can become focused.

UIFocusMovementHint

Provides movement hint information for the focused item.

UIFocusItemContainer

The container responsible for providing geometric context to focus items within a given focus environment.

UIFocusItemScrollableContainer

A type of focus item container that supports automatic scrolling of focusable content.