TypedSavedStateHandle

class TypedSavedStateHandle(delegate: SavedStateHandle) : BundleValueGetter, BundleValueSetter

Constructors

Link copied to clipboard
fun TypedSavedStateHandle(delegate: SavedStateHandle)

Functions

Link copied to clipboard
open override fun contains(name: String): Boolean
Link copied to clipboard
open override fun getBinder(name: String): IBinder?
Link copied to clipboard
open override fun getBoolean(name: String, default: Boolean): Boolean
Link copied to clipboard
open override fun getBooleanArray(name: String): BooleanArray?
Link copied to clipboard
open override fun getBundle(name: String): Bundle?
Link copied to clipboard
open override fun getByte(name: String, default: Byte): Byte
Link copied to clipboard
open override fun getByteArray(name: String): ByteArray?
Link copied to clipboard
open override fun getChar(name: String, default: Char): Char
Link copied to clipboard
open override fun getCharArray(name: String): CharArray?
Link copied to clipboard
open override fun getCharSequence(name: String): CharSequence?
Link copied to clipboard
open override fun getCharSequenceArray(name: String): Array<CharSequence>?
Link copied to clipboard
open override fun getCharSequenceArrayList(name: String): ArrayList<CharSequence>?
Link copied to clipboard
open override fun getDouble(name: String, default: Double): Double
Link copied to clipboard
open override fun getDoubleArray(name: String): DoubleArray?
Link copied to clipboard
open override fun getFloat(name: String, default: Float): Float
Link copied to clipboard
open override fun getFloatArray(name: String): FloatArray?
Link copied to clipboard
open override fun getInt(name: String, default: Int): Int
Link copied to clipboard
open override fun getIntArray(name: String): IntArray?
Link copied to clipboard
open override fun getIntArrayList(name: String): ArrayList<Int>?
Link copied to clipboard
fun <T> getLiveData(key: String, initialValue: T): MutableLiveData<T>
Link copied to clipboard
open override fun getLong(name: String, default: Long): Long
Link copied to clipboard
open override fun getLongArray(name: String): LongArray?
Link copied to clipboard
open override fun <T : Parcelable> getParcelable(name: String, kclass: KClass<T>): T?
Link copied to clipboard
open override fun <T : Parcelable> getParcelableArray(    name: String,     kclass: KClass<T>,     convertListToArray: List<T>.() -> Array<T>): Array<T>?
Link copied to clipboard
open override fun <T : Parcelable> getParcelableArrayList(name: String, kclass: KClass<T>): ArrayList<T>?
Link copied to clipboard
open override fun <T : Serializable> getSerializable(name: String, kclass: KClass<T>): T?
Link copied to clipboard
open override fun getShort(name: String, default: Short): Short
Link copied to clipboard
open override fun getShortArray(name: String): ShortArray?
Link copied to clipboard
open override fun getSize(name: String): Size?
Link copied to clipboard
open override fun getSizeF(name: String): SizeF?
Link copied to clipboard
open override fun <T : Parcelable> getSparseParcelableArray(name: String, kclass: KClass<T>): SparseArray<T>?
Link copied to clipboard
fun <T> getStateFlow(key: String, initialValue: T): StateFlow<T>
Link copied to clipboard
open override fun getString(name: String, default: String?): String?
Link copied to clipboard
open override fun getStringArray(name: String): Array<String>?
Link copied to clipboard
open override fun getStringArrayList(name: String): ArrayList<String>?
Link copied to clipboard
open override fun remove(name: String)
Link copied to clipboard
open override fun setBinder(name: String, value: IBinder?)
Link copied to clipboard
open override fun setBoolean(name: String, value: Boolean)
Link copied to clipboard
open override fun setBooleanArray(name: String, value: BooleanArray?)
Link copied to clipboard
open override fun setBundle(name: String, value: Bundle?)
Link copied to clipboard
open override fun setByte(name: String, value: Byte)
Link copied to clipboard
open override fun setByteArray(name: String, value: ByteArray?)
Link copied to clipboard
open override fun setChar(name: String, value: Char)
Link copied to clipboard
open override fun setCharArray(name: String, value: CharArray?)
Link copied to clipboard
open override fun setCharSequence(name: String, value: CharSequence?)
Link copied to clipboard
open override fun setCharSequenceArray(name: String, value: Array<CharSequence>?)
Link copied to clipboard
open override fun setCharSequenceArrayList(name: String, value: ArrayList<CharSequence>?)
Link copied to clipboard
open override fun setDouble(name: String, value: Double)
Link copied to clipboard
open override fun setDoubleArray(name: String, value: DoubleArray?)
Link copied to clipboard
open override fun setFloat(name: String, value: Float)
Link copied to clipboard
open override fun setFloatArray(name: String, value: FloatArray?)
Link copied to clipboard
open override fun setInt(name: String, value: Int)
Link copied to clipboard
open override fun setIntArray(name: String, value: IntArray?)
Link copied to clipboard
open override fun setIntArrayList(name: String, value: ArrayList<Int>?)
Link copied to clipboard
open override fun setLong(name: String, value: Long)
Link copied to clipboard
open override fun setLongArray(name: String, value: LongArray?)
Link copied to clipboard
open override fun <T : Parcelable> setParcelable(name: String, value: T?)
Link copied to clipboard
open override fun <T : Parcelable> setParcelableArray(name: String, value: Array<T>?)
Link copied to clipboard
open override fun <T : Parcelable> setParcelableArrayList(name: String, value: ArrayList<T>?)
Link copied to clipboard
open override fun <T : Serializable> setSerializable(name: String, value: T?)
Link copied to clipboard
open override fun setShort(name: String, value: Short)
Link copied to clipboard
open override fun setShortArray(name: String, value: ShortArray?)
Link copied to clipboard
open override fun setSize(name: String, value: Size?)
Link copied to clipboard
open override fun setSizeF(name: String, value: SizeF?)
Link copied to clipboard
open override fun <T : Parcelable> setSparseParcelableArray(name: String, value: SparseArray<T>?)
Link copied to clipboard
open override fun setString(name: String, value: String?)
Link copied to clipboard
open override fun setStringArray(name: String, value: Array<String>?)
Link copied to clipboard
open override fun setStringArrayList(name: String, value: ArrayList<String>?)

