BackgroundServiceApi class Null safety

Defines events for background web platform features.

Constructors

BackgroundServiceApi(Client _client)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
onBackgroundServiceEventReceived Stream<BackgroundServiceEvent>
Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording.
read-only
onRecordingStateChanged Stream<RecordingStateChangedEvent>
Called when the recording state for the service has been updated.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

clearEvents(ServiceName service) Future<void>
Clears all stored data for the service.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setRecording(bool shouldRecord, ServiceName service) Future<void>
Set the recording state for the service.
startObserving(ServiceName service) Future<void>
Enables event updates for the service.
stopObserving(ServiceName service) Future<void>
Disables event updates for the service.
toString() String
A string representation of this object.
inherited

Operators

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