NavHostResultOrNullHandler
Creates a NavHostResultHandler of T for this NavigationBundleSpecType Requires that Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching the NavigationBundleSpecType either directly or wrapped in NavigationBundleSpecType.OptionalType
Return
Parameters
the type of BaseLifecycleViewModel associated with the NavHostResultHandler
the type of result to expect
If true
the result will be retained in the NavBackStackEntry. It will be deleted otherwise.
Method for handling the received result
Creates a NavHostResultHandler of T for this NavigationBundleSpecType Requires that Route.Result.Data.bundle is described by a SingleValueNavigationSpec matching the NavigationBundleSpecType
Return
Parameters
the type of BaseLifecycleViewModel associated with the NavHostResultHandler
the type of result to expect
If true
the result will be retained in the NavBackStackEntry. It will be deleted otherwise.
Method for handling the received result
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
Return
Parameters
the type of BaseLifecycleViewModel associated with the NavHostResultHandler
the type of serialized property stored in the result
If true
the result will be retained in the NavBackStackEntry. It will be deleted otherwise.
Method for handling the received T or null