-
public final class ChatChat state for sending messages through LiveKit.
-
-
Field Summary
Fields Modifier and Type Field Description private final State<Boolean>isSendingprivate final <ERROR CLASS>messagesprivate final Flow<ReceivedChatMessage>messagesFlow
-
Constructor Summary
Constructors Constructor Description Chat(LocalParticipant localParticipant, DataHandler dataHandler, Function0<Boolean> serverSupportsDataStreams)
-
Method Summary
Modifier and Type Method Description final State<Boolean>getIsSending()Indicates if currently sending a chat message. final <ERROR CLASS>getMessages()The log of all messages sent and received. final Flow<ReceivedChatMessage>getMessagesFlow()A hot flow emitting a ReceivedChatMessage for each individual message sent and received. final Result<ReceivedChatMessage>send(String message, StreamTextOptions streamTextOptions)Send a message through LiveKit. -
-
Constructor Detail
-
Chat
Chat(LocalParticipant localParticipant, DataHandler dataHandler, Function0<Boolean> serverSupportsDataStreams)
-
-
Method Detail
-
getIsSending
final State<Boolean> getIsSending()
Indicates if currently sending a chat message.
-
getMessages
final <ERROR CLASS> getMessages()
The log of all messages sent and received.
-
getMessagesFlow
final Flow<ReceivedChatMessage> getMessagesFlow()
A hot flow emitting a ReceivedChatMessage for each individual message sent and received.
-
send
@CheckResult() final Result<ReceivedChatMessage> send(String message, StreamTextOptions streamTextOptions)
Send a message through LiveKit.
-
-
-
-