Rating.NewPercentageRating(Single) Method

Definition

Return a Rating instance with a percentage-based rating.

[Android.Runtime.Register("newPercentageRating", "(F)Landroid/media/Rating;", "")]
public static Android.Media.Rating? NewPercentageRating (float percent);
[<Android.Runtime.Register("newPercentageRating", "(F)Landroid/media/Rating;", "")>]
static member NewPercentageRating : single -> Android.Media.Rating

Parameters

percent
Single

the value of the rating

Returns

null if the rating is out of range, a new Rating instance otherwise.

Attributes

Remarks

Return a Rating instance with a percentage-based rating. Create and return a new Rating instance with a #RATING_PERCENTAGE rating style, and a rating of the given percentage.

Java documentation for android.media.Rating.newPercentageRating(float).

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