AgoraRtmClientEventHandler constructor

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

Implementation

const AgoraRtmClientEventHandler({
  this.onError,
  this.onMessageReceived,
  this.onTokenExpired,
  this.onTokenPrivilegeWillExpire,
  this.onConnectionStateChanged2,
  this.onPeersOnlineStatusChanged,
});