android-components / mozilla.components.feature.tab.collections.ext

Package mozilla.components.feature.tab.collections.ext

Functions

Name Summary
restore fun SessionManager.restore(context: <ERROR CLASS>, engine: Engine, tab: Tab, onTabRestored: () -> Unit, onFailure: () -> Unit): Unit
Restores the given Tab from a TabCollection. Will invoke onTabRestored on successful restore and onFailure otherwise.fun SessionManager.restore(context: <ERROR CLASS>, engine: Engine, collection: TabCollection, onFailure: (String) -> Unit): Unit
Restores the given TabCollection. Will invoke onFailure if restoring a single Tab of the collection failed. The URL of the tab will be passed to onFailure.