-
public class DocumentAttachmentHandlerShared handler for opening document attachments.
Documents are downloaded via StreamShareFileManager and opened with an external application. If the download takes longer than SNACKBAR_DELAY_MS, a Snackbar with progress is shown.
-
-
Field Summary
Fields Modifier and Type Field Description public final static DocumentAttachmentHandlerINSTANCE
-
Method Summary
Modifier and Type Method Description final UnitopenAttachment(Context context, Attachment attachment)Opens the given document attachment. -
-
Method Detail
-
openAttachment
final Unit openAttachment(Context context, Attachment attachment)
Opens the given document attachment.
- Parameters:
context- Must be a LifecycleOwner (e.g.attachment- The document attachment to open.
-
-
-
-