public class NavEntry<T extends Object>

Known direct subclasses
NavEntryWrapper

Class that wraps a NavEntry within another NavEntry.


Entry maintains and stores the key and the content represented by that key. Entries should be created as part of a reference/androidx/navigation/NavDisplay.

Summary

Public constructors

<T extends Object> NavEntry(
    @NonNull T key,
    @NonNull Map<@NonNull String, @NonNull Object> metadata,
    @Composable @NonNull Function1<@NonNull T, Unit> content
)

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

Public constructors

public <T extends Object> NavEntry(
    @NonNull T key,
    @NonNull Map<@NonNull String, @NonNull Object> metadata,
    @Composable @NonNull Function1<@NonNull T, Unit> content
)
Parameters
@NonNull T key

key for this entry

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

provides information to the display

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

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

Public methods

getContent

Added in 1.0.0-alpha02
public @Composable @NonNull Function1<@NonNull T, UnitgetContent()

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

getKey

Added in 1.0.0-alpha02
public @NonNullgetKey()

key for this entry

getMetadata

Added in 1.0.0-alpha02
public @NonNull Map<@NonNull String, @NonNull ObjectgetMetadata()

provides information to the display