Share via


MediaSession.SetRatingType(RatingStyle) Method

Definition

Set the style of rating used by this session.

[Android.Runtime.Register("setRatingType", "(I)V", "", ApiSince=22)]
public void SetRatingType (Android.Media.RatingStyle type);
[<Android.Runtime.Register("setRatingType", "(I)V", "", ApiSince=22)>]
member this.SetRatingType : Android.Media.RatingStyle -> unit

Parameters

Attributes

Remarks

Set the style of rating used by this session. Apps trying to set the rating should use this style. Must be one of the following: <ul> <li>Rating#RATING_NONE</li> <li>Rating#RATING_3_STARS</li> <li>Rating#RATING_4_STARS</li> <li>Rating#RATING_5_STARS</li> <li>Rating#RATING_HEART</li> <li>Rating#RATING_PERCENTAGE</li> <li>Rating#RATING_THUMB_UP_DOWN</li> </ul>

Java documentation for android.media.session.MediaSession.setRatingType(int).

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