Loading core/java/android/service/notification/NotificationAssistantService.java +8 −3 Original line number Diff line number Diff line Loading @@ -91,7 +91,8 @@ public abstract class NotificationAssistantService extends NotificationListenerS = "android.service.notification.NotificationAssistantService"; /** * Data type: int, the feedback rating score provided by user * Data type: int, the feedback rating score provided by user. The score can be any integer * value depends on the experimental and feedback UX design. */ public static final String FEEDBACK_RATING = "feedback.rating"; Loading Loading @@ -129,7 +130,8 @@ public abstract class NotificationAssistantService extends NotificationListenerS * A notification was posted by an app. Called before post. * * <p>Note: this method is only called if you don't override * {@link #onNotificationEnqueued(StatusBarNotification, NotificationChannel)}.</p> * {@link #onNotificationEnqueued(StatusBarNotification, NotificationChannel)} or * {@link #onNotificationEnqueued(StatusBarNotification, NotificationChannel, RankingMap)}.</p> * * @param sbn the new notification * @return an adjustment or null to take no action, within 200ms. Loading @@ -139,6 +141,9 @@ public abstract class NotificationAssistantService extends NotificationListenerS /** * A notification was posted by an app. Called before post. * * <p>Note: this method is only called if you don't override * {@link #onNotificationEnqueued(StatusBarNotification, NotificationChannel, RankingMap)}.</p> * * @param sbn the new notification * @param channel the channel the notification was posted to * @return an adjustment or null to take no action, within 200ms. Loading Loading @@ -282,7 +287,7 @@ public abstract class NotificationAssistantService extends NotificationListenerS * @param key the notification key * @param rankingMap The current ranking map that can be used to retrieve ranking information * for active notifications. * @param feedback the feedback detail * @param feedback the received feedback, such as {@link #FEEDBACK_RATING rating score} */ public void onNotificationFeedbackReceived(@NonNull String key, @NonNull RankingMap rankingMap, @NonNull Bundle feedback) { Loading Loading
core/java/android/service/notification/NotificationAssistantService.java +8 −3 Original line number Diff line number Diff line Loading @@ -91,7 +91,8 @@ public abstract class NotificationAssistantService extends NotificationListenerS = "android.service.notification.NotificationAssistantService"; /** * Data type: int, the feedback rating score provided by user * Data type: int, the feedback rating score provided by user. The score can be any integer * value depends on the experimental and feedback UX design. */ public static final String FEEDBACK_RATING = "feedback.rating"; Loading Loading @@ -129,7 +130,8 @@ public abstract class NotificationAssistantService extends NotificationListenerS * A notification was posted by an app. Called before post. * * <p>Note: this method is only called if you don't override * {@link #onNotificationEnqueued(StatusBarNotification, NotificationChannel)}.</p> * {@link #onNotificationEnqueued(StatusBarNotification, NotificationChannel)} or * {@link #onNotificationEnqueued(StatusBarNotification, NotificationChannel, RankingMap)}.</p> * * @param sbn the new notification * @return an adjustment or null to take no action, within 200ms. Loading @@ -139,6 +141,9 @@ public abstract class NotificationAssistantService extends NotificationListenerS /** * A notification was posted by an app. Called before post. * * <p>Note: this method is only called if you don't override * {@link #onNotificationEnqueued(StatusBarNotification, NotificationChannel, RankingMap)}.</p> * * @param sbn the new notification * @param channel the channel the notification was posted to * @return an adjustment or null to take no action, within 200ms. Loading Loading @@ -282,7 +287,7 @@ public abstract class NotificationAssistantService extends NotificationListenerS * @param key the notification key * @param rankingMap The current ranking map that can be used to retrieve ranking information * for active notifications. * @param feedback the feedback detail * @param feedback the received feedback, such as {@link #FEEDBACK_RATING rating score} */ public void onNotificationFeedbackReceived(@NonNull String key, @NonNull RankingMap rankingMap, @NonNull Bundle feedback) { Loading