AgoraRtmChannel class

Constructors

AgoraRtmChannel(int _clientIndex, String channelId)

Properties

channelId String
final
hashCode int
The hash code for this object.
read-onlyinherited
onAttributesUpdated ↔ void Function(List<AgoraRtmChannelAttribute> attributes)
Occurs when channel attribute updated.
read / write
onError ↔ void Function(dynamic error)
Occurs when you receive error events.
read / write
onFileMessageReceived ↔ void Function(AgoraRtmFileMessage message, AgoraRtmMember fromMember)
Occurs when receiving a channel file message.
read / write
onImageMessageReceived ↔ void Function(AgoraRtmImageMessage message, AgoraRtmMember fromMember)
Occurs when receiving a channel image message.
read / write
onMemberCountUpdated ↔ void Function(int count)
Occurs when channel member count updated.
read / write
onMemberJoined ↔ void Function(AgoraRtmMember member)
Occurs when a user joins the channel.
read / write
onMemberLeft ↔ void Function(AgoraRtmMember member)
Occurs when a channel member leaves the channel.
read / write
onMessageReceived ↔ void Function(AgoraRtmMessage message, AgoraRtmMember fromMember)
Occurs when receiving a channel message.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

close() Future<void>
getMembers() Future<List<AgoraRtmMember>>
join() Future<void>
leave() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
release() → void
@Deprecated('Use `AgoraRtmClient.releaseChannel` instead.')
sendFileMessage(AgoraRtmFileMessage message, [bool offline, bool historical]) Future<void>
sendImageMessage(AgoraRtmImageMessage message, [bool offline, bool historical]) Future<void>
sendMessage(AgoraRtmMessage message, [bool offline, bool historical]) Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited