android-components / mozilla.components.support.ktx.android.view

Package mozilla.components.support.ktx.android.view

Properties

Name Summary
isLTR val <ERROR CLASS>.isLTR: Boolean
Is the horizontal layout direction of this view from Left to Right?
isRTL val <ERROR CLASS>.isRTL: Boolean
Is the horizontal layout direction of this view from Right to Left?

Functions

Name Summary
enterToImmersiveMode fun <ERROR CLASS>.enterToImmersiveMode(): Unit
Attempts to call immersive mode using the View to hide the status bar and navigation buttons.
exitImmersiveModeIfNeeded fun <ERROR CLASS>.exitImmersiveModeIfNeeded(): Unit
Attempts to come out from immersive mode using the View.
forEach fun <ERROR CLASS>.forEach(action: (<ERROR CLASS>) -> Unit): Unit
Performs the given action on each View in this ViewGroup.
getRectWithViewLocation fun <ERROR CLASS>.getRectWithViewLocation(): <ERROR CLASS>
Fills the given Rect with data about location view in the window.
hideKeyboard fun <ERROR CLASS>.hideKeyboard(): Unit
Hides the soft input window.
isGone fun <ERROR CLASS>.~~isGone~~(): Boolean
Returns true if this view’s visibility is set to View.GONE.
isInvisible fun <ERROR CLASS>.~~isInvisible~~(): Boolean
Returns true if this view’s visibility is set to View.INVISIBLE.
isVisible fun <ERROR CLASS>.~~isVisible~~(): Boolean
Returns true if this view’s visibility is set to View.VISIBLE.
onNextGlobalLayout fun <ERROR CLASS>.onNextGlobalLayout(callback: () -> Unit): Unit
Registers a one-time callback to be invoked when the global layout state or the visibility of views within the view tree changes.
putCompoundDrawablesRelative fun <ERROR CLASS>.putCompoundDrawablesRelative(start: <ERROR CLASS>? = null, top: <ERROR CLASS>? = null, end: <ERROR CLASS>? = null, bottom: <ERROR CLASS>? = null): <ERROR CLASS>
Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text. Use null if you do not want a Drawable there. The Drawables must already have had Drawable.setBounds called.
putCompoundDrawablesRelativeWithIntrinsicBounds fun <ERROR CLASS>.putCompoundDrawablesRelativeWithIntrinsicBounds(start: <ERROR CLASS>? = null, top: <ERROR CLASS>? = null, end: <ERROR CLASS>? = null, bottom: <ERROR CLASS>? = null): <ERROR CLASS>
Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text. Use null if you do not want a Drawable there. The Drawables’ bounds will be set to their intrinsic bounds.
setNavigationBarTheme fun <ERROR CLASS>.setNavigationBarTheme(backgroundColor: Int): Unit
Colors the navigation bar black or white depending on the background color.
setPadding fun <ERROR CLASS>.setPadding(padding: Padding): Unit
Set a padding using Padding object.
setStatusBarTheme fun <ERROR CLASS>.setStatusBarTheme(themeColor: Int): Unit
Colors the status bar to match the theme color. If the color is light enough, a light status bar with dark icons will be used.
showKeyboard fun <ERROR CLASS>.showKeyboard(flags: Int = InputMethodManager.SHOW_IMPLICIT): Unit
Tries to focus this view and show the soft input window for it.
use fun <R> <ERROR CLASS>.use(functionBlock: (<ERROR CLASS>) -> R): R
Executes the given functionBlock function on this resource and then closes it down correctly whether an exception is thrown or not. This is inspired by java.lang.AutoCloseable.use.