Extensions

Link copied to clipboard
fun <T, BACKED_BY> TypedSavedStateHandle.flow(key: Key<T, BACKED_BY, *, *>): Flow<T>
fun <T, BACKED_BY> TypedSavedStateHandle.flow(key: AsyncKey<T, BACKED_BY, *, *>): Flow<T>
Link copied to clipboard
fun <T, BACKED_BY> TypedSavedStateHandle.getLiveData(key: Key<T, BACKED_BY, *, *>): MutableLiveData<T>
fun <T, BACKED_BY> TypedSavedStateHandle.getLiveData(key: AsyncKey<T, BACKED_BY, *, *>, scope: CoroutineScope): MutableLiveData<T>
Link copied to clipboard
fun <T, BACKED_BY> TypedSavedStateHandle.getStateFlow(    key: Key<T, BACKED_BY, *, *>,     scope: CoroutineScope,     started: SharingStarted): StateFlow<T>
fun <T, BACKED_BY> TypedSavedStateHandle.getStateFlow(    key: AsyncKey<T, BACKED_BY, *, *>,     scope: CoroutineScope,     started: SharingStarted): StateFlow<T?>
Link copied to clipboard
fun <T> TypedSavedStateHandle.mutableStateFlow(    key: BundleKey<T, *>,     scope: CoroutineScope,     debounceWrites: Duration = Duration.ZERO): MutableStateFlow<T>
fun <T> TypedSavedStateHandle.mutableStateFlow(    key: AsyncBundleKey<T, *>,     scope: CoroutineScope,     debounceWrites: Duration = Duration.ZERO): MutableStateFlow<T?>
Link copied to clipboard
fun <T> TypedSavedStateHandle.property(key: BundleKey<T, *>): DelegateProperty<T>
fun <T> TypedSavedStateHandle.property(key: AsyncBundleKey<T, *>, scope: CoroutineScope): DelegateProperty<T?>
Link copied to clipboard
inline fun <T> TypedSavedStateHandle.update(key: BundleKey<T, *>, reducer: (T) -> T)
inline suspend fun <T> TypedSavedStateHandle.update(key: AsyncBundleKey<T, *>, reducer: (T) -> T)