android-components / mozilla.components.browser.engine.gecko / NestedGeckoView

NestedGeckoView

open class NestedGeckoView : GeckoView, NestedScrollingChild (source)

geckoView 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

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

Functions

Name Summary
dispatchNestedFling open fun dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean): Boolean
dispatchNestedPreFling open fun dispatchNestedPreFling(velocityX: Float, velocityY: Float): Boolean
dispatchNestedPreScroll open fun dispatchNestedPreScroll(dx: Int, dy: Int, consumed: IntArray?, offsetInWindow: IntArray?): Boolean
dispatchNestedScroll open fun dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, offsetInWindow: IntArray?): Boolean
hasNestedScrollingParent open fun hasNestedScrollingParent(): Boolean
isNestedScrollingEnabled open fun isNestedScrollingEnabled(): Boolean
onTouchEvent open fun onTouchEvent(ev: <ERROR CLASS>): Boolean
onTouchEventForResult open fun onTouchEventForResult(ev: <ERROR CLASS>): Int
setNestedScrollingEnabled open fun setNestedScrollingEnabled(enabled: Boolean): Unit
startNestedScroll open fun startNestedScroll(axes: Int): Boolean
stopNestedScroll open 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.