CreateScreen

open fun CreateScreen(modifier: Modifier)

Creates the screen and listens to lifecycle events.

This function is responsible for setting up the screen's lifecycle listeners and then calling OnScreenCreated to render the actual UI of the screen.

It uses ListenToComposableLifecycle to observe lifecycle events (ON_RESUME, ON_PAUSE, ON_STOP, ON_DESTROY) and delegates them to the corresponding onXXX methods (onResume, onPause, onStop, onDestroy).

Parameters

modifier

The modifier to be applied to the screen's layout.