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

Share

data class Share : PromptRequest, Dismissible (source)

Value type that represents a request to share data. https://w3c.github.io/web-share/

Constructors

Name Summary
<init> Share(data: ShareData, onSuccess: () -> Unit, onFailure: () -> Unit, onDismiss: () -> Unit)
Value type that represents a request to share data. https://w3c.github.io/web-share/

Properties

Name Summary
data val data: ShareData
Share data containing title, text, and url of the request.
onDismiss val onDismiss: () -> Unit
Callback to notify that the user aborted the share.
onFailure val onFailure: () -> Unit
Callback to notify that the user attempted to share with another app, but it failed.
onSuccess val onSuccess: () -> Unit
Callback to notify that the user hared with another app successfully.