The ExposedThing interface is the server API to operate the Thing that allows defining request handlers, Property, Action, and Event interactions.
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 occurred. -
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 givenname
. -
setEventHandler(
String name, EventListenerHandler handler) → void -
Assigns a
handler
function to an event with a givenname
. -
setEventSubscribeHandler(
String name, EventSubscriptionHandler handler) → void -
Assigns a
handler
function to an event with a givenname
. -
setEventUnsubscribeHandler(
String name, EventSubscriptionHandler handler) → void -
Assigns a
handler
function to an event with a givenname
. -
setPropertyObserveHandler(
String name, PropertyReadHandler handler) → void -
Assigns a
handler
function to a property with a givenname
. -
setPropertyReadHandler(
String name, PropertyReadHandler handler) → void -
Assigns a
handler
function to a property with a givenname
. -
setPropertyUnobserveHandler(
String name, PropertyReadHandler handler) → void -
Assigns a
handler
function to a property with a givenname
. -
setPropertyWriteHandler(
String name, PropertyWriteHandler handler) → void -
Assigns a
handler
function to a property with a givenname
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited