MediaController.TransportControls.SetRating(Rating) Method

Definition

Rate the current content.

[Android.Runtime.Register("setRating", "(Landroid/media/Rating;)V", "")]
public void SetRating (Android.Media.Rating? rating);
[<Android.Runtime.Register("setRating", "(Landroid/media/Rating;)V", "")>]
member this.SetRating : Android.Media.Rating -> unit

Parameters

rating
Rating

The rating to set for the current content

Attributes

Remarks

Rate the current content. This will cause the rating to be set for the current user. The Rating type must match the type returned by #getRatingType().

Java documentation for android.media.session.MediaController.TransportControls.setRating(android.media.Rating).

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