Type Alias: ForegroundServiceTask()

ForegroundServiceTask: (notification) => Promise<void>

A representation of a Foreground Service task registered via registerForegroundService.

The task must resolve a promise once complete, and in turn removes the notification.

View the Foreground Service documentation to learn more.

Parameters

notification

Notification

Returns

Promise<void>

Platform

android