android-components / mozilla.components.feature.privatemode.feature / SecureWindowFeature

SecureWindowFeature

class SecureWindowFeature : LifecycleAwareFeature (source)

Prevents screenshots and screen recordings in private tabs.

Parameters

isSecure - Returns true if the session should have FLAG_SECURE set. Can be overriden to customize when the secure flag is set.

Constructors

Name Summary
<init> SecureWindowFeature(window: <ERROR CLASS>, store: BrowserStore, customTabId: String? = null, isSecure: (SessionState) -> Boolean = { it.content.private })
Prevents screenshots and screen recordings in private tabs.

Functions

Name Summary
start fun start(): Unit
stop fun stop(): Unit

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.