Package-level declarations
Functions
Link copied to clipboard
fun ChatNodeListScreen(onNodeSelected: (String) -> Unit, viewModel: NetworkScreenViewModel = viewModel(
factory = ViewModelFactory(
di = localDI(),
owner = LocalSavedStateRegistryOwner.current,
vmFactory = { di, savedStateHandle ->
NetworkScreenViewModel(di, savedStateHandle)
},
defaultArgs = null
)
))
Composable that displays a list of network nodes as clickable items.
Link copied to clipboard
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.
Link copied to clipboard
Displays an individual conversation item with avatar, status, last message, and unread count.
Link copied to clipboard
fun ConversationsHomeScreen(onConversationSelected: (String) -> Unit, viewModel: ConversationsHomeScreenViewModel = viewModel(
factory = ViewModelFactory(
di = localDI(),
owner = LocalSavedStateRegistryOwner.current,
vmFactory = { di, _ ->
ConversationsHomeScreenViewModel(di)
},
defaultArgs = null
)
))
Main Composable for the Conversations Home screen.
Link copied to clipboard
fun ConversationsList(conversations: List<Conversation>, onConversationClick: (Conversation) -> Unit)
Displays a scrollable list of conversations.
Link copied to clipboard
Composable function displaying all messages in the chat.
Link copied to clipboard
Displays a placeholder view when there are no conversations.
Link copied to clipboard
Displays an error view with retry button when conversation loading fails.
Link copied to clipboard
fun MessageBubble(chatMessage: Message, sentBySelf: Boolean, messageContent: @Composable () -> Unit, sender: String, modifier: Modifier)
Composable function displaying an individual message bubble.
Link copied to clipboard
Composable function showing the user's status bar at the top of the chat.