public class ImportanceExtractor extends Object implements NotificationSignalExtractor
Constructor and Description |
---|
ImportanceExtractor() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Context ctx,
NotificationUsageStats usageStats)
One-time initialization.
|
RankingReconsideration |
process(NotificationRecord record)
Called once per notification that is posted or updated.
|
void |
setConfig(RankingConfig config)
Called whenever the
RankingConfig changes. |
public void initialize(Context ctx, NotificationUsageStats usageStats)
NotificationSignalExtractor
initialize
in interface NotificationSignalExtractor
public RankingReconsideration process(NotificationRecord record)
NotificationSignalExtractor
process
in interface NotificationSignalExtractor
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.public void setConfig(RankingConfig config)
NotificationSignalExtractor
RankingConfig
changes.setConfig
in interface NotificationSignalExtractor
config
- information about which signals are important.