NotificationContentProviderBase

공개 추상 클래스 NotificationContentProviderBase expand Object
Implements NotificationContentProvider

클라이언트는 영구 알림의 콘텐츠를 제어하려면 이 클래스를 확장해야 합니다. 알림 콘텐츠가 변경되면 updateNotification()ForegroundServiceManager를 통해 새 알림을 푸시하는 편의 메서드입니다.

공개 생성자 요약

NotificationContentProviderBase(애플리케이션 애플리케이션)
생성자

공개 메서드 요약

개요 알림
getNotification()
알림의 최신 버전을 반환합니다.
void
updateNotification()
NotificationContentProvider에 최신 버전의 알림을 요청한 후 알림을 다시 렌더링합니다.

상속받은 메서드 요약

공개 생성자

공개 NotificationContentProviderBase (애플리케이션 애플리케이션)

생성자

매개변수
방법

공개 메서드

공개 추상 알림 getNotification ()

알림의 최신 버전을 반환합니다.

공개 void updateNotification ()

NotificationContentProvider에 최신 버전의 알림을 요청한 후 알림을 다시 렌더링합니다. ForegroundServiceManager 싱글톤을 통해 이 메서드를 호출할 필요가 없습니다.