Rate this page:

VIMessage

Interface that represents message within a conversation.

Props

conversation

Copy URL
conversation: 

UUID of the conversation this message belongs to.

Message can belong to the one conversation only.

Returns

  • type:

    String

payload

Copy URL
payload: 

List of payload objects associated with the message.

Returns

  • type:

    List<Map<String, dynamic>>

sequence

Copy URL
sequence: 

Message sequence number in the conversation.

Returns

  • type:

    int

text

Copy URL
text: 

Text of this message.

Returns

  • type:

    String

uuid

Copy URL
uuid: 

Universally unique identifier (UUID) of the message.

Returns

  • type:

    String

Methods

remove

Copy URL
remove(): 

Future<VIMessageEvent>

Removes the message from the conversation.

The participant that calls this method should have:

Returns

update

Copy URL
update(text: 

String?

,
payload:

List<Map<String, Object>>?

):

Future<VIMessageEvent>

Sends text and payload changes to the cloud.

The participant that calls this method should have:

To be informed about the message updating while being offline, participants can subscribe to the onEditMessage messenger push notification.

Parameters

  • text:

    String?

    Optional

    New text of this message, maximum 5000 characters. If null, message text is not updated.

  • payload:

    List<Map<String, Object>>?

    Optional

    New payload of this message. If null, message payload is not updated.

Returns