color property

String? color
getter/setter pair

Configure the color of the persistent notification icon in the Notification Bar when running with Config.foregroundService true

Defaults to "". When running the service with Config.foregroundService: true, Android requires a persistent notification. This will configure the color of the notification icon (API >= 21).

Supported formats are:

  • #RRGGBB
  • #AARRGGBB

Implementation

String? color;