openAttachment

fun openAttachment(context: Context, attachment: Attachment)

Opens the given document attachment.

Parameters

context

Must be a LifecycleOwner (e.g. an Activity) for external-app downloads.

attachment

The document attachment to open.