MosaicTv class
Android TV / Google TV home-screen channels.
Not widgets. The TV launchers host no AppWidgets at all, so a Mosaic widget never appears on a TV home screen however it is declared. What the TV home screen shows is channels of preview programs, and the launcher draws those cards itself — so there is no layout to write, only content.
Declare the channel in mosaic.yaml under tv_channels:, then fill it:
await MosaicTv.publish('featured', [
MosaicTvProgram(title: 'Episode 1', poster: url, link: 'myapp://ep/1'),
]);
Android only. Every call is a no-op elsewhere.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited