getIntent

fun getIntent(context: Context, url: String, title: String? = null): Intent

Used to build an Intent to start the MediaPreviewActivity with the required data.

Parameters

context

The context to start the activity with.

url

The URL of the media file.

title

The name of the media file.