IStateLayoutConfig

Contract for state layout configuration

Since

v1.3.0

Properties

Link copied to clipboard
abstract val defaultMessage: Int?

label for success state, set this to null if you wish to hide the element

Link copied to clipboard
abstract val errorDrawable: Int?

drawable for error state, set this to null if you wish to hide the element

Link copied to clipboard
@get:AnimRes
abstract val inAnimation: Int

optional animations to use for switching in views

Link copied to clipboard
abstract val loadingDrawable: Int?

drawable for loading state, set this to null if you wish to hide the element

Link copied to clipboard
abstract val loadingMessage: Int?

label for loading message, set this to null if you wish to hide the element

Link copied to clipboard
@get:AnimRes
abstract val outAnimation: Int

optional animations to use for switching out views

Link copied to clipboard
abstract val retryAction: Int?

label for retry action, set this to null if you wish to hide the element