TvRemoteController class

Dart-side companion to the native FlutterTvRemotePlugin.

The native plugin owns all keyboard-event generation: arrow/page button presses, continuous-swipe auto-repeat, and the Select-click directional bias are emitted directly to flutter/keyevent. This controller only:

  • ships tuning values (TvRemoteConfig) to native;
  • fan-outs raw touchpad events to addRawListener consumers (video scrubbers, custom swipe zones).

Initialize at app start via runTvApp or by calling TvRemoteController.instance.init().

Properties

config TvRemoteConfig
Current tuning. Assigning a new value ships it to the native plugin.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addRawListener(TvRemoteTouchListener listener) → void
Register a listener that receives every raw touchpad event.
addSwipeListener(SwipeListener listener) → void
Register a listener that receives aggregated SwipeEvents.
debugInit() → void
Test-only variant that skips the tvOS platform check.
debugReset() → void
Test-only reset — detaches handlers and clears accumulated state.
init() → void
Wire up channel handlers. Idempotent — subsequent calls are no-ops. Does nothing if not running on tvOS.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeRawListener(TvRemoteTouchListener listener) → void
Remove a previously-added listener. No-op if listener wasn't added.
removeSwipeListener(SwipeListener listener) → void
Remove a previously-added swipe listener. No-op if not registered.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance TvRemoteController
Process-wide singleton.
final