Udostępnij za pośrednictwem


Rating.NewUnratedRating(RatingStyle) Method

Definition

Return a Rating instance with no rating.

[Android.Runtime.Register("newUnratedRating", "(I)Landroid/media/Rating;", "")]
public static Android.Media.Rating? NewUnratedRating (Android.Media.RatingStyle ratingStyle);
[<Android.Runtime.Register("newUnratedRating", "(I)Landroid/media/Rating;", "")>]
static member NewUnratedRating : Android.Media.RatingStyle -> Android.Media.Rating

Parameters

ratingStyle
RatingStyle

one of #RATING_HEART, #RATING_THUMB_UP_DOWN, #RATING_3_STARS, #RATING_4_STARS, #RATING_5_STARS, or #RATING_PERCENTAGE.

Returns

null if an invalid rating style is passed, a new Rating instance otherwise.

Attributes

Remarks

Return a Rating instance with no rating. Create and return a new Rating instance with no rating known for the given rating style.

Java documentation for android.media.Rating.newUnratedRating(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