EntryProviderKt

Added in 1.0.0-alpha10

public final class EntryProviderKt


Summary

Public methods

static final @NonNull Function1<@NonNull T, @NonNull NavEntry<@NonNull T>>
<T extends Object> entryProvider(
    @NonNull Function1<@NonNull unknownScreen, @NonNull NavEntry<@NonNull T>> fallback,
    @NonNull Function1<@NonNull EntryProviderBuilder<@NonNull T>, Unit> builder
)

Creates an EntryProviderBuilder with the entry providers provided in the builder.

Public methods

public static final @NonNull Function1<@NonNull T, @NonNull NavEntry<@NonNull T>> <T extends Object> entryProvider(
    @NonNull Function1<@NonNull unknownScreen, @NonNull NavEntry<@NonNull T>> fallback,
    @NonNull Function1<@NonNull EntryProviderBuilder<@NonNull T>, Unit> builder
)

Creates an EntryProviderBuilder with the entry providers provided in the builder.

Parameters
<T extends Object>

the type of the NavEntry key

@NonNull Function1<@NonNull unknownScreen, @NonNull NavEntry<@NonNull T>> fallback

the fallback NavEntry when the provider cannot find an entry associated with a given key on the backStack

@NonNull Function1<@NonNull EntryProviderBuilder<@NonNull T>, Unit> builder

the EntryProviderBuilder DSL extension that builds NavEntries for the provider