show Error Layout

fun MultiStateView.showErrorLayout(    @DrawableRes drawableRes: Int? = null,     title: String? = null,     message: String? = null,     btnRetry: Pair<String, () -> Unit>? = null)

Method to show error layout of MultiStateView

Parameters

drawableRes

drawable id of image to display

title

title of error

message

message of error

btnRetry

pair of button text and action when button clicked

Sources

Link copied to clipboard