RatingBar.IOnRatingBarChangeListener.OnRatingChanged Method

Definition

Notification that the rating has changed.

[Android.Runtime.Register("onRatingChanged", "(Landroid/widget/RatingBar;FZ)V", "GetOnRatingChanged_Landroid_widget_RatingBar_FZHandler:Android.Widget.RatingBar/IOnRatingBarChangeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnRatingChanged (Android.Widget.RatingBar? ratingBar, float rating, bool fromUser);
[<Android.Runtime.Register("onRatingChanged", "(Landroid/widget/RatingBar;FZ)V", "GetOnRatingChanged_Landroid_widget_RatingBar_FZHandler:Android.Widget.RatingBar/IOnRatingBarChangeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnRatingChanged : Android.Widget.RatingBar * single * bool -> unit

Parameters

ratingBar
RatingBar

The RatingBar whose rating has changed.

rating
Single

The current rating. This will be in the range 0..numStars.

fromUser
Boolean

True if the rating change was initiated by a user's touch gesture or arrow key/horizontal trackbell movement.

Attributes

Remarks

Notification that the rating has changed. Clients can use the fromUser parameter to distinguish user-initiated changes from those that occurred programmatically. This will not be called continuously while the user is dragging, only when the user finalizes a rating by lifting the touch.

Java documentation for android.widget.RatingBar.OnRatingBarChangeListener.onRatingChanged(android.widget.RatingBar, float, 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