DefaultShareHandler

Constructors

Link copied to clipboard
constructor(fileHandler: FileHandler)

Types

Link copied to clipboard
class ShareOrSaveFileDialogFragment : AbstractDialogFragment

Functions

Link copied to clipboard
open override fun saveFile(activity: FragmentActivity, saveInfo: ShareHandler.FileShareInfo)

saveFile will attempt to save the file and provide user feedback through a dialog if that attempt to save fails. Code associated with the actual saving of the file should go in .performSave.

Link copied to clipboard
open override fun shareFile(activity: FragmentActivity, shareInfo: ShareHandler.FileShareInfo)

Share a file to an external app for viewing.

Link copied to clipboard
open override fun shareMail(context: Context, subject: String?, text: String?, html: String?, attachmentPaths: List<String>?)

Share information with an external source by email.

Link copied to clipboard
open override fun shareOrSaveFile(activity: FragmentActivity, shareInfo: ShareHandler.FileShareInfo)

Prompt the user to save a file or share it to an external app for viewing.