Package org.linphone.core
Interface ChatMessageReaction
public interface ChatMessageReaction
A chat message reaction is an emoji sent by someone in the same chat room to
react to a specific
To create a
. Once you are ready, send the reaction using
Reactions are available using
notified using dedicated callbacks either in #LinphoneCoreListener or
#LinphoneChatMessageListener.
react to a specific
ChatMessage
. To create a
ChatMessageReaction
, use ChatMessage.createReaction(java.lang.String)
. Once you are ready, send the reaction using
send()
.Reactions are available using
ChatMessage.getReactions()
and will benotified using dedicated callbacks either in #LinphoneCoreListener or
#LinphoneChatMessageListener.
-
Method Summary
Modifier and TypeMethodDescriptiongetBody()
Returns the emoji(s) used for the reaction.Allows to get the Call ID associated with aChatMessageReaction
.Returns theAddress
of the participant that sent this reaction.long
Gets the native pointer used by this class to make native method calls.Gets the object stored in this object user's datavoid
send()
Sends aChatMessageReaction
.void
setUserData
(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
getBody
Returns the emoji(s) used for the reaction.
- Returns:
- the emoji(s) used as UTF-8 characters.
-
getCallId
String getCallId()- Returns:
- the Call ID associated with this reaction.
-
getFromAddress
- Returns:
- the
Address
that sent this reaction.
-
send
void send() -
setUserData
Sets the object to store in this object user's data- Parameters:
data
- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-