android-components / mozilla.components.service.glean / Glean / handleEvent

# handleEvent

`fun handleEvent(pingEvent: PingEvent): Job` (source)

Handle an event and send the appropriate pings.

Valid events are:

- Background: When the application goes to the background. This triggers sending of the baseline ping.
- Default: Event that triggers the default pings.

### Parameters

`pingEvent` - The type of the event.

Return
A Job, only to be used when testing, which allows to wait on the ping submission.