CoffeeBackgroundNotification class
(Android and iOS) Title and message for the persistent notification when running a foreground service. (Android only) Additional notification customization options. The Android operating system requires a persistent notification when running a foreground service.
Example
CoffeeBackgroundGeolocation.init(Config(
notification: Notification(
title: "The Title",
text: "The Text"
)
))
Constructors
Properties
- channelId ↔ String?
-
ID of the notification channel. (Android Only)
Defaults to
your.package.name.TSLocationManager
getter/setter pair - channelName ↔ String?
-
Name of the notification channel. (Android Only)
getter/setter pair
- color ↔ String?
-
Color of the notification icon. (Android Only)
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- largeIcon ↔ String?
-
Large icon for the notification. (Android Only)
getter/setter pair
- priority ↔ int?
-
Priority of the notification. (Android Only)
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- smallIcon ↔ String?
-
Small icon for the notification. (Android Only)
getter/setter pair
- text ↔ String?
-
Message text of the notification. Applicable for both iOS and Android.
getter/setter pair
- title ↔ String?
-
Title of the notification. Applicable for both iOS and Android.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
Return
Map
representation ofNotification
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited