PushCoordinatorBase class abstract

各平台协调器共享的状态机。

token 缓存统一按 push_type 索引:Android 的多厂商快照是多条,iOS/OHOS 的 单值快照是一条,因此单值平台只是"缓存里只有一个 key",不需要单独一套逻辑。

Implemented types

Constructors

PushCoordinatorBase(PushTokenSink _sink)

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

bindTokenListener(void listener(PushToken token)) → void
子类:把原生 token 监听绑定到 listener,并负责归一化成 PushToken。
clearListeners() → void
子类:解除全部原生监听(token,以及 OHOS 的 click)。
configure(PushStartContext context, int generation) → Future<RSIMResult<List<PushToken>>>
子类:调用原生 configure,并把 token 快照归一化后返回。
dispose() → void
引擎销毁时释放监听与缓存。
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onConnectionStatus(PushConnectionStatus status) → void
Receives the existing Engine connection status without adding a public Push API. Rust remains responsible for its own HTTP retry/cache logic.
override
pauseForNoPush() → void
Stops automatic token submissions after disconnect(false). The native token cache remains intact so a later explicit connect can restore it.
override
resumeForConnect() → void
Re-enables token coordination after an explicit connect request.
override
start(PushStartContext context) → Future<RSIMResult<void>>
注册监听并完成原生侧配置。
override
toString() → String
A string representation of this object.
inherited

Operators

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