OnRequestExternalEvent class
Deprecated: please use onMessageExternal.
class OnRequestExternalEvent { /** * The request sent by the calling script. * `optional` * * The request sent by the calling script. */ final dynamic request; final MessageSender sender; /** * Function to call when you have a response. The argument should be any * JSON-ifiable object, or undefined if there is no response. */ final dynamic sendResponse; OnRequestExternalEvent(this.request, this.sender, this.sendResponse); }
Constructors
new OnRequestExternalEvent(request, MessageSender sender, sendResponse) #
Creates a new Object
instance.
Object
instances have no meaningful state, and are only useful
through their identity. An Object
instance is equal to itself
only.
docs inherited from Object
OnRequestExternalEvent(this.request, this.sender, this.sendResponse);
Properties
final request #
The request sent by the calling script.
optional
The request sent by the calling script.
final dynamic request
final MessageSender sender #
final MessageSender sender
final sendResponse #
Function to call when you have a response. The argument should be any JSON-ifiable object, or undefined if there is no response.
final dynamic sendResponse