postToSpace

abstract fun postToSpace(    id: String,     text: Message.Text?,     mentions: ArrayList<Mention>?,     files: ArrayList<LocalFile>?,     handler: CompletionHandler<Message>)

Posts a message with optional file attachments to a space asynchronously. The content of the message can be plain text, html, or markdown.

To notify specific person or everyone in a space, mentions should be used. Having @johndoe in the content of the message does not generate notification.

Parameters

id
  • The identifier of a space to which the message is to be posted.

text
  • The content of message to be posted to the space. The content can be plain text, html, or markdown.

mentions
  • Notify either one or all in a space about this message.

files
  • Remote files to be attached with the message. Null if no files to be attached.

handler
  • A closure to be executed once the message has posted.