public interface LinphoneChatRoom
Modifier and Type | Method and Description |
---|---|
void |
compose()
Notify the destination of the chat message being composed that the user is typing a new message.
|
LinphoneChatMessage |
createFileTransferMessage(LinphoneContent content)
Create a message attached to a dedicated chat room with a particular content.
|
LinphoneChatMessage |
createLinphoneChatMessage(String message)
Create a LinphoneChatMessage
|
LinphoneChatMessage |
createLinphoneChatMessage(String message,
String url,
LinphoneChatMessage.State state,
long timestamp,
boolean isRead,
boolean isIncoming)
Create a LinphoneChatMessage
|
void |
deleteHistory()
Deletes all the messages associated with the peer of this chat room
|
void |
deleteMessage(LinphoneChatMessage message)
Deletes a message
|
LinphoneCall |
getCall()
get Curent Call associated to this chatroom if any
To commit a message, use #linphone_chat_room_send_message
|
long |
getChar()
When realtime text is enabled LinphoneCallParams.realTimeTextEnabled, LinphoneCoreListener.isComposingReceived is call every time a char is received from peer.
|
LinphoneCore |
getCore()
Returns a back pointer to the core managing the chat room.
|
LinphoneChatMessage[] |
getHistory()
Returns the chat history associated with the peer address associated with this chat room
|
LinphoneChatMessage[] |
getHistory(int limit)
Returns the chat history associated with the peer address associated with this chat room
|
LinphoneChatMessage[] |
getHistoryRange(int begin,
int end)
Returns the chat history associated with the peer address associated with this chat room for the given range, sorted from oldest to most recent
|
int |
getHistorySize()
Returns the amount of messages associated with the peer of this chatRoom.
|
LinphoneAddress |
getPeerAddress()
get peer address associated to this LinphoneChatRoom
|
int |
getUnreadMessagesCount()
Returns the amount of unread messages associated with the peer of this chatRoom.
|
boolean |
isRemoteComposing()
Tells whether the remote is currently composing a message.
|
void |
markAsRead()
Marks all the messages in this conversation as read
|
void |
sendChatMessage(LinphoneChatMessage message) |
void |
sendMessage(LinphoneChatMessage message,
LinphoneChatMessage.StateListener listener)
Deprecated.
|
void |
sendMessage(String message)
send a message to peer member of this chat room.
|
LinphoneAddress getPeerAddress()
void sendMessage(String message)
message
- to be sent@Deprecated void sendMessage(LinphoneChatMessage message, LinphoneChatMessage.StateListener listener)
message
- chat messageLinphoneChatMessage createLinphoneChatMessage(String message)
message
- message to sendLinphoneChatMessage[] getHistory()
LinphoneChatMessage[] getHistory(int limit)
limit
- the maximum number of messages to fetchLinphoneChatMessage[] getHistoryRange(int begin, int end)
begin
- the first (most recent) message to retrieve. Newest message has index 0. If negative, use value 0 instead.end
- the last (oldest) message to retrieve. Oldest message has value "history size" - 1 (equivalent to -1). If negative or lower than begin value, value is given, use -1.int getUnreadMessagesCount()
int getHistorySize()
void deleteHistory()
void compose()
boolean isRemoteComposing()
void markAsRead()
void deleteMessage(LinphoneChatMessage message)
message
- the message to deleteLinphoneChatMessage createLinphoneChatMessage(String message, String url, LinphoneChatMessage.State state, long timestamp, boolean isRead, boolean isIncoming)
LinphoneCore getCore()
LinphoneChatMessage createFileTransferMessage(LinphoneContent content)
content
- LinphoneContent initial content.void sendChatMessage(LinphoneChatMessage message)
message
- LinphoneCall getCall()
long getChar()