defaultAttachmentHandlers

fun defaultAttachmentHandlers(context: Context, useDocumentGView: Boolean = true): List<AttachmentPreviewHandler>

Builds the default list of file preview providers.

Return

The list handlers that can be used to show a preview for an attachment.

Parameters

context

The context to start the preview Activity with.

useDocumentGView

Whether to use Google Docs Viewer for document attachments. When true (default), documents are rendered via Google Docs Viewer. When false, text-based files are rendered in-app and other file types are downloaded and opened with an external application.