Package com.episode6.typed2.savedstatehandle

Types

Link copied to clipboard
class TypedSavedStateHandle(delegate: SavedStateHandle) : BundleValueGetter, BundleValueSetter

Functions

Link copied to clipboard
fun SavedStateHandle.clearSavedStateProvider(key: BundleKey<*, Bundle?>)
Link copied to clipboard
fun <T, BACKED_BY> SavedStateHandle.flow(key: AsyncKey<T, BACKED_BY, *, *>): Flow<T>
fun <T, BACKED_BY> SavedStateHandle.flow(key: Key<T, BACKED_BY, *, *>): Flow<T>
fun <T, BACKED_BY> TypedSavedStateHandle.flow(key: AsyncKey<T, BACKED_BY, *, *>): Flow<T>
fun <T, BACKED_BY> TypedSavedStateHandle.flow(key: Key<T, BACKED_BY, *, *>): Flow<T>
Link copied to clipboard
suspend fun <T> SavedStateHandle.get(key: AsyncBundleKey<T, *>): T
fun <T> SavedStateHandle.get(key: BundleKey<T, *>): T
Link copied to clipboard
fun <T, BACKED_BY> SavedStateHandle.getLiveData(key: Key<T, BACKED_BY, *, *>): MutableLiveData<T>
fun <T, BACKED_BY> TypedSavedStateHandle.getLiveData(key: Key<T, BACKED_BY, *, *>): MutableLiveData<T>
fun <T, BACKED_BY> SavedStateHandle.getLiveData(key: AsyncKey<T, BACKED_BY, *, *>, scope: CoroutineScope): 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> SavedStateHandle.getStateFlow(    key: AsyncKey<T, BACKED_BY, *, *>,     scope: CoroutineScope,     started: SharingStarted): StateFlow<T?>
fun <T, BACKED_BY> SavedStateHandle.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?>
fun <T, BACKED_BY> TypedSavedStateHandle.getStateFlow(    key: Key<T, BACKED_BY, *, *>,     scope: CoroutineScope,     started: SharingStarted): StateFlow<T>
Link copied to clipboard
fun <T> SavedStateHandle.mutableStateFlow(    key: AsyncBundleKey<T, *>,     scope: CoroutineScope,     debounceWrites: Duration = Duration.ZERO): MutableStateFlow<T?>
fun <T> SavedStateHandle.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?>
fun <T> TypedSavedStateHandle.mutableStateFlow(    key: BundleKey<T, *>,     scope: CoroutineScope,     debounceWrites: Duration = Duration.ZERO): MutableStateFlow<T>
Link copied to clipboard
fun <T> SavedStateHandle.property(key: BundleKey<T, *>): DelegateProperty<T>
fun <T> TypedSavedStateHandle.property(key: BundleKey<T, *>): DelegateProperty<T>
fun <T> SavedStateHandle.property(key: AsyncBundleKey<T, *>, scope: CoroutineScope): DelegateProperty<T?>
fun <T> TypedSavedStateHandle.property(key: AsyncBundleKey<T, *>, scope: CoroutineScope): DelegateProperty<T?>
Link copied to clipboard
fun SavedStateHandle.remove(key: AsyncBundleKey<*, *>)
fun SavedStateHandle.remove(key: BundleKey<*, *>)
Link copied to clipboard
suspend fun <T> SavedStateHandle.set(key: AsyncBundleKey<T, *>, value: T)
fun <T> SavedStateHandle.set(key: BundleKey<T, *>, value: T)
Link copied to clipboard
fun <T> SavedStateHandle.setSavedStateProvider(key: BundleKey<T, Bundle?>, provider: () -> T)
Link copied to clipboard
fun SavedStateHandle.typed(): TypedSavedStateHandle
Link copied to clipboard
inline suspend fun <T> SavedStateHandle.update(key: AsyncBundleKey<T, *>, reducer: (T) -> T)
inline fun <T> SavedStateHandle.update(key: BundleKey<T, *>, reducer: (T) -> T)
inline suspend fun <T> TypedSavedStateHandle.update(key: AsyncBundleKey<T, *>, reducer: (T) -> T)
inline fun <T> TypedSavedStateHandle.update(key: BundleKey<T, *>, reducer: (T) -> T)