Bravia class

Bravia class.

You can instantiate one of these for each TV to be monitored/controlled.

Inheritance
  • Object
  • EventEmitter
  • StatefulEmitter
  • Bravia

Constructors

Bravia(String host, {int port = 80, String psk = '0000', int timeout = 5000})
Constructor takes IP address or hostname argument

Properties

accessControl ServiceProtocol
latefinal
appControl ServiceProtocol
latefinal
audio ServiceProtocol
latefinal
avContent ServiceProtocol
latefinal
browser ServiceProtocol
latefinal
cec ServiceProtocol
latefinal
count int
Get the unique count of events registered in the emitter.
no setterinherited
encryption ServiceProtocol
latefinal
guide ServiceProtocol
latefinal
hashCode int
The hash code for this object.
no setterinherited
recording ServiceProtocol
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state Map<String, dynamic>
getter/setter pairinherited
system ServiceProtocol
latefinal
videoScreen ServiceProtocol
latefinal

Methods

clear() → void
Clear all subscribers from the cache.
inherited
emit(String event, [Object? sender, Object? data]) → void
API to emit events. event is a required parameter. If sender information is sent, it will be used to intimate user about it. event - What event needs to be emitted. sender - The sender who published the event. Ignore if not required. data - Data the event need to carry. Ignore this argument if no data needs to be sent.
inherited
getIRCCCodes() Future<List>
List codes = getIRCCCodes();
getListenersCount(String event) int
Get the list of subscribers for a particular event.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off(Listener? listener) → void
Remove event listener from emitter. This will unsubscribe the caller from the emitter from any future events. Listener should be a valid instance. listener - Listener instance to be removed from the event subscription.
inherited
on(String event, Object? context, EventCallback callback) → Listener
API to register for notification. It is mandatory to pass event name and callback parameters. event - Event name used for the subscription. A valid event name is mandatory. context - Context information, which need to be sent in all emitted events. callback - EventCallback function registered to receive events emitted from the publisher. A valid callback function is mandatory.
inherited
removeAllByCallback(EventCallback callback) → void
Remove all listeners which matches with the callback provided. It is possible to register for multiple events with a single callback. This mechanism ensure that all event registrations would be cancelled which matches the callback. callback - The event callback used during subscription.
inherited
removeAllByEvent(String event) → void
Use this mechanism to remove all subscription for a particular event. Caution : This will remove all the listeners from multiple files or classes or modules. Think twice before calling this API and make sure you know what you are doing!!! event - Event name used during subscription.
inherited
removeListener(String eventName, EventCallback callback) → void
Unsubscribe from getting any future events from emitter. This mechanism uses event name and callback to unsubscribe from all possible events. eventName - Event name for the subscription. callback - EventCallback used when registering subscription using on function.
inherited
request(String path, dynamic json) Future<Map<String, dynamic>>
Object o = request(path, json);
send(String code) Future<void>
send(code);
setState(Map<String, dynamic> newState) → void
inherited
toString() String
A string representation of this object.
inherited
un(Listener listener) → void
inherited

Operators

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