Methods
Inherited Variables
Defined by Chat
Inherited Methods
Defined by Chat
addReaction(m:ChatMessage, reaction:Reaction):Void
Add new reaction to a message in this Chat
Parameters:
m | ChatMessage to react to |
|---|---|
reaction | emoji of the reaction |
@:value({ onServer : true, spamMessage : null, reportSpam : false })block(reportSpam:Bool = false, ?spamMessage:ChatMessage, onServer:Bool = true):Void
Block this chat so it will not re-open
invitedBy():Null<Participant>
The Participant that originally invited us to this Chat, if we were invited
setActive(active:Bool, threadId:Null<String>):Void
Call this whenever the user makes a chat or thread "active" in your UX If you call this with true you MUST later call it will false
Parameters:
active | true if the chat is "active", false otherwise |
|---|---|
threadId | optional, what thread the user has selected if any |
setDisplayName(displayName:String):Void
Set the display name to use for this chat
Parameters:
displayName | String to use as display name |
|---|
startCall(audio:Bool, video:Bool):Session
Start a new call in this Chat
Parameters:
audio | do we want audio in this call |
|---|---|
video | do we want video in this call |
typing(threadId:Null<String>, content:Null<String>):Void
Call this whenever the user is typing, can call on every keystroke
Parameters:
threadId | optional, what thread the user has selected if any |
|---|---|
content | optional, what the user has typed so far |
@:value({ onServer : true })unblock(onServer:Bool = true):Void
Unblock this chat so it will open again