MeshServiceNotifications

Manages the creation and display of all app notifications.

This class centralizes notification logic, including channel creation, builder configuration, and displaying notifications for various events like new messages, alerts, and service status changes.

Constructors

Link copied to clipboard
constructor(context: Context)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun clearClientNotification(notification: <Error class: unknown class>)
Link copied to clipboard
Link copied to clipboard

Creates all necessary notification channels on devices running Android O or newer. This should be called once when the service is created.

Link copied to clipboard
fun showAlertNotification(contactKey: String, name: String, alert: String)
Link copied to clipboard
fun showClientNotification(clientNotification: <Error class: unknown class>)
Link copied to clipboard
fun updateMessageNotification(contactKey: String, name: String, message: String, isBroadcast: Boolean)
Link copied to clipboard
fun updateServiceStateNotification(summaryString: String?, localStats: <Error class: unknown class>? = null, currentStatsUpdatedAtMillis: Long? = System.currentTimeMillis()): Notification