Package com.skydoves.bundler

Types

Bundler
Link copied to clipboard
inline class Bundler(intent: Intent)
Bundler is a wrapper class of the Intent for putting intent data elegantly.

Functions

activityBundler
Link copied to clipboard
fun Activity.activityBundler(): Bundler
bundle
Link copied to clipboard
inline fun <T : Any> Activity.bundle(key: String, defaultValue: T): Lazy<T>
inline fun <T : Any> Activity.bundle(key: String, crossinline defaultValue: () -> T? = { null }): Lazy<T?>
inline fun <T : Any> Fragment.bundle(key: String, defaultValue: T): Lazy<T>
inline fun <T : Any> Fragment.bundle(key: String, crossinline defaultValue: () -> T? = { null }): Lazy<T?>
bundleArray
Link copied to clipboard
inline fun <T : Any> Activity.bundleArray(key: String, crossinline defaultValue: () -> Array<T>? = { null }): Lazy<Array<T>?>
inline fun <T : Any> Fragment.bundleArray(key: String, crossinline defaultValue: () -> Array<T>? = { null }): Lazy<Array<T>?>
bundleArrayList
Link copied to clipboard
inline fun <T : Any> Activity.bundleArrayList(key: String, crossinline defaultValue: () -> ArrayList<T>? = { null }): Lazy<ArrayList<T>?>
inline fun <T : Any> Fragment.bundleArrayList(key: String, crossinline defaultValue: () -> ArrayList<T>? = { null }): Lazy<ArrayList<T>?>
bundleArrayListValue
Link copied to clipboard
inline fun <T : Any> Activity.bundleArrayListValue(key: String, crossinline defaultValue: () -> ArrayList<T>? = { null }): ArrayList<T>?
inline fun <T : Any> Fragment.bundleArrayListValue(key: String, crossinline defaultValue: () -> ArrayList<T>? = { null }): ArrayList<T>?
bundleArrayValue
Link copied to clipboard
inline fun <T : Any> Activity.bundleArrayValue(key: String, crossinline defaultValue: () -> Array<T>? = { null }): Array<T>?
inline fun <T : Any> Fragment.bundleArrayValue(key: String, crossinline defaultValue: () -> Array<T>? = { null }): Array<T>?
bundleNonNull
Link copied to clipboard
inline fun <T : Any> Activity.bundleNonNull(key: String): Lazy<T>
inline fun <T : Any> Fragment.bundleNonNull(key: String): Lazy<T>
bundleNonNullValue
Link copied to clipboard
inline fun <T : Any> Activity.bundleNonNullValue(key: String): T
inline fun <T : Any> Fragment.bundleNonNullValue(key: String): T
bundleOf
Link copied to clipboard
fun Intent.bundleOf(vararg pairs: Pair<String, Any?>): Intent
Creates a new bundle and put it into the intent with the given key/value pairs as elements.
bundler
Link copied to clipboard
inline fun bundler(crossinline block: Bundler.() -> Unit): Bundler
create a new instance of the Bundler using kotlin dsl.
bundleValue
Link copied to clipboard
inline fun <T : Any> Activity.bundleValue(key: String, defaultValue: T): T
inline fun <T : Any> Activity.bundleValue(key: String, crossinline defaultValue: () -> T? = { null }): T?
inline fun <T : Any> Fragment.bundleValue(key: String, defaultValue: T): T
inline fun <T : Any> Fragment.bundleValue(key: String, crossinline defaultValue: () -> T? = { null }): T?
fragmentBundler
Link copied to clipboard
fun Fragment.fragmentBundler(): Bundler
intent
Link copied to clipboard
inline fun intent(crossinline block: Bundler.() -> Unit): Intent
Creates an instance of the intent.
inline fun Intent.intent(crossinline block: Bundler.() -> Unit): Intent
Creates an instance of the intent from an intent.
inline fun String.intent(crossinline block: Bundler.() -> Unit): Intent
Creates an instance of the intent with an action.
inline fun <T : Any> Context.intent(clazz: KClass<T>, crossinline block: Bundler.() -> Unit): Intent
Creates an instance of the intent with packageContext and a target class.
inline fun String.intent(uri: Uri, crossinline block: Bundler.() -> Unit): Intent
Creates an instance of the intent with action and URI.
inline fun <T : Any> Context.intent(clazz: KClass<T>, action: String, uri: Uri, crossinline block: Bundler.() -> Unit): Intent
Creates an instance of the intent with packageContext, a target class, an action and URI.
intentOf
Link copied to clipboard
inline fun intentOf(crossinline block: Bundler.() -> Unit): Intent
inline fun <T : Any> Context.intentOf(crossinline block: Bundler.() -> Unit): Intent
Creates an instance of the intent with packageContext and a target class.
inline fun Intent.intentOf(crossinline block: Bundler.() -> Unit): Intent
Creates an instance of the intent from an intent.
inline fun String.intentOf(crossinline block: Bundler.() -> Unit): Intent
Creates an instance of the intent with an action.
inline fun String.intentOf(uri: Uri, crossinline block: Bundler.() -> Unit): Intent
Creates an instance of the intent with action and URI.
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.
observeBundle
Link copied to clipboard
inline fun <T : Any> Activity.observeBundle(key: String, defaultValue: T): Lazy<LiveData<T>>
inline fun <T> Activity.observeBundle(key: String, crossinline defaultValue: () -> T? = { null }): Lazy<LiveData<T>>
inline fun <T : Any> Fragment.observeBundle(key: String, defaultValue: T): Lazy<LiveData<T>>
inline fun <T> Fragment.observeBundle(key: String, crossinline defaultValue: () -> T? = { null }): Lazy<LiveData<T>>
observeBundleArray
Link copied to clipboard
inline fun <T : Any> Activity.observeBundleArray(key: String, crossinline defaultValue: () -> Array<T>? = { null }): Lazy<LiveData<Array<T>>>
inline fun <T : Any> Fragment.observeBundleArray(key: String, crossinline defaultValue: () -> Array<T>? = { null }): Lazy<LiveData<Array<T>>>
observeBundleArrayList
Link copied to clipboard
inline fun <T : Any> Activity.observeBundleArrayList(key: String, crossinline defaultValue: () -> ArrayList<T>? = { null }): Lazy<LiveData<ArrayList<T>>>
inline fun <T : Any> Fragment.observeBundleArrayList(key: String, crossinline defaultValue: () -> ArrayList<T>? = { null }): Lazy<LiveData<ArrayList<T>>>