PushToken class

归一化后的推送 token。

各平台原生 token 的形状不同(Android 是多厂商集合、iOS 是 APNs 单值、 OHOS 是 Push Kit 单值),协调器统一转换成这个类型后再交给引擎。

Constructors

PushToken({required String type, required String token, required int revision})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
revision → int
token 版本号,用于丢弃乱序到达的旧值。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
token → String
final
type → String
引擎侧的 push_type:'HW' / 'HONOR' / 'MI' / 'APNS' / 'OHOS' ...
final

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