public class NavEntryWrapper<T extends Object> extends NavEntry


Class that wraps a NavEntry within another NavEntry.

This provides a nesting mechanism for NavEntrys that allows properly nested content.

Summary

Public constructors

<T extends Object> NavEntryWrapper(@NonNull NavEntry<@NonNull T> navEntry)

Public methods

@Composable @NonNull Function1<@NonNull T, Unit>

content for this entry to be displayed when this entry is active

@NonNull T

key for this entry

@NonNull Map<@NonNull String, @NonNull Object>

provides information to the display

final @NonNull NavEntry<@NonNull T>

the NavEntry to wrap

Public constructors

public <T extends Object> NavEntryWrapper(@NonNull NavEntry<@NonNull T> navEntry)
Parameters
@NonNull NavEntry<@NonNull T> navEntry

the NavEntry to wrap

Public methods

getContent

public @Composable @NonNull Function1<@NonNull T, UnitgetContent()

content for this entry to be displayed when this entry is active

getKey

public @NonNullgetKey()

key for this entry

getMetadata

public @NonNull Map<@NonNull String, @NonNull ObjectgetMetadata()

provides information to the display

getNavEntry

Added in 1.0.0-alpha02
public final @NonNull NavEntry<@NonNull T> getNavEntry()

the NavEntry to wrap