ZegoLiveStreamingControllerMessageImpl class
Here are the APIs related to message.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- private → ZegoLiveStreamingControllerMessagePrivateImpl
-
Don't call that
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
list(
{ZegoInRoomMessageType type = ZegoInRoomMessageType.broadcastMessage}) → List< ZegoInRoomMessage> - Retrieves a list of chat messages that already exist in the room.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
String message, {ZegoInRoomMessageType type = ZegoInRoomMessageType.broadcastMessage}) → Future< bool> - sends the chat message
-
sendFakeMessage(
{required ZegoUIKitUser sender, required String message, Map< String, String> ? attributes}) → void -
send fake message in message list,
please make sure
message
.timestamp has valid value -
stream(
{bool includeFakeMessage = true, ZegoInRoomMessageType type = ZegoInRoomMessageType.broadcastMessage}) → Stream< List< ZegoInRoomMessage> > -
Retrieves a list stream of chat messages that already exist in the room.
the stream will dynamically update when new chat messages are received,
and you can use a
StreamBuilder
to listen to it and update the UI in real time. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited