Share via


NotificationListenerService.Ranking.UserSentiment Property

Definition

Returns how the system thinks the user feels about notifications from the channel provided by #getChannel().

public virtual Android.Service.Notification.UserSentiment UserSentiment { [Android.Runtime.Register("getUserSentiment", "()I", "GetGetUserSentimentHandler", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getUserSentiment", "()I", "GetGetUserSentimentHandler", ApiSince=28)>]
member this.UserSentiment : Android.Service.Notification.UserSentiment

Property Value

Attributes

Remarks

Returns how the system thinks the user feels about notifications from the channel provided by #getChannel(). You can use this information to expose controls to help the user block this channel's notifications, if the sentiment is #USER_SENTIMENT_NEGATIVE, or emphasize this notification if the sentiment is #USER_SENTIMENT_POSITIVE.

Java documentation for android.service.notification.NotificationListenerService.Ranking.getUserSentiment().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to