Class BackgroundServiceEvent


  • public class BackgroundServiceEvent
    extends java.lang.Object
    • Constructor Detail

      • BackgroundServiceEvent

        public BackgroundServiceEvent​(TimeSinceEpoch timestamp,
                                      java.lang.String origin,
                                      RegistrationID serviceWorkerRegistrationId,
                                      ServiceName service,
                                      java.lang.String eventName,
                                      java.lang.String instanceId,
                                      java.util.List<EventMetadata> eventMetadata)
    • Method Detail

      • getTimestamp

        public TimeSinceEpoch getTimestamp()
        Timestamp of the event (in seconds).
      • getOrigin

        public java.lang.String getOrigin()
        The origin this event belongs to.
      • getServiceWorkerRegistrationId

        public RegistrationID getServiceWorkerRegistrationId()
        The Service Worker ID that initiated the event.
      • getService

        public ServiceName getService()
        The Background Service this event belongs to.
      • getEventName

        public java.lang.String getEventName()
        A description of the event.
      • getInstanceId

        public java.lang.String getInstanceId()
        An identifier that groups related events together.
      • getEventMetadata

        public java.util.List<EventMetadata> getEventMetadata()
        A list of event-specific information.