Class

TVCaptionButtonView

A button-like view that responds to user interactions.

Declaration

@interface TVCaptionButtonView : TVLockupView

Overview

A caption button responds to user interactions and can contain an image or text. When the caption button comes into focus, the caption button expands in the leading, top, and trailing directions. The user can click the caption button to select an option. As the user moves their finger on the Siri Remote up and down, or left and right, the caption button may limit the direction of the tilt based on the type set in motionDirection.

A darkened figure with a highlighted button. The button contains a stylized TV icon with the word preview below the button.

Topics

Setting the Motion Direction

motionDirection

The direction that the caption button view tilts in response to user interaction on the remote.

TVCaptionButtonViewMotionDirection

The directions that the caption button view can tilt in response to user interactions on the remote.

Configuring the Caption Button

contentImage

The image displayed in the main content view.

contentText

The text displayed in the main content view.

title

The title for the caption button.

subtitle

The subtitle of the caption button.

Relationships

Inherits From

See Also

Lockup Views

TVLockupView

A focusable view that presents main content, like a movie poster, and an optional header and footer.

TVCardView

A view that responds to focus interaction with a motion effect that's applied to all of its subviews.

TVPosterView

A view that's optimized to display an image, a header, and a footer.

TVMonogramView

A specialized lockup view that contains a circular image of a person or the person's initials, along with a footer view.