EntertainmentStreamController class

Controls the streaming of entertainment data to a bridge.

Properties

entertainmentConfiguration EntertainmentConfiguration
The entertainment configuration that this stream is for.
final
entertainmentConfigurationId String
The ID of the entertainment configuration to send the data to.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAllToQueue(List<EntertainmentStreamCommand> commands) → void
Add multiple commands to the queue.
addToQueue(EntertainmentStreamCommand command) → void
Add a command to the queue.
flushQueue() → void
Empties the queue.
flushQueueChannel(int channel) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queueLengthInChannel(int channel) int
The current length of the queue in the given channel.
replaceQueue(Map<int, List<EntertainmentStreamCommand>> newQueue) → void
Empty the queue and replace it with newQueue.
replaceQueueChannel(int channel, List<EntertainmentStreamCommand> newChannelQueue) → void
Empty the queue only in the given 'channel' and replace that data with newQueue.
startStreaming(Bridge bridge, {String decrypter(String ciphertext)?}) Future<bool>
Start this entertainment stream.
stopStreaming(Bridge bridge, {String decrypter(String ciphertext)?}) Future<bool>
Stop this entertainment stream.
toString() String
A string representation of this object.
override

Operators

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

Static Properties

sendIntervalMilliseconds int
The interval at which data is sent to the bridge in milliseconds.
no setter

Constants

sendIntervalHz → const int
The interval at which data is sent to the bridge.