ChatScreen

fun ChatScreen(virtualAddress: InetAddress, userName: String? = null, isOffline: Boolean = false, onClickButton: () -> Unit, viewModel: ChatScreenViewModel = viewModel( factory = ViewModelFactory( di = localDI(), owner = LocalSavedStateRegistryOwner.current, vmFactory = { di, savedStateHandle -> ChatScreenViewModel(di, savedStateHandle) }, defaultArgs = Bundle().apply { putSerializable("virtualAddress", virtualAddress) } ) ))

Composable function representing the main chat screen.

Parameters

virtualAddress

The IP address of the chat participant.

userName

Optional username for the chat participant.

isOffline

Boolean flag indicating if the user is offline.

onClickButton

Callback for button click events.

viewModel

The ChatScreenViewModel providing UI state and actions.