NotificationListenerService.Ranking.UserSentiment Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.
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.