Event class
Constructors
-
Event({String? eventId, required int? eventType, required int? eventValue, String? config, required int? expiry, bool? broadcastOnlineOnly, bool? syncSelfEnable, String? publisherAccount, int? publishTime, int? publisherClientType, String? multiClientConfig, Map<
int, String> ? multiClientConfigMap, String? nimConfig}) -
Event.fromMap(Map<
String, dynamic> ? json) -
factory
Properties
- broadcastOnlineOnly → bool?
-
是否只广播给在线用户,若为 false,事件支持在线广播和登录后同步
final
- config → String?
-
事件的扩展字段,最大长度为 256 字节,由事件发布客户端配置
发布的时候使用
final
- eventId → String?
-
事件ID,非用户设置字段
final
- eventType → int?
-
事件类型,1-99999 为云信保留类型
final
- eventValue → int?
-
事件的状态值
final
- expiry → int?
-
事件的有效期,范围为 60s 到 7days,数值单位为秒
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- multiClientConfig → String?
-
多端 config 配置
接收时有效
final
-
multiClientConfigMap
→ Map<
int, String> ? -
解析 multiClientConfig 的多端 config 配置 map
final
- nimConfig → String?
-
预定义事件中服务端配置项,仅仅对预留事件有效,非用户设置字段
final
- publisherAccount → String?
-
事件发布者的云信账号,非用户设置字段
final
- publisherClientType → int?
-
事件发布者客户端类型 @see ClientType,非用户设置字段
final
- publishTime → int?
-
事件发布的时间,非用户设置字段
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- syncSelfEnable → bool?
-
是否支持多端同步
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited