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

SystemEngineView

class SystemEngineView : EngineView (source)

WebView-based implementation of EngineView.

Types

Name Summary
ImageHandler class ImageHandler

Constructors

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

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
onDestroy fun onDestroy(): Unit
To be called in response to Lifecycle.Event.ON_DESTROY. See EngineView implementations for details.
onLongClick fun onLongClick(view: <ERROR CLASS>?): Boolean
onPause fun onPause(): Unit
To be called in response to Lifecycle.Event.ON_PAUSE. See EngineView implementations for details.
onResume fun onResume(): Unit
To be called in response to Lifecycle.Event.ON_RESUME. See EngineView implementations for details.
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.
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.