createIntent

fun createIntent(context: Context, type: String?, url: String): Intent

Creates an Intent to start the AttachmentActivity.

Return

An Intent to start the AttachmentActivity.

Parameters

context

The context to use for creating the Intent.

type

The type of the attachment (e.g., "giphy", etc.).

url

The URL of the attachment to display.