Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
object I18nUtils

Localization utils and extension functions to get project specific localized strings and quantity strings.

Link copied to clipboard
Link copied to clipboard
open class KeyguardUtils
Link copied to clipboard
Link copied to clipboard
open class ProgressDialog(context: Context) : AlertDialog
Link copied to clipboard
interface Sides
Link copied to clipboard
Link copied to clipboard
open class UIUtils
Link copied to clipboard
open class ZebraSupport

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Extension function to bind a LiveData String to the context description of a TextView (or its derived classes like Button)

Link copied to clipboard

Extension function to bind a LiveData Boolean to the enabled state of any View.

Link copied to clipboard

Extension function to bind a LiveData String to the text of a TextView (or its derived classes like Button)

Link copied to clipboard

Extension function to bind a LiveData String to the text of a TextView (or its derived classes like Button), when the String is null or empty the view will be hidden.

Link copied to clipboard

Extension function to bind a LiveData Boolean to the visibility of any View.

Link copied to clipboard
Link copied to clipboard
fun View.executeUiAction(event: SnabbleUI.Event, args: Bundle? = null)
Link copied to clipboard
fun RecyclerView.ViewHolder.getString(@StringRes string: Int, vararg args: Any?): String
Link copied to clipboard
Link copied to clipboard
fun ViewGroup.inflate(@LayoutRes resource: Int, root: ViewGroup? = this, attachToRoot: Boolean = false): View
Link copied to clipboard
Link copied to clipboard
fun ImageView.loadAsset(assets: Assets, name: String)
Link copied to clipboard
Link copied to clipboard
fun <T> LiveData<T>.observeView(view: View, observer: Observer<T>)
Link copied to clipboard
inline fun <T : Parcelable> Bundle.parcelableExtra(key: String): T?
Link copied to clipboard

Post value only when the value has changed to avoid loops, be aware that a pending update is ignored.

Link copied to clipboard
Link copied to clipboard

Resolves the string and loads it into either an ImageView or TextView based on the given string. When the data matches an http(s) url or a resource id it will be loaded into the ImageView. When the data matches a string id can be resolved the localized string will be displayed inside the TextView otherwise the plain text will be displayed. When data is null the view will be hidden.

Link copied to clipboard
Link copied to clipboard
fun Snackbar.setBackgroundColor(@ColorRes color: Int): Snackbar
Link copied to clipboard
fun Snackbar.setGravity(gravity: Int): Snackbar
Link copied to clipboard
Link copied to clipboard
fun View.setOneShotClickListener(callback: () -> Unit)
Link copied to clipboard
fun Snackbar.setPriority(level: Int): Snackbar
Link copied to clipboard
Link copied to clipboard
fun Vibrator.vibrateCompat(timeInMillis: Long)