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

Rating

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

Attributes

Remarks

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