Package-level declarations

Types

Link copied to clipboard

A Handler that will allow a NavHostController to handle com.splendo.kaluga.architecture.compose.navigation.Route.Result of a given type Result to be received by a given ViewModel

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Handles a Route.Result.Data matching a Boolean or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.BooleanType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
fun NavHostController.HandleBooleanResult(retain: Boolean = false, onResult: Boolean.() -> Unit)

Handles a Route.Result.Data matching a Boolean Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.BooleanType

Link copied to clipboard

Handles a Route.Result.Data matching a ByteArray or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.ByteArrayType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
Link copied to clipboard
fun NavHostController.HandleByteOrNullResult(retain: Boolean = false, onResult: Byte?.() -> Unit)

Handles a Route.Result.Data matching a Byte or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.ByteType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
fun NavHostController.HandleByteResult(retain: Boolean = false, onResult: Byte.() -> Unit)

Handles a Route.Result.Data matching a Byte Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.ByteType

Link copied to clipboard

Handles a Route.Result.Data matching a CharArray or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.CharArrayType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
Link copied to clipboard
fun NavHostController.HandleCharOrNullResult(retain: Boolean = false, onResult: Char?.() -> Unit)

Handles a Route.Result.Data matching a Char or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.CharType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
fun NavHostController.HandleCharResult(retain: Boolean = false, onResult: Char.() -> Unit)

Handles a Route.Result.Data matching a Char Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.CharType

Link copied to clipboard
Link copied to clipboard

Handles a Route.Result.Data matching a list of KalugaDate or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.DateArrayType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
Link copied to clipboard

Handles a Route.Result.Data matching a KalugaDate or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.DateType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Handles a Route.Result.Data matching a Double or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.DoubleType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
fun NavHostController.HandleDoubleResult(retain: Boolean = false, onResult: Double.() -> Unit)

Handles a Route.Result.Data matching a Double Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.DoubleType

Link copied to clipboard

Handles a Route.Result.Data matching a FloatArray or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.FloatArrayType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
Link copied to clipboard
fun NavHostController.HandleFloatOrNullResult(retain: Boolean = false, onResult: Float?.() -> Unit)

Handles a Route.Result.Data matching a Float or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.FloatType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
fun NavHostController.HandleFloatResult(retain: Boolean = false, onResult: Float.() -> Unit)

Handles a Route.Result.Data matching a Float Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.FloatType

Link copied to clipboard

Handles a Route.Result.Data matching an IntArray or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.IntegerArrayType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
Link copied to clipboard
fun NavHostController.HandleIntOrNullResult(retain: Boolean = false, onResult: Int?.() -> Unit)

Handles a Route.Result.Data matching an Int or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.IntegerType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
fun NavHostController.HandleIntResult(retain: Boolean = false, onResult: Int.() -> Unit)

Handles a Route.Result.Data matching an Int Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.IntegerType

Link copied to clipboard

Handles a Route.Result.Data matching a LongArray or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.LongArrayType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
Link copied to clipboard
fun NavHostController.HandleLongOrNullResult(retain: Boolean = false, onResult: Long?.() -> Unit)

Handles a Route.Result.Data matching a Long or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.LongType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
fun NavHostController.HandleLongResult(retain: Boolean = false, onResult: Long.() -> Unit)

Handles a Route.Result.Data matching a Long Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.LongType

Link copied to clipboard
Link copied to clipboard
fun <T> NavHostController.HandleResultOfType(serializer: KSerializer<T>, retain: Boolean = false, onResult: T.() -> Unit)

Handles a Route.Result.Data matching a given type T. Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.SerializedType with serializer

Link copied to clipboard
@JvmName(name = "HandleResultOfNullableTypeOrNull")
fun <T> NavHostController.HandleResultOfTypeOrNull(serializer: KSerializer<T>, retain: Boolean = false, onResult: T?.() -> Unit)
fun <T : Any> NavHostController.HandleResultOfTypeOrNull(serializer: KSerializer<T>, retain: Boolean = false, onResult: T?.() -> Unit)

Handles a Route.Result.Data matching a given type T. Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.SerializedType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
@JvmName(name = "HandleNullableResultOrNull")
fun <T> NavHostController.HandleResultOrNull(type: NavigationBundleSpecType<T>, retain: Boolean = false, onResult: T?.() -> Unit)

Handles a Route.Result.Data matching a given NavigationBundleSpecType Requires that Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching the NavigationBundleSpecType

fun <T : Any> NavHostController.HandleResultOrNull(type: NavigationBundleSpecType<T>, retain: Boolean = false, onResult: T?.() -> Unit)

Handles a Route.Result.Data matching a given NavigationBundleSpecType Requires that Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching the NavigationBundleSpecType either directly or wrapped in NavigationBundleSpecType.OptionalType

Link copied to clipboard

Handles a Route.Result.Data matching a ShortArray or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.ShortArrayType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
Link copied to clipboard
fun NavHostController.HandleShortOrNullResult(retain: Boolean = false, onResult: Short?.() -> Unit)

Handles a Route.Result.Data matching a Short or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.ShortType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
fun NavHostController.HandleShortResult(retain: Boolean = false, onResult: Short.() -> Unit)

Handles a Route.Result.Data matching a Short Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.ShortType

Link copied to clipboard

Handles a Route.Result.Data matching a list of String or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.StringArrayType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard

Handles a Route.Result.Data matching a list of String Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.StringArrayType

Link copied to clipboard

Handles a Route.Result.Data matching a String or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.StringType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
fun NavHostController.HandleStringResult(retain: Boolean = false, onResult: String.() -> Unit)

Handles a Route.Result.Data matching a String Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.StringType

Link copied to clipboard
fun NavHostController.HandleUnitOrNullResult(retain: Boolean = false, onResult: () -> Unit)

Handles a Route.Result.Data matching a Unit or null Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.UnitType either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard
fun NavHostController.HandleUnitResult(retain: Boolean = false, onResult: () -> Unit)

Handles a Route.Result.Data matching a Unit Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.UnitType

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@JvmName(name = "NavHostNullableResultOrNullHandler")
inline fun <ViewModel : BaseLifecycleViewModel, T> NavigationBundleSpecType<T>.NavHostResultOrNullHandler(retain: Boolean = false, noinline onResult: ViewModel.(T?) -> Unit): NavHostResultHandler<ViewModel, T?>
@JvmName(name = "NavHostNullableResultOrNullHandler")
inline fun <ViewModel : BaseLifecycleViewModel, T> KSerializer<T>.NavHostResultOrNullHandler(retain: Boolean = false, noinline onResult: ViewModel.(T?) -> Unit): NavHostResultHandler<ViewModel, T?>
inline fun <ViewModel : BaseLifecycleViewModel, T : Any> KSerializer<T>.NavHostResultOrNullHandler(retain: Boolean = false, noinline onResult: ViewModel.(T?) -> Unit): NavHostResultHandler<ViewModel, T?>

Creates a NavHostResultHandler of T for this KSerializer Requires that the Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching NavigationBundleSpecType.SerializedType with this Serializer either directly or wrapped by NavigationBundleSpecType.OptionalType

Link copied to clipboard