NoopLiveUpdatesPlatform class
Backend for unsupported platforms: every call succeeds and does nothing.
- Inheritance
-
- Object
- LiveUpdatesPlatform
- NoopLiveUpdatesPlatform
Constructors
Properties
-
events
→ Stream<
(String, String)> -
Lifecycle events as
(id, event); event isstarted,active,stale,endedordismissed.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 updateupdateIdonly 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;
falseif 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, ornullwhen 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
keyor 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