createIntent
fun createIntent(context: Context, url: String, title: String, mimeType: String? = null, type: String? = null): Intent
Used to build an Intent to start the AttachmentMediaActivity with the required data.
Return
The Intent to start the AttachmentMediaActivity.
Parameters
context
The context to start the activity with.
url
The URL of the media file.
title
The title that will be shown in the header.
mimeType
The MIME type of the file.
type
The type of the attachment.