NoopLiveUpdatesPlatform class

Backend for unsupported platforms: every call succeeds and does nothing.

Inheritance

Constructors

NoopLiveUpdatesPlatform()

Properties

events → Stream<(String, String)>
Lifecycle events as (id, event); event is started, active, stale, ended or dismissed.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
pushToStartTokens → Stream<LiveUpdatePushToken>
Push-to-start tokens.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
taps → Stream<String>
Tap routes.
no setteroverride

Methods

actions({String? updateId}) → Stream<(String, String)>
Button presses as (update id, action id), of update updateId only when given. Presses go to the app only while one of these streams is listened to; otherwise the background action handler runs.
override
activeIds() → Future<List<String>>
Ids of live updates currently shown.
override
backgroundActionHandler() → Future<int?>
Raw callback handle of the background action handler, if registered.
inherited
backgroundActionsDone() → Future<void>
Signals that the background handler finished.
inherited
canPostPromotedNotifications() → Future<bool>
See LiveUpdates.canPostPromotedNotifications.
inherited
end(String id, {LiveUpdateContent? finalContent, Duration? dismissAfter}) → Future<void>
Ends the live update with id.
override
endAll() → Future<void>
Ends every live update of this app.
override
handleRemotePayload(Map<String, Object?> data) → Future<bool>
Applies a remote payload; false if it is not a live_updates message.
override
idForKey(String key) → Future<String?>
Id of the running live update with key key.
override
isSupported() → Future<bool>
See LiveUpdates.isSupported.
override
keyForId(String id) → Future<String?>
Key of the live update id, or null when it was started without one.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pushTokens(String id) → Stream<LiveUpdatePushToken>
Push tokens for the live update with id.
override
requestPermission() → Future<bool>
See LiveUpdates.requestPermission.
inherited
setBackgroundActionHandler(int dispatcher, int handler) → Future<void>
Stores the callback handles used to run LiveUpdates.setBackgroundActionHandler's handler in a headless engine.
inherited
start(LiveUpdateContent content, {bool pushUpdates = false, String? iosChannelId}) → Future<String>
Starts a live update and returns its id.
override
startOrUpdate(String key, LiveUpdateContent content, {bool pushUpdates = false, String? iosChannelId}) → Future<String>
Updates the live update with key key or starts one; returns its id.
override
takeQueuedActions() → Future<List<(String, String)>>
Removes and returns the presses queued for the background handler.
inherited
toString() → String
A string representation of this object.
inherited
update(String id, LiveUpdateContent content) → Future<void>
Updates the live update with id.
override

Operators

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