intentOf

inline fun intentOf(crossinline block: Bundler.() -> Unit): Intent

Author

skydoves (Jaewoong Eum)

Creates an instance of the intent.

Parameters

block

A lambda domain scope of the Bundler.

inline fun Intent.intentOf(crossinline block: Bundler.() -> Unit): Intent

Creates an instance of the intent from an intent.

Parameters

block

A lambda domain scope of the Bundler.

inline fun String.intentOf(crossinline block: Bundler.() -> Unit): Intent

Creates an instance of the intent with an action.

Parameters

block

A lambda domain scope of the Bundler.

inline fun String.intentOf(uri: Uri, crossinline block: Bundler.() -> Unit): Intent

Creates an instance of the intent with action and URI.

Parameters

uri

The Intent data URI.

block

A lambda domain scope of the Bundler.

inline fun <T : Any> Context.intentOf(crossinline block: Bundler.() -> Unit): Intent

Creates an instance of the intent with packageContext and a target class.

Parameters

block

A lambda domain scope of the Bundler.

inline fun <T : Any> Context.intentOf(action: String, uri: Uri, crossinline block: Bundler.() -> Unit): Intent

Creates an instance of the intent with packageContext, a target class, an action and URI.

Parameters

action

The Intent action, such as ACTION_VIEW.

uri

The Intent data URI.

block

A lambda domain scope of the Bundler.