<!--
{
  "availability" : [
    "tvOS: 9.0.0 - 18.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "TVMLKit",
  "identifier" : "/documentation/TVMLKit/TVApplicationController",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "TVMLKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TVApplicationController"
  },
  "title" : "TVApplicationController"
}
-->

# TVApplicationController

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

```
class TVApplicationController
```

## 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

[`init(context:window:delegate:)`](/documentation/TVMLKit/TVApplicationController/init(context:window:delegate:))

Initializes and returns an app controller.

### Controlling and Handling Events

[`evaluate(inJavaScriptContext:completion:)`](/documentation/TVMLKit/TVApplicationController/evaluate(inJavaScriptContext:completion:))

Evaluates a block in the JavaScript execution queue.

[`stop()`](/documentation/TVMLKit/TVApplicationController/stop())

Ends the app life cycle.

### Getting the Delegate

[`delegate`](/documentation/TVMLKit/TVApplicationController/delegate)

The delegate of the app controller object.

[`TVApplicationControllerDelegate`](/documentation/TVMLKit/TVApplicationControllerDelegate)

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

### Examining App Controller Properties

[`context`](/documentation/TVMLKit/TVApplicationController/context)

The launch information for the application controller.

[`navigationController`](/documentation/TVMLKit/TVApplicationController/navigationController)

The navigation controller that is bridged from JavaScript to tvOS.

[`window`](/documentation/TVMLKit/TVApplicationController/window)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)