PushPlatformRegistry class

平台推送实现注册表。

平台实现包在 registerWith() 里注册自己;app-facing 的 PushManager 只按 运行平台查表,不认识任何具体实现。测试可替换 instance 注入 Fake。

Constructors

PushPlatformRegistry()

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

create(PushPlatformKind kind, PushTokenSink sink) → PushCoordinator?
按平台种类构造协调器;该平台没有注册实现时返回 null。
isRegistered(PushPlatformKind kind) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(PushPlatformKind kind, PushCoordinatorBuilder builder) → void
reset() → void
toString() → String
A string representation of this object.
inherited
unregister(PushPlatformKind kind) → void

Operators

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

Static Properties

instance ↔ PushPlatformRegistry
可替换,便于测试隔离与平台实现包注册。
getter/setter pair