android-components / mozilla.components.concept.engine / EngineSession / Observer

Observer

interface Observer (source)

Interface to be implemented by classes that want to observe this engine session.

Functions

onDesktopModeChange

open fun onDesktopModeChange(enabled: Boolean): Unit

onExternalResource

open fun onExternalResource(url: String, fileName: String? = null, contentLength: Long? = null, contentType: String? = null, cookie: String? = null, userAgent: String? = null): Unit

onFind

open fun onFind(text: String): Unit

onFindResult

open fun onFindResult(activeMatchOrdinal: Int, numberOfMatches: Int, isDoneCounting: Boolean): Unit

onFullScreenChange

open fun onFullScreenChange(enabled: Boolean): Unit

onLoadingStateChange

open fun onLoadingStateChange(loading: Boolean): Unit

onLocationChange

open fun onLocationChange(url: String): Unit

onLongPress

open fun onLongPress(hitResult: HitResult): Unit

onNavigationStateChange

open fun onNavigationStateChange(canGoBack: Boolean? = null, canGoForward: Boolean? = null): Unit

onProgress

open fun onProgress(progress: Int): Unit

onSecurityChange

open fun onSecurityChange(secure: Boolean, host: String? = null, issuer: String? = null): Unit

onThumbnailChange

open fun onThumbnailChange(bitmap: Bitmap?): Unit

onTitleChange

open fun onTitleChange(title: String): Unit

onTrackerBlocked

open fun onTrackerBlocked(url: String): Unit

onTrackerBlockingEnabledChange

open fun onTrackerBlockingEnabledChange(enabled: Boolean): Unit