android-components / mozilla.components.browser.session.utils / AllSessionsObserver

AllSessionsObserver

class AllSessionsObserver (source)

This class is a combination of Session.Observer and SessionManager.Observer. It observers all Session instances that get added to the SessionManager and automatically unsubscribes from Session instances that get removed.

Types

Name Summary
Observer interface Observer : Observer

Constructors

Name Summary
<init> AllSessionsObserver(sessionManager: SessionManager, sessionObserver: Observer)
This class is a combination of Session.Observer and SessionManager.Observer. It observers all Session instances that get added to the SessionManager and automatically unsubscribes from Session instances that get removed.

Functions

Name Summary
start fun start(): Unit
stop fun stop(): Unit

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.