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

ShareDelegate

interface ShareDelegate (source)

Delegate to display a share prompt.

Functions

Name Summary
showShareSheet abstract 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.

Inheritors

Name Summary
DefaultShareDelegate class DefaultShareDelegate : ShareDelegate
Default ShareDelegate implementation that displays the native share sheet.