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.

Parameters
<T extends Object>

the type of the backStack key

Summary

Public constructors

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

Public methods

final @NonNull NavEntry<@NonNull T>

the NavEntry to wrap

Inherited methods

From androidx.navigation3.runtime.NavEntry
void

Invokes the composable content of this NavEntry with the key that was provided when instantiating this NavEntry

final @NonNull Object

A unique, stable id that uniquely identifies the content of this NavEntry.

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

provides information to the display

Public constructors

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

the type of the backStack key

@NonNull NavEntry<@NonNull T> navEntry

the NavEntry to wrap

Public methods

getNavEntry

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

the NavEntry to wrap