RatingStarState

Return corresponding RatingStarState based on a Boolean representation

Parameters

isFilled

whether the RatingStarState is full or empty


fun RatingStarState(@IntRange(from = 0, to = 1) starValue: Int): RatingStarState

Return corresponding RatingStarState based on a Int representation

Parameters

starValue

whether the RatingStarState is 1 (full) or 0 (empty)


fun RatingStarState(@FloatRange(from = 0.0, to = 1.0) starValue: Float): RatingStarState

Return corresponding RatingStarState based on a Float representation

Parameters

starValue

whether the RatingStarState is full, half or empty


fun RatingStarState(@FloatRange(from = 0.0, to = 1.0) starValue: Double): RatingStarState

Return corresponding RatingStarState based on a Double representation

Parameters

starValue

whether the RatingStarState is full, half or empty