android-components / mozilla.components.feature.prompts.share / DefaultShareDelegate

DefaultShareDelegate

class DefaultShareDelegate : ShareDelegate (source)

Default ShareDelegate implementation that displays the native share sheet.

Constructors

Name Summary
<init> DefaultShareDelegate()
Default ShareDelegate implementation that displays the native share sheet.

Functions

Name Summary
showShareSheet fun showShareSheet(context: <ERROR CLASS>, shareData: ShareData, onDismiss: () -> Unit, onSuccess: () -> Unit): Unit
Displays a share sheet for the given ShareData.

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.