NotificationContentProviderBase

classe abstraite publique NotificationContentProviderBase étend l'objet
implémente NotificationContentProvider

Les clients doivent étendre cette classe s'ils souhaitent contrôler le contenu de la notification persistante. Si le contenu de la notification change, updateNotification() est une méthode pratique qui transmet la nouvelle notification via ForegroundServiceManager.

Récapitulatif des constructeurs publics

NotificationContentProviderBase(application)
Constructeur

Récapitulatif des méthodes publiques

résumé Notification
getNotification()
Renvoie la version la plus récente de la notification.
void
updateNotification()
Rend la notification après avoir demandé à NotificationContentProvider la version la plus récente.

Récapitulatif des méthodes héritées

Constructeurs publics

public NotificationContentProviderBase (application d'application)

Constructeur

Paramètres
sur des règles

Méthodes publiques

public abstract Notification getNotification ()

Renvoie la version la plus récente de la notification.

public vide updateNotification ()

Rend la notification après avoir demandé à NotificationContentProvider la version la plus récente. Il n'est plus nécessaire de l'appeler via le singleton ForegroundServiceManager.