MessageDraft object
MessageDraft represents a message that has not been published yet.
Properties
The MessageDraft object has no properties.
Methods
The MessageDraft object uses instances of these classes:
UPubnubMentionTargetto include specific mention targets (user mentions, channel references, or URLs) within these elements.UPubnubMessageElementto compose message draft content.UPubnubMessageDraftto manage these components, enabling the drafting, editing, and eventual sending of a complete message.
Click on each method for more details.
addChangeListener()AddChangeListenerWithSuggestions()AddMention()RemoveMention()InsertText()RemoveText()InsertSuggestedMention()Send()Update()
Use case
MessageDraft methods enable users to prepare draft messages with:
- Links
- User mentions with
@ - Channel references with
#