android-components / mozilla.components.browser.engine.servo / ServoEngineView

# ServoEngineView

`class ServoEngineView : FrameLayout, EngineView` (source)

Servo-based implementation of EngineView.

### Constructors

<init> | `ServoEngineView(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)` Servo-based implementation of EngineView.

### Functions

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.
render | `fun render(session: EngineSession): Unit` Render the content of the given session.

### Inherited Functions

asView | `open fun asView(): View` Convenience method to cast the implementation of this interface to an Android View object.
canScrollVerticallyDown | `open fun canScrollVerticallyDown(): Boolean` Check if EngineView can be scrolled vertically down. true if can and false otherwise.
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.
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 Properties

isLTR | `val View.isLTR: Boolean` Is the horizontal layout direction of this view from Left to Right?
isRTL | `val View.isRTL: Boolean` Is the horizontal layout direction of this view from Right to Left?

### Extension Functions

forEach | `fun ViewGroup.forEach(action: (View) -> Unit): Unit` Performs the given action on each View in this ViewGroup.
hideKeyboard | `fun View.hideKeyboard(): Unit` Hides the soft input window.
isGone | `fun View.isGone(): Boolean` Returns true if this view's visibility is set to View.GONE.
isInvisible | `fun View.isInvisible(): Boolean` Returns true if this view's visibility is set to View.INVISIBLE.
isVisible | `fun View.isVisible(): Boolean` Returns true if this view's visibility is set to View.VISIBLE.
setPadding | `fun View.setPadding(padding: Padding): Unit` Set a padding using Padding object.
showKeyboard | `fun View.showKeyboard(flags: Int = InputMethodManager.SHOW_IMPLICIT): Unit` Tries to focus this view and show the soft input window for it.