NavigatorProviderKt
public final class NavigatorProviderKt
Summary
Public methods |
|
|---|---|
static final @NonNull T |
<T extends Navigator<@NonNull NavDestination>> get(Retrieves a registered |
static final @NonNull T |
<T extends Navigator<@NonNull NavDestination>> get(Retrieves a registered |
static final void |
plusAssign(Register a navigator using the name provided by the |
static final Navigator<@NonNull NavDestination> |
set(Register a |
Public methods
get
public static final @NonNull T <T extends Navigator<@NonNull NavDestination>> get(
@NonNull NavigatorProvider receiver,
@NonNull KClass<@NonNull T> clazz
)
Retrieves a registered Navigator using the name provided by the Navigator.Name annotation.
| Throws | |
|---|---|
kotlin.IllegalStateException |
if the Navigator has not been added |
get
public static final @NonNull T <T extends Navigator<@NonNull NavDestination>> get(
@NonNull NavigatorProvider receiver,
@NonNull String name
)
Retrieves a registered Navigator by name.
| Throws | |
|---|---|
kotlin.IllegalStateException |
if the Navigator has not been added |
plusAssign
public static final void plusAssign(
@NonNull NavigatorProvider receiver,
@NonNull Navigator<@NonNull NavDestination> navigator
)
Register a navigator using the name provided by the Navigator.Name annotation.
set
public static final Navigator<@NonNull NavDestination> set(
@NonNull NavigatorProvider receiver,
@NonNull String name,
@NonNull Navigator<@NonNull NavDestination> navigator
)
Register a Navigator by name. If a navigator by this name is already registered, this new navigator will replace it.
| Returns | |
|---|---|
Navigator<@NonNull NavDestination> |
the previously added |