OnRatingBarChangeListener
interface OnRatingBarChangeListener
A callback that notifies clients when the rating has been changed. This includes changes that were initiated by the user through a touch gesture or arrow key/trackball as well as changes that were initiated programmatically.
Summary
Public methods | |
---|---|
abstract Unit |
onRatingChanged(ratingBar: RatingBar!, rating: Float, fromUser: Boolean) Notification that the rating has changed. |
Public methods
onRatingChanged
abstract fun onRatingChanged(
ratingBar: RatingBar!,
rating: Float,
fromUser: Boolean
): Unit
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.