DataClassDisplayOptions

data class DataClassDisplayOptions(@DrawableRes val placeholderDrawable: Int, @DrawableRes val errorPlaceholderDrawable: Int, val columns: Int, val vertical: Boolean, val showLocation: Boolean)

Stores the configuration in which the DataClass should be displayed.

Author

Arnau Mora

Since

20210819

Parameters

placeholderDrawable

The drawable resource of the image to display while the real one is being loaded.

errorPlaceholderDrawable

The drawable resource of the image to load when there's an error while loading the real one.

columns

The amount of columns that should be shown to the user.

vertical

Whether the DataClass' image is vertical or not.

showLocation

Whether or not the location button should be visible.

Constructors

Link copied to clipboard
fun DataClassDisplayOptions(@DrawableRes placeholderDrawable: Int, @DrawableRes errorPlaceholderDrawable: Int, columns: Int, vertical: Boolean, showLocation: Boolean)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if the current DataClassDisplayOptions is equal to another one.

Link copied to clipboard
open override fun hashCode(): Int

Provides a hash code value.

Properties

Link copied to clipboard

The amount of columns that should be shown to the user.

Link copied to clipboard

The drawable resource of the image to load when there's an error while loading the real one.

Link copied to clipboard

The drawable resource of the image to display while the real one is being loaded.

Link copied to clipboard

Whether or not the location button should be visible.

Link copied to clipboard

Whether or not the DataClass is downloadable. This determines if the download button should be shown.