NavBackStackEntryKt
public final class NavBackStackEntryKt
Summary
Public methods |
|
|---|---|
static final @NonNull T |
<T extends Object> toRoute(@NonNull NavBackStackEntry receiver)Returns route as an object of type |
static final @NonNull T |
Returns route as an object of type |
Public methods
toRoute
public static final @NonNull T <T extends Object> toRoute(@NonNull NavBackStackEntry receiver)
Returns route as an object of type T
Extrapolates arguments from NavBackStackEntry.arguments and recreates object T
| Parameters | |
|---|---|
<T extends Object> |
the entry's |
| Returns | |
|---|---|
@NonNull T |
A new instance of this entry's |
toRoute
public static final @NonNull T <T extends Object> toRoute(
@NonNull NavBackStackEntry receiver,
@NonNull KClass<@NonNull ?> route
)
Returns route as an object of type T
Extrapolates arguments from NavBackStackEntry.arguments and recreates object T
| Parameters | |
|---|---|
@NonNull KClass<@NonNull ?> route |
the entry's |
| Returns | |
|---|---|
@NonNull T |
A new instance of this entry's |