ReviewConfig

data class ReviewConfig(val starsState: ReviewConfig.State, val commentaryState: ReviewConfig.State, val singleReview: Boolean, val minRating: Double = 0.0, val commentaryMaxLength: Int = 150)

Data representing the review system configuration

At lest one state needs to be State.REQUIRED

See also

Constructors

Link copied to clipboard
constructor(starsState: ReviewConfig.State, commentaryState: ReviewConfig.State, singleReview: Boolean, minRating: Double = 0.0, commentaryMaxLength: Int = 150)

Types

Link copied to clipboard

State of review section, DISABLED/OPTIONAL/REQUIRED

Functions

Link copied to clipboard

Check if the review configuration is valid

Properties

Link copied to clipboard

Optional: Sets the max length for the commentary, default to 150

Link copied to clipboard

The state of the EditText in the review dialog

Link copied to clipboard
val minRating: Double = 0.0

Optional: Sets the minimum rating

Link copied to clipboard

If enabled the main app will remember the submitted review and prevent the user for reviewing again

Link copied to clipboard

The state of the rating bar in the review dialog