MeshServiceNotificationsImpl

class MeshServiceNotificationsImpl @Inject constructor(context: Context) : MeshServiceNotifications(source)

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
@Inject
constructor(context: Context)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var cachedLocalStats: TelemetryProtos.LocalStats?
Link copied to clipboard
Link copied to clipboard
var cachedTelemetry: TelemetryProtos.Telemetry?
Link copied to clipboard

Functions

Link copied to clipboard
open override fun cancelLowBatteryNotification(node: NodeEntity)
Link copied to clipboard
open override fun cancelMessageNotification(contactKey: String)
Link copied to clipboard
open override fun clearClientNotification(notification: MeshProtos.ClientNotification)
Link copied to clipboard
open override fun clearNotifications()
Link copied to clipboard
open override fun initChannels()

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
open override fun showAlertNotification(contactKey: String, name: String, alert: String)
Link copied to clipboard
open override fun showClientNotification(clientNotification: MeshProtos.ClientNotification)
Link copied to clipboard
open override fun showNewNodeSeenNotification(node: NodeEntity)
Link copied to clipboard
open override fun showOrUpdateLowBatteryNotification(node: NodeEntity, isRemote: Boolean)
Link copied to clipboard
open override fun updateMessageNotification(contactKey: String, name: String, message: String, isBroadcast: Boolean)
Link copied to clipboard
open override fun updateServiceStateNotification(summaryString: String?, telemetry: TelemetryProtos.Telemetry?): Notification