Contents

TVTopShelfItem

An item that uses an image to represent a movie, show, or other content in the top shelf.

Declaration

class TVTopShelfItem

Overview

A TVTopShelfItem object manages basic traits for all items, including the images they display and the actions they trigger. Typically, you create TVTopShelfCarouselItem or TVTopShelfSectionedItem objects for your interface. For inset interfaces, you can also create TVTopShelfItem objects directly.

After creating an item object, assign an image and one or more actions to it, and update any other relevant properties. Return the item object as part of the content for your interface.

Each unique item in your app must have a correspondingly unique identifier, and the identifier for each item must remain stable throughout the life of your app. Do not assign a different unique identifier for the same underlying item each time you create a TVTopShelfItem object for it.

Topics

Creating a Top Shelf Item

Assigning Actions to the Item

Providing an Image for the Item

Getting the Item Attributes

See Also

Common types