Package com. devbase. presentation. utilities

Defines utilities function used for presentation layer

Functions

Link copied to clipboard
fun Context.imageViewer(    listImage: List<String>,     position: Int = 0,     loader: (ImageView, String) -> Unit,     onDismiss: () -> Unit? = null)

method to preview image

Link copied to clipboard
fun previewImage(    ctx: Context,     listImage: List<String>,     position: Int = 0,     loader: (ImageView, String) -> Unit,     onDismiss: () -> Unit? = null)

method to preview image

Link copied to clipboard
fun MultiStateView.showDefaultLayout()

Method to show content layout of MultiStateView

Link copied to clipboard
fun MultiStateView.showEmptyLayout(@DrawableRes drawableRes: Int? = null, message: String? = null)

Method to show empty layout of MultiStateView

Link copied to clipboard
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

Link copied to clipboard
fun MultiStateView.showLoadingLayout()

Method to show loading layout of MultiStateView

Link copied to clipboard
fun MultiStateView.startShimmer()

Method to start shimmer

Link copied to clipboard
fun MultiStateView.stopShimmer()

Method to stop shimmer

Link copied to clipboard
inline fun <V : ViewBinding> LayoutInflater.toBinding(): V
inline fun <V : ViewBinding> ViewGroup.toBinding(): V