add
Registers an ActivityScreen for the NavKey subclass K.
K is inferred from the screen's generic parameter — no explicit type argument needed:
add(DetailScreen()) // K = AppScreens.Detail, inferred automaticallyContent copied to clipboard
Parameters
screen
An instance of your ActivityScreen subclass.