Interface: MatrixWidgetAPI
Matrix.MatrixWidgetAPI
MatrixWidgetAPI interface represents the Matrix widget API methods for sending and receiving messages.
Table of contents
Methods
Methods
close
▸ close(): undefined
Closes the Matrix API message listener.
Returns
undefined
Defined in
listen
▸ listen(): undefined
Starts listening for Matrix API messages.
Returns
undefined
Defined in
receive
▸ receive(): undefined
| MatrixAPIMessage
Receives a Matrix API message. Returns the received message or undefined if no message is available.
Returns
undefined
| MatrixAPIMessage
- The received Matrix API message or undefined if no message is available.
Defined in
send
▸ send(event
): undefined
Sends a Matrix API message.
Parameters
Name | Type | Description |
---|---|---|
event | MatrixAPIMessage | The Matrix API message to send. |
Returns
undefined