android-components / mozilla.components.concept.engine.prompt / PromptRequest / Popup

Popup

data class Popup : PromptRequest (source)

Value type that represents a request for showing a pop-pup prompt. This occurs when content attempts to open a new window, in a way that doesn’t appear to be the result of user input.

Constructors

Name Summary
<init> Popup(targetUri: String, onAllow: () -> Unit, onDeny: () -> Unit)
Value type that represents a request for showing a pop-pup prompt. This occurs when content attempts to open a new window, in a way that doesn’t appear to be the result of user input.

Properties

Name Summary
onAllow val onAllow: () -> Unit
callback to notify that the user wants to open the targetUri.
onDeny val onDeny: () -> Unit
callback to notify that the user doesn’t want to open the targetUri.
targetUri val targetUri: String
the uri that the page is trying to open.