Skip to main content

AppleTvContextualActionProps

AppleTvContextualActionProps = object

When you set a value for the AppleTvContextualAction properties, the player presents the controls immediately. To present them only during a relevant section of the content, set the startAt and endAt properties to define the presentation range.

Properties

endAt

endAt: number

The time in seconds when the contextual action stops being visible.


icon

icon: string

The name of the image resource in the Xcode app project.


onPress()

onPress: () => void

Action to be executed when the button is pressed.

Returns

void


startAt

startAt: number

The time in seconds when the contextual action becomes visible.


title

title: string

The text of the contextual action button.