android-components / mozilla.components.browser.storage.sync / Tab

Tab

data class Tab (source)

A tab, which is defined by an history (think the previous/next button in your web browser) and a currently active history entry.

Constructors

Name Summary
<init> Tab(history: List<TabEntry>, active: Int, lastUsed: Long)
A tab, which is defined by an history (think the previous/next button in your web browser) and a currently active history entry.

Properties

Name Summary
active val active: Int
history val history: List<TabEntry>
lastUsed val lastUsed: Long

Functions

Name Summary
active fun active(): TabEntry
The current active tab entry. In other words, this is the page that’s currently shown for a tab.
next fun next(): List<TabEntry>
The list of tabs history entries that come after this tab. In other words, the “next” navigation button history list.
previous fun previous(): List<TabEntry>
The list of tabs history entries that come before this tab. In other words, the “previous” navigation button history list.

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.