android-components / mozilla.components.browser.state.state / ContentState


data class ContentState (source)

Value type that represents the state of the content within a SessionState.


Name Summary
<init> ContentState(url: String, private: Boolean = false, title: String = "", progress: Int = 0, loading: Boolean = false, searchTerms: String = "", securityInfo: SecurityInfoState = SecurityInfoState(), thumbnail: <ERROR CLASS>? = null, icon: <ERROR CLASS>? = null, download: DownloadState? = null, hitResult: HitResult? = null, promptRequest: PromptRequest? = null, findResults: List<FindResultState> = emptyList())
Value type that represents the state of the content within a SessionState.


Name Summary
download val download: DownloadState?
Last unhandled download request.
findResults val findResults: List<FindResultState>
the list of results of the latest “find in page” operation.
hitResult val hitResult: HitResult?
the target of the latest long click operation.
icon val icon: <ERROR CLASS>?
the icon of the page currently loaded by this session.
loading val loading: Boolean
private val private: Boolean
whether or not the session is private.
progress val progress: Int
the loading progress of the current page.
promptRequest val promptRequest: PromptRequest?
the last received PromptRequest.
searchTerms val searchTerms: String
the last used search terms, or an empty string if no search was executed for this session.
securityInfo val securityInfo: SecurityInfoState
the security information as SecurityInfoState, describing whether or not the this session is for a secure URL, as well as the host and SSL certificate authority.
thumbnail val thumbnail: <ERROR CLASS>?
the last generated Bitmap of this session’s content, to be used as a preview in e.g. a tab switcher.
title val title: String
the title of the current page.
url val url: String
the loading or loaded URL.