公用抽象類別
NotificationContentProviderBase
擴充物件
導入 NotificationContentProvider
導入 NotificationContentProvider
如果用戶端想控制持續通知的內容,應擴充這個類別。如果通知內容有所變更,updateNotification()
是一種便利的方法,可透過 ForegroundServiceManager
推送新通知。
公用建構函式摘要
NotificationContentProviderBase(應用程式)
建構函式
|
公用方法摘要
摘要 通知 |
getNotification()
傳回最新版本的通知。
|
void |
updateNotification()
要求
NotificationContentProvider 取得最新的通知版本後,重新轉譯通知。 |
繼承方法摘要
公用建構函式
public NotificationContentProviderBase (應用程式應用程式)
建構函式
參數
調度應用程式資源 |
---|
公用方法
public 摘要 通知 getNotification ()
傳回最新版本的通知。
public void updateNotification ()
要求 NotificationContentProvider
取得最新的通知版本後,重新轉譯通知。不必透過 ForegroundServiceManager
單例模式呼叫此方法。