android-components / mozilla.components.feature.session.behavior / EngineViewBottomBehavior

EngineViewBottomBehavior

class EngineViewBottomBehavior : Behavior<<ERROR CLASS>> (source)

A CoordinatorLayout.Behavior implementation to be used with EngineView when placing a toolbar at the bottom of the screen.

Using this behavior requires the toolbar to use the BrowserToolbarBottomBehavior.

This implementation will update the vertical clipping of the EngineView so that bottom-aligned web content will be drawn above the native toolbar.

Constructors

Name Summary
<init> EngineViewBottomBehavior(context: <ERROR CLASS>?, attrs: <ERROR CLASS>?)
A CoordinatorLayout.Behavior implementation to be used with EngineView when placing a toolbar at the bottom of the screen.

Functions

Name Summary
layoutDependsOn fun layoutDependsOn(parent: CoordinatorLayout, child: <ERROR CLASS>, dependency: <ERROR CLASS>): Boolean
onDependentViewChanged fun onDependentViewChanged(parent: CoordinatorLayout, child: <ERROR CLASS>, dependency: <ERROR CLASS>): Boolean
Apply vertical clipping to EngineView. This requires EngineViewBottomBehavior to be set in/on the EngineView or its parent. Must be a direct descending child of CoordinatorLayout.

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.