android-components / mozilla.components.browser.engine.system / NestedWebView

# NestedWebView

`class NestedWebView : WebView, NestedScrollingChild` (source)

WebView that supports nested scrolls (for using in a CoordinatorLayout).

This code is a simplified version of the NestedScrollView implementation which can be found in the support library: android.support.v4.widget.NestedScrollView

Based on: https://github.com/takahirom/webview-in-coordinatorlayout

### Constructors

<init> | `NestedWebView(context: Context)` WebView that supports nested scrolls (for using in a CoordinatorLayout).

### Functions

dispatchNestedFling | `fun dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean): Boolean`
dispatchNestedPreFling | `fun dispatchNestedPreFling(velocityX: Float, velocityY: Float): Boolean`
dispatchNestedPreScroll | `fun dispatchNestedPreScroll(dx: Int, dy: Int, consumed: IntArray?, offsetInWindow: IntArray?): Boolean`
dispatchNestedScroll | `fun dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, offsetInWindow: IntArray?): Boolean`
hasNestedScrollingParent | `fun hasNestedScrollingParent(): Boolean`
isNestedScrollingEnabled | `fun isNestedScrollingEnabled(): Boolean`
onTouchEvent | `fun onTouchEvent(ev: MotionEvent): Boolean`
setNestedScrollingEnabled | `fun setNestedScrollingEnabled(enabled: Boolean): Unit`
startNestedScroll | `fun startNestedScroll(axes: Int): Boolean`
stopNestedScroll | `fun stopNestedScroll(): Unit`

### Extension Properties

isLTR | `val View.isLTR: Boolean` Is the horizontal layout direction of this view from Left to Right?
isRTL | `val View.isRTL: Boolean` Is the horizontal layout direction of this view from Right to Left?

### Extension Functions

forEach | `fun ViewGroup.forEach(action: (View) -> Unit): Unit` Performs the given action on each View in this ViewGroup.
hideKeyboard | `fun View.hideKeyboard(): Unit` Hides the soft input window.
isGone | `fun View.isGone(): Boolean` Returns true if this view's visibility is set to View.GONE.
isInvisible | `fun View.isInvisible(): Boolean` Returns true if this view's visibility is set to View.INVISIBLE.
isVisible | `fun View.isVisible(): Boolean` Returns true if this view's visibility is set to View.VISIBLE.
setPadding | `fun View.setPadding(padding: Padding): Unit` Set a padding using Padding object.
showKeyboard | `fun View.showKeyboard(flags: Int = InputMethodManager.SHOW_IMPLICIT): Unit` Tries to focus this view and show the soft input window for it.