android-components / mozilla.components.concept.engine / EngineView

# EngineView

`interface EngineView` (source)

View component that renders web content.

### Functions

asView | `open fun asView(): View` Convenience method to cast the implementation of this interface to an Android View object.
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.
render | `abstract fun render(session: EngineSession): Unit` Render the content of the given session.

### Inheritors

GeckoEngineView | `class GeckoEngineView : FrameLayout, EngineView` Gecko-based EngineView implementation.
ServoEngineView | `class ServoEngineView : FrameLayout, EngineView` Servo-based implementation of EngineView.
SystemEngineView | `class SystemEngineView : FrameLayout, EngineView, OnLongClickListener` WebView-based implementation of EngineView.