pl.wendigo.chrome.api.backgroundservice / BackgroundServiceOperations

BackgroundServiceOperations

class BackgroundServiceOperations (source)

Defines events for background web platform features.

This API is marked as experimental in protocol definition and can change in the future.

Link
Protocol BackgroundService domain documentation.

Functions

backgroundServiceEventReceived

fun backgroundServiceEventReceived(): Flowable<BackgroundServiceEventReceivedEvent>

Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording.

clearEvents

fun clearEvents(input: ClearEventsRequest): Single<ResponseFrame>

Clears all stored data for the service.

events

fun events(): Flowable<Event>

Returns flowable capturing all BackgroundService domains events.

recordingStateChanged

fun recordingStateChanged(): Flowable<RecordingStateChangedEvent>

Called when the recording state for the service has been updated.

setRecording

fun setRecording(input: SetRecordingRequest): Single<ResponseFrame>

Set the recording state for the service.

startObserving

fun startObserving(input: StartObservingRequest): Single<ResponseFrame>

Enables event updates for the service.

stopObserving

fun stopObserving(input: StopObservingRequest): Single<ResponseFrame>

Disables event updates for the service.