public interface NotificationSignalExtractor
NotificationComparator
and caches them
on the NotificationRecord
object. These annotations will
not be passed on to NotificationListenerService
s.Modifier and Type | Method and Description |
---|---|
void |
initialize(Context context,
NotificationUsageStats usageStats)
One-time initialization.
|
RankingReconsideration |
process(NotificationRecord notification)
Called once per notification that is posted or updated.
|
void |
setConfig(RankingConfig config)
Called whenever the
RankingConfig changes. |
void initialize(Context context, NotificationUsageStats usageStats)
RankingReconsideration process(NotificationRecord notification)
RankingReconsideration
will be run on a worker thread, and if notifications
are re-ordered by that execution, the NotificationManagerService
may send order
update events to the NotificationListenerService
s.void setConfig(RankingConfig config)
RankingConfig
changes.config
- information about which signals are important.