android-components / mozilla.components.feature.tabs / WindowFeature

WindowFeature

class WindowFeature : LifecycleAwareFeature (source)

Feature implementation for handling window requests by opening and closing tabs.

Constructors

Name Summary
<init> WindowFeature(store: BrowserStore, tabsUseCases: TabsUseCases)
Feature implementation for handling window requests by opening and closing tabs.

Functions

Name Summary
start fun start(): Unit
Starts observing the selected session to listen for window requests and opens / closes tabs as needed.
stop fun stop(): Unit
Stops observing the selected session for incoming window requests.

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.