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


class NestedWebView : 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:

Based on:


Name Summary
<init> NestedWebView(context: <ERROR CLASS>)
WebView that supports nested scrolls (for using in a CoordinatorLayout).


Name Summary
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: <ERROR CLASS>): Boolean
setNestedScrollingEnabled fun setNestedScrollingEnabled(enabled: Boolean): Unit
startNestedScroll fun startNestedScroll(axes: Int): Boolean
stopNestedScroll fun stopNestedScroll(): Unit

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.