android-components / mozilla.components.browser.engine.gecko / GeckoEngineSession

# GeckoEngineSession

`class GeckoEngineSession : EngineSession` (source)

Gecko-based EngineSession implementation.

### Constructors

<init> | `GeckoEngineSession(runtime: GeckoRuntime, privateMode: Boolean = false, defaultSettings: Settings? = null)` `GeckoEngineSession(runtime: GeckoRuntime, privateMode: Boolean = false, defaultSettings: Settings? = null, geckoSessionProvider: () -> GeckoSession = { GeckoSession() })` Gecko-based EngineSession implementation.

### Properties

settings | `val settings: Settings` See EngineSession.settings

### Functions

captureThumbnail | `fun captureThumbnail(): Bitmap?` Takes a screenshot of the actual tab
clearData | `fun clearData(): Unit` See EngineSession.clearData
clearFindMatches | `fun clearFindMatches(): Unit` See EngineSession.clearFindMatches
disableTrackingProtection | `fun disableTrackingProtection(): Unit` See EngineSession.disableTrackingProtection
enableTrackingProtection | `fun enableTrackingProtection(policy: TrackingProtectionPolicy): Unit` See EngineSession.enableTrackingProtection
exitFullScreenMode | `fun exitFullScreenMode(): Unit` See EngineSession.exitFullScreenMode
findAll | `fun findAll(text: String): Unit` See EngineSession.findAll
findNext | `fun findNext(forward: Boolean): Unit` See EngineSession.findNext
goBack | `fun goBack(): Unit` See EngineSession.goBack
goForward | `fun goForward(): Unit` See EngineSession.goForward
handleLongClick | `fun handleLongClick(elementSrc: String?, elementType: Int, uri: String? = null): HitResult?`
loadData | `fun loadData(data: String, mimeType: String, encoding: String): Unit` See EngineSession.loadData
loadUrl | `fun loadUrl(url: String): Unit` See EngineSession.loadUrl
reload | `fun reload(): Unit` See EngineSession.reload
restoreState | `fun restoreState(state: Map<String, Any>): Unit` See EngineSession.restoreState
saveState | `fun saveState(): Map<String, Any>` See EngineSession.saveState
stopLoading | `fun stopLoading(): Unit` See EngineSession.stopLoading
toggleDesktopMode | `fun toggleDesktopMode(enable: Boolean, reload: Boolean): Unit` See EngineSession.settings

### Inherited Functions

close | `fun close(): Unit` Close the session. This may free underlying objects. Call this when you are finished using this session.