Class

TVDocumentViewController

A view controller that represents a TVMLKit document.

Declaration

@interface TVDocumentViewController : UIViewController

Overview

Instances of this class serve as bridges into TVMLKit JS's document life cycle, and allow for native event handling with TVMLKit. This class also provides a way for native clients to communicate with TVMLKit JS.

Topics

Initializing the Document View Controller

+ viewControllerWithContext:forAppController:

Creates a new document view controller with a specific context and app controller.

Managing Interactions with the Document

delegate

The delegate for handling events in the document view controller.

TVDocumentViewControllerDelegate

Methods to manage updates, events, and errors from the document view controller.

Handling Document Events

TVDocumentEvent

Events that can be triggered on the document view controller.

Updating the Document View Controller

- updateUsingContext:

Updates the document view controller with the provided context.

Accessing the Document's Components

appController

The document's app controller that bridges UI, navigation stack, storage, and event handling from JavaScript.

documentContext

The current document context.

Relationships

Inherits From

See Also

Views and View Controllers

TVViewElement

A representation of a read-only DOM node.

TVInterfaceCreating

A protocol that defines methods used to create views and view controllers.

TVInterfaceFactory

A factory for the creation of views and view controllers.

TVBrowserViewController

A view controller that presents content in a browsable, full-screen format.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software