A representation of a read-only DOM node.


class TVViewElement : NSObject


The TVViewElement model object is traversed by the TVInterfaceFactory factory to construct views and view controllers, and to render templates. Views and view controllers should use the available dispatch APIs to send user events to JavaScript.


Inspecting a View Element

var autoHighlightIdentifier: String?

A string identifying the element that is initially in focus.

var attributes: [String : String]?

The attributes associated with a view element.

var children: [TVViewElement]?

An array containing the child elements of the element currently being inspected.

var isDisabled: Bool

Boolean value indicating whether the current element being inspected is disabled.

var identifier: String

A string containing the unique identifier for an element.

var name: String

A string containing the element’s name.

var parent: TVViewElement?

The parent of the current node.

var style: TVViewElementStyle?

The style applied to an element.

var updateType: TVElementUpdateType

The value that describes any changes to the DOM tree after it has been reparsed.

enum TVElementUpdateType

Describes any changes to the DOM tree after it has been reparsed.

Resetting a Property’s Value

func resetProperty(TVElementResettableProperty)

Resets the property to its default value.

enum TVElementResettableProperty

The types of properties that can be reset to their default values.

Instance Properties


Inherits From

See Also

Views and View Controllers

protocol TVInterfaceCreating

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

class TVInterfaceFactory

A factory for the creation of views and view controllers.

Creating hybrid applications with Document Service based View Controllers

Create view controllers that show TVMLKit content in a native application through the use of Document view controllers that are fulfilled through a Javascript based service.

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