setForegroundServiceNotification

open fun setForegroundServiceNotification(smallIconId: Int, title: String, text: String, pendingIntent: PendingIntent, targetAllAPIs: Boolean)

See also

{@link #setForegroundServiceNotification(Notification, boolean)}
open fun setForegroundServiceNotification(notification: Notification, targetAllAPIs: Boolean)

Sets parameters for foreground service notification.Only required for apps targeting Android O and above.

Parameters

notification

- the Notification to be displayed; built by client's app

targetAllAPIs

- Display notification on Android API version 25 and under