notification property

CoffeeBackgroundNotification? notification
getter/setter pair

(Android only) Configure the persistent foreground notification.

The Android operating system requires a persistent notification when running a foreground service.

Example

CoffeeBackgroundGeolocation.init(Config(
  notification: CoffeeBackgroundNotification(
    title: "The Title",
    text: "The Text"
  )
))
.
.
.
// To update the notification in real-time, use #setConfig
// You need only provide *changed* parameters --  initially configured
// parameters will remain unchanged.
CoffeeBackgroundGeolocation.setConfig(Config(
  notification: CoffeeBackgroundNotification(
    title: "The New Title"
  )
))

Implementation

CoffeeBackgroundNotification? notification;