Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58f421b1 authored by Chloris Kuo's avatar Chloris Kuo
Browse files

NAS Feedback API document change

Change the API doc based on the api council review results

Bug: 183972669
Bug: 183972766
Test: Manual tested on device
Change-Id: Ia467830909e3a78ac186d5660894d9f1651048ba
parent 55a95b12
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -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";

@@ -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.
@@ -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.
@@ -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) {