MediaController.TransportControls.SetRating(Rating) Method
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.
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()
.
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.