AgoraRtmChannel class
Constructors
- AgoraRtmChannel(int? _clientIndex, String channelId)
Properties
- channelId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onAttributesUpdated
↔ (void Function(List<
AgoraRtmChannelAttribute> attributes)?) -
Occurs when channel attribute updated.
getter/setter pair
- onError ↔ (void Function(dynamic error)?)
-
Occurs when you receive error events.
getter/setter pair
- onFileMessageReceived ↔ (void Function(AgoraRtmFileMessage message, AgoraRtmMember fromMember)?)
-
Occurs when receiving a channel file message.
getter/setter pair
- onImageMessageReceived ↔ (void Function(AgoraRtmImageMessage message, AgoraRtmMember fromMember)?)
-
Occurs when receiving a channel image message.
getter/setter pair
- onMemberCountUpdated ↔ (void Function(int? count)?)
-
Occurs when channel member count updated.
getter/setter pair
- onMemberJoined ↔ (void Function(AgoraRtmMember member)?)
-
Occurs when a user joins the channel.
getter/setter pair
- onMemberLeft ↔ (void Function(AgoraRtmMember member)?)
-
Occurs when a channel member leaves the channel.
getter/setter pair
- onMessageReceived ↔ (void Function(AgoraRtmMessage message, AgoraRtmMember fromMember)?)
-
Occurs when receiving a channel message.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
getMembers(
) → Future< List< AgoraRtmMember> > -
join(
) → Future< void> -
leave(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
) → void -
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