Package-level declarations

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Delegates a property to the arguments Bundle, keyed by the property name

Link copied to clipboard
inline fun <F, T> bundleDelegate(crossinline bundleProvider: (F) -> Bundle): ReadWriteProperty<F, T>
Link copied to clipboard
fun bundleOfPrimitives(vararg params: Pair<String, Any?>): Bundle

Saves all bundle args based on their respective types.

Link copied to clipboard
operator fun Bundle.contains(key: String): Boolean
Link copied to clipboard
inline fun <T : Any> Fragment.extra(key: String, default: T? = null): Lazy<T?>
Link copied to clipboard
fun Bundle.extractBundle(keyValSeparator: String = ": ", newSetSeparator: String = ""): String

Extract bundle and returs string

Link copied to clipboard
inline fun <T : Any> Fragment.extraNotNull(key: String, default: T? = null): Lazy<T>
Link copied to clipboard
inline fun newBundle(block: Bundle.() -> Unit): Bundle

Calls specified block, passing in a Bundle instance, which is returned when the block completes.

Link copied to clipboard
inline fun <T> Bundle.obtain(key: String, noinline converter: (Any?) -> T? = { it as? T }): T?
Link copied to clipboard
Link copied to clipboard
fun Bundle.put(key: String?, value: Bundle?)

Shorthand for Bundle.putBundle.

fun Bundle.put(key: String?, value: Parcelable?)

Shorthand for Bundle.putParcelable.

fun Bundle.put(key: String?, value: SparseArray<out Parcelable?>?)
fun Bundle.put(key: String?, value: ArrayList<out Parcelable?>?)
fun Bundle.put(key: String?, value: Array<Parcelable?>?)
fun Bundle.put(key: String?, value: Array<CharSequence?>?)
fun Bundle.put(key: String?, value: Boolean)

Shorthand for Bundle.putBoolean.

fun Bundle.put(key: String?, value: Byte)

Shorthand for Bundle.putByte.

fun Bundle.put(key: String?, value: ByteArray?)

Shorthand for Bundle.putByteArray.

fun Bundle.put(key: String?, value: Char)

Shorthand for Bundle.putChar.

fun Bundle.put(key: String?, value: CharArray?)

Shorthand for Bundle.putCharArray.

fun Bundle.put(key: String?, value: Double)

Shorthand for Bundle.putDouble.

fun Bundle.put(key: String?, value: Float)

Shorthand for Bundle.putFloat.

fun Bundle.put(key: String?, value: FloatArray?)

Shorthand for Bundle.putFloatArray.

fun Bundle.put(key: String?, value: Int)

Shorthand for Bundle.putInt.

fun Bundle.put(key: String?, value: IntArray?)

Shorthand for Bundle.putIntArray.

fun Bundle.put(key: String?, value: Long)

Shorthand for Bundle.putLong.

fun Bundle.put(key: String?, value: LongArray?)

Shorthand for Bundle.putLongArray.

fun Bundle.put(key: String?, value: Short)

Shorthand for Bundle.putShort.

fun Bundle.put(key: String?, value: ShortArray?)

Shorthand for Bundle.putShortArray.

fun Bundle.put(key: String?, value: String?)

Shorthand for Bundle.putString.

Link copied to clipboard

Creates bundle to map

Link copied to clipboard
infix fun Bundle.with(bundle: Bundle?): Bundle

Similar to Bundle.putAll, but checks for a null insert and returns the parent bundle

Link copied to clipboard
fun Bundle.withCustomAnimation(context: Context, @AnimRes enterResId: Int, @AnimRes exitResId: Int)
Link copied to clipboard

Adds transition bundle if context is activity and build is lollipop+