ExposedThing class abstract interface

The ExposedThing interface is the server API to operate the Thing that allows defining request handlers, Property, Action, and Event interactions.

See WoT Scripting API Specification, Section 9.

Constructors

ExposedThing()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thingDescription ThingDescription
The ThingDescription that represents this ExposedThing.
no setter

Methods

destroy() Future<void>
Destroys the ExposedThing.
emitEvent(String name, InteractionInput data) Future<void>
Informs all subscribers of an Event with the given name that it has occured.
emitPropertyChange(String name) Future<void>
Informs all subscribers about the change of the property with the given name.
expose() Future<void>
Starts exposing the Thing.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setActionHandler(String name, ActionHandler handler) → void
Assigns a handler function to an action with a given name.
setEventHandler(String name, EventListenerHandler handler) → void
Assigns a handler function to an event with a given name.
setEventSubscribeHandler(String name, EventSubscriptionHandler handler) → void
Assigns a handler function to an event with a given name.
setEventUnsubscribeHandler(String name, EventSubscriptionHandler handler) → void
Assigns a handler function to an event with a given name.
setPropertyObserveHandler(String name, PropertyReadHandler handler) → void
Assigns a handler function to a property with a given name.
setPropertyReadHandler(String name, PropertyReadHandler handler) → void
Assigns a handler function to a property with a given name.
setPropertyUnobserveHandler(String name, PropertyReadHandler handler) → void
Assigns a handler function to a property with a given name.
setPropertyWriteHandler(String name, PropertyWriteHandler handler) → void
Assigns a handler function to a property with a given name.
toString() String
A string representation of this object.
inherited

Operators

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