Skill class abstract

Commands to interact with your skill backend.

Annotations
  • @anonymous
  • @JS()

Constructors

Skill()
factory

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
onMessage(OnMessageCallback callback) Skill
This function is used to register a listener for incoming messages sent from the skill. The messages received are independent of the messages sent from the HTML application via sendMessage. The message payload can be any data type.
sendMessage(dynamic message, MessageSendResponseCallback? callback) Skill
This function allows the HTML application to communicate with the skill that invoked it. The message payload can be any data type. NOTE: This function is rate limited and calls may not always be successful. To handle the throttling error (or any other error), please supply the optional callback argument to the function. The callback always returns the status of the send and any error will be equivalent to HTTP status code. For example rate limit will be a 429 status and general error will be 500, while a success will be 200.*
toString() String
A string representation of this object.
inherited

Operators

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