RtcMessageServiceHandler class
Callback of RtcMessageService, the callback must be set to RtcMessageService to get events notification.
RtcMessageService 的回调函数, 在使用 RtcMessageService 之前必须要设置回调以获取事件通知。
Constructors
- RtcMessageServiceHandler({OnServiceStateChanged? onServiceStateChanged, OnUserMessage? onUserMessage, OnSubscribeResult? onSubscribeResult, OnTopicMessage? onTopicMessage, OnPropertyChanged? onPropertyChanged})
- Constructs a RtcMessageServiceHandler
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onPropertyChanged ↔ OnPropertyChanged?
-
Notification of message service property change.
Parameter
props
The property action array.getter/setter pair - onServiceStateChanged ↔ OnServiceStateChanged?
-
Notification of message service state change.
Parameter
state
The service state, You can send message when state is MessageServiceState.Available. Parameterreason
The reason of the state change.getter/setter pair - onSubscribeResult ↔ OnSubscribeResult?
-
Notification of topic subscribe result.
Parameter
topic
The topic. Parameterresult
The result of topic subscription.getter/setter pair - onTopicMessage ↔ OnTopicMessage?
-
Notification of topic message.
Parameter
topic
The topic. ParameteruserId
The user who published the message. Parameterdata
The topic data.getter/setter pair - onUserMessage ↔ OnUserMessage?
-
Notification of user message.
Parameter
userId
The user who sent the message. Parameterdata
The message data.getter/setter pair - 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