ForegroundNotificationContent

data class ForegroundNotificationContent(val pendingIntent: PendingIntent, val smallIconResId: Int, val contentTitle: String? = null, val contentText: String? = null, val tickerText: String? = null, val symbolicManeuverStyle: SymbolicManeuverStyle? = null)

Data class that holds foreground notification content

Constructors

Link copied to clipboard
constructor(pendingIntent: PendingIntent, smallIconResId: Int, contentTitle: String? = null, contentText: String? = null, tickerText: String? = null, symbolicManeuverStyle: SymbolicManeuverStyle? = null)

Properties

Link copied to clipboard
val contentText: String? = null

optional text (second row) of the notification

Link copied to clipboard
val contentTitle: String? = null

optional title (first row) of the notification

Link copied to clipboard

the intent to execute when the expanded status entry is clicked. (See Notification.contentIntent) You can provide your own or use the default PendingIntent with LocationForegroundService.getDefaultPendingIntent

Link copied to clipboard

mandatory drawable resource id for the small icon to use in the notification layouts. Different classes of devices may return different sizes.

Link copied to clipboard

the style to use for the symbolic maneuvers icons in the notification. If not defined, symbolic maneuvers icons won't be used in the notification.

Link copied to clipboard
val tickerText: String? = null

optional which is sent to accessibility services. Prior to API level 21 (Lollipop), the text is displayed in the status bar when the notification first arrives.