AgoraRtmClientEventHandler class

Handles all the callbacks or event handler for the Agora RTM client class

Constructors

AgoraRtmClientEventHandler({void onError(dynamic error)?, void onMessageReceived(RtmMessage message, String peerId)?, void onTokenExpired()?, void onTokenPrivilegeWillExpire()?, void onConnectionStateChanged2(RtmConnectionState state, RtmConnectionChangeReason reason)?, void onPeersOnlineStatusChanged(Map<String, RtmPeerOnlineState> peersStatus)?})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
onConnectionStateChanged2 → (void Function(RtmConnectionState state, RtmConnectionChangeReason reason)?)
Occurs when the connection state between the SDK and the Agora RTM system changes.
final
onError → (void Function(dynamic error)?)
Occurs when you receive error events.
final
onMessageReceived → (void Function(RtmMessage message, String peerId)?)
Occurs when the local user receives a peer-to-peer message.
final
onPeersOnlineStatusChanged → (void Function(Map<String, RtmPeerOnlineState> peersStatus)?)
final
onTokenExpired → (void Function()?)
Occurs when your token expires.
final
onTokenPrivilegeWillExpire → (void Function()?)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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