Handles events natively from document view controllers.
SDK
- tvOS 13.0+
Framework
- TVMLKit
Declaration
optional func documentViewController(_ documentViewController: TVDocument View Controller, handleEvent event: TVDocument View Controller.Event, with element: TVView Element) -> Bool
Discussion
By default, event handling can happen in either TVMLKit
or TVMLKit JS
. To defer event handling exclusively to TVMLKit JS
, return false
and don't handle the event in this TVMLKit
method. To assign event handling to TVMLKit
, handle the event in this method and return true
.