Class

TVApplicationController

An object that bridges the UI, navigation stack, storage, and event handling from JavaScript.

Declaration

@interface TVApplicationController : NSObject

Overview

The TVApplicationController class establishes the JavaScript environment and provides a centralized point of control and coordination between the JavaScript environment and tvOS.

Topics

Creating a New App Controller

- initWithContext:window:delegate:

Initializes and returns an app controller.

Controlling and Handling Events

- evaluateInJavaScriptContext:completion:

Evaluates a block in the JavaScript execution queue.

- stop

Ends the app life cycle.

Getting the Delegate

delegate

The delegate of the app controller object.

TVApplicationControllerDelegate

A protocol used to observe and manage the different states of an application controller.

Examining App Controller Properties

context

The launch information for the application controller.

navigationController

The navigation controller that is bridged from JavaScript to tvOS.

window

A reference to the window supplied when the app controller was initialized.

Relationships

Inherits From

See Also

JavaScript Environment

TVApplicationControllerContext

Launch information provided to the TV application controller.