Share via


Rating.NewHeartRating(Boolean) Method

Definition

Return a Rating instance with a heart-based rating.

[Android.Runtime.Register("newHeartRating", "(Z)Landroid/media/Rating;", "")]
public static Android.Media.Rating? NewHeartRating (bool hasHeart);
[<Android.Runtime.Register("newHeartRating", "(Z)Landroid/media/Rating;", "")>]
static member NewHeartRating : bool -> Android.Media.Rating

Parameters

hasHeart
Boolean

true for a "heart selected" rating, false for "heart unselected".

Returns

a new Rating instance.

Attributes

Remarks

Return a Rating instance with a heart-based rating. Create and return a new Rating instance with a rating style of #RATING_HEART, and a heart-based rating.

Java documentation for android.media.Rating.newHeartRating(boolean).

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