Class

UIFocusUpdateContext

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

Declaration

class 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

var previouslyFocusedView: UIView?

The view that was focused before the focus update.

var nextFocusedView: UIView?

The view that takes the focus after the focus update.

var focusHeading: UIFocusHeading

The heading in which the focus update is occurring.

struct UIFocusHeading

The general type of an event.

Getting Related Focus Items

var previouslyFocusedItem: UIFocusItem?

The item that was focused before the update.

var nextFocusedItem: UIFocusItem?

The item to be focused after the update.

Responding to Focus-Related Keys and Notifications

Relationships

Inherits From

Conforms To

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.

protocol UIFocusEnvironment

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

class UIFocusSystem

Queries and reevaluates the currently focused item.

protocol UIFocusItem

An object that can become focused.

class UIFocusMovementHint

Provides movement hint information for the focused item.

protocol UIFocusItemContainer

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

protocol UIFocusItemScrollableContainer

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