PlayEvent class

播放事件

Inheritance

Constructors

PlayEvent({required String action, required String contentId, required int timestamp, required int position, required int duration, required PlayStatus status, Map<String, dynamic>? extra})
const
PlayEvent.fromMap(Map<String, dynamic> map)
从Map创建播放事件
factory

Properties

action String
事件动作
finalinherited
contentId String
内容ID
finalinherited
data Map<String, dynamic>
事件数据(组合所有相关数据)
no setteroverride
duration int
总时长(毫秒)
final
extra Map<String, dynamic>?
额外数据
finalinherited
hashCode int
The hash code for this object.
no setterinherited
position int
播放位置(毫秒)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status PlayStatus
播放状态
final
timestamp int
时间戳
finalinherited
type String
事件类型(别名:action)
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
转换为Map
override
toString() String
A string representation of this object.
override

Operators

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