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

GeckoEngineView

class GeckoEngineView : EngineView (source)

Gecko-based EngineView implementation.

Constructors

Name Summary
<init> GeckoEngineView(context: <ERROR CLASS>, attrs: <ERROR CLASS>? = null, defStyleAttr: Int = 0)
Gecko-based EngineView implementation.

Functions

Name Summary
canScrollVerticallyDown fun canScrollVerticallyDown(): Boolean
Check if EngineView can be scrolled vertically down. true if can and false otherwise.
canScrollVerticallyUp fun canScrollVerticallyUp(): Boolean
Check if EngineView can be scrolled vertically up. true if can and false otherwise.
captureThumbnail fun captureThumbnail(onFinish: (<ERROR CLASS>?) -> Unit): Unit
onDetachedFromWindow fun onDetachedFromWindow(): Unit
release fun release(): Unit
Releases an EngineSession that is currently rendered by this view (after calling render).
render fun render(session: EngineSession): Unit
Render the content of the given session.
setDynamicToolbarMaxHeight fun setDynamicToolbarMaxHeight(height: Int): Unit
Sets the maximum height of the dynamic toolbar(s).
setVerticalClipping fun setVerticalClipping(clippingHeight: Int): Unit
Updates the amount of vertical space that is clipped or visibly obscured in the bottom portion of the view. Tells the EngineView where to put bottom fixed elements so they are fully visible.

Inherited Functions

Name Summary
asView open fun asView(): <ERROR CLASS>
Convenience method to cast the implementation of this interface to an Android View object.
captureThumbnail abstract fun captureThumbnail(onFinish: (<ERROR CLASS>?) -> Unit): Unit
Request a screenshot of the visible portion of the web page currently being rendered.
onCreate open fun onCreate(): Unit
To be called in response to Lifecycle.Event.ON_CREATE. See EngineView implementations for details.
onDestroy open fun onDestroy(): Unit
To be called in response to Lifecycle.Event.ON_DESTROY. See EngineView implementations for details.
onPause open fun onPause(): Unit
To be called in response to Lifecycle.Event.ON_PAUSE. See EngineView implementations for details.
onResume open fun onResume(): Unit
To be called in response to Lifecycle.Event.ON_RESUME. See EngineView implementations for details.
onStart open fun onStart(): Unit
To be called in response to Lifecycle.Event.ON_START. See EngineView implementations for details.
onStop open fun onStop(): Unit
To be called in response to Lifecycle.Event.ON_STOP. See EngineView implementations for details.

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.