public 抽象クラス NotificationContentProviderBase
extensions オブジェクト
Implement NotificationContentProvider
Implement NotificationContentProvider
永続的な通知の内容を制御する場合、クライアントはこのクラスを拡張する必要があります。通知内容が変更された場合、updateNotification()
は、ForegroundServiceManager
を介して新しい通知をプッシュするコンビニエンス メソッドです。
パブリック コンストラクタの概要
NotificationContentProviderBase(アプリアプリ)
コンストラクタ
|
パブリック メソッドの概要
抽象 通知 |
getNotification()
通知の最新バージョンを返します。
|
void |
updateNotification()
通知の最新バージョンを
NotificationContentProvider に要求した後に、通知を再レンダリングします。 |
継承されたメソッドの概要
パブリック コンストラクタ
public NotificationContentProviderBase (アプリ アプリ)
コンストラクタ
パラメータ
アプリケーション |
---|
パブリック メソッド
public 抽象 通知 getNotification ()
通知の最新バージョンを返します。
public void updateNotification ()
通知の最新バージョンを NotificationContentProvider
に要求した後に、通知を再レンダリングします。これにより、ForegroundServiceManager
シングルトンを介してこれを呼び出す必要がなくなりました。