priority property

NotificationPriority? priority
getter/setter pair

Android requires a persistent notification in the Notification Bar. This will control the priority of that notification as well as the position of the notificaiton-bar icon.

The following priority values are defined as NotificationPriority enum values:

Value Description
NotificationPriority.defaultPriority Notification weighted to top of list; notification-bar icon weighted left
NotificationPriority.high Notification strongly weighted to top of list; notification-bar icon strongly weighted to left
NotificationPriority.low Notification weighted to bottom of list; notification-bar icon weighted right
NotificationPriority.max Same as NotificationPriority.high
NotificationPriority.min Notification strongly weighted to bottom of list; notification-bar icon hidden

Example

BackgroundGeolocation.ready(Config(
  notification: Notification(
    priority: NotificationPriority.min
  )
));

Implementation

NotificationPriority? priority;