class Session : Observable<Observer>
(source)
Value type that represents the state of a browser session. Changes can be observed.
data class FindResult
A value type representing a result of a "find in page" operation. |
|
interface Observer
Interface to be implemented by classes that want to observe a session. |
|
data class SecurityInfo
A value type holding security information for a Session. |
|
enum class Source
Represents the origin of a session to describe how and why it was created. |
Session(initialUrl: String, private: Boolean = false, source: Source = Source.NONE, id: String = UUID.randomUUID().toString(), delegate: Observable<Observer> = ObserverRegistry())
Value type that represents the state of a browser session. Changes can be observed. |
var appPermissionRequest: Consumable<PermissionRequest>
Consumable permission request for the app. A PermissionRequest must be consumed i.e. either PermissionRequest.grant or PermissionRequest.reject must be called. |
|
var canGoBack: Boolean
Navigation state, true if there's an history item to go back to, otherwise false. |
|
var canGoForward: Boolean
Navigation state, true if there's an history item to go forward to, otherwise false. |
|
var closeWindowRequest: Consumable<WindowRequest>
Consumable request to close a window. |
|
var contentPermissionRequest: Consumable<PermissionRequest>
Consumable permission request from web content. A PermissionRequest must be consumed i.e. either PermissionRequest.grant or PermissionRequest.reject must be called. A content permission request can also be cancelled, which will result in a new empty Consumable. |
|
var customTabConfig: CustomTabConfig?
Configuration data in case this session is used for a Custom Tab. |
|
var desktopMode: Boolean
Desktop Mode state, true if the desktop mode is requested, otherwise false. |
|
var download: Consumable<Download>
Last download request if it wasn't consumed by at least one observer. |
|
var findResults: List<FindResult>
List of results of that latest "find in page" operation. |
|
var fullScreenMode: Boolean
Exits fullscreen mode if it's in that state. |
|
var hitResult: Consumable<HitResult>
The target of the latest long click operation. |
|
val id: String |
|
var loading: Boolean
Loading state, true if this session's url is currently loading, otherwise false. |
|
var openWindowRequest: Consumable<WindowRequest>
Consumable request to open/create a window. |
|
val private: Boolean |
|
var progress: Int
The progress loading the current URL. |
|
var promptRequest: Consumable<PromptRequest>
Consumable State for a prompt request from web content. |
|
var searchTerms: String
The currently / last used search terms. |
|
var securityInfo: SecurityInfo
Security information indicating whether or not the current session is for a secure URL, as well as the host and SSL certificate authority, if applicable. |
|
val source: Source |
|
var thumbnail: Bitmap?
The target of the latest thumbnail. |
|
var title: String
The title of the currently displayed website changed. |
|
var trackerBlockingEnabled: Boolean
Tracker blocking state, true if blocking trackers is enabled, otherwise false. |
|
var trackersBlocked: List<String>
List of URIs that have been blocked in this session. |
|
var url: String
The currently loading or loaded URL. |
fun equals(other: Any?): Boolean |
|
fun hashCode(): Int |
|
fun isCustomTabSession(): Boolean
Returns whether or not this session is used for a Custom Tab. |
|
fun toString(): String |