puppeteer/new-docs/puppeteer.protocol.backgroundservice.md
2020-07-13 14:01:35 +01:00

1.8 KiB

Home > puppeteer > Protocol > BackgroundService

Protocol.BackgroundService namespace

Defines events for background web platform features.

Signature:

export namespace BackgroundService 

Interfaces

Interface Description
BackgroundServiceEvent
BackgroundServiceEventReceivedEvent Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording.
ClearEventsRequest
EventMetadata A key-value pair for additional event information to pass along.
RecordingStateChangedEvent Called when the recording state for the service has been updated.
SetRecordingRequest
StartObservingRequest
StopObservingRequest

Type Aliases

Type Alias Description
ServiceName The Background Service that will be associated with the commands/events. Every Background Service operates independently, but they share the same API.