Package-level declarations

Types

Link copied to clipboard
data class FormattingResult(val text: String, val selection: TextRange)

New raw text plus the selection to apply to the field after a formatting action.

Link copied to clipboard
class MessageViewModel(savedStateHandle: SavedStateHandle, nodeRepository: NodeRepository, radioConfigRepository: RadioConfigRepository, quickChatActionRepository: QuickChatActionRepository, connectionStateProvider: ConnectionStateProvider, messagingController: MessagingController, packetRepository: PacketRepository, uiPrefs: UiPrefs, customEmojiPrefs: CustomEmojiPrefs, homoglyphEncodingPrefs: HomoglyphPrefs, notificationManager: NotificationManager, sendMessageUseCase: SendMessageUseCase, messageTranslationService: MessageTranslationService, snackbarManager: SnackbarManager) : ViewModel
Link copied to clipboard
class QuickChatViewModel(quickChatActionRepository: QuickChatActionRepository) : ViewModel
Link copied to clipboard
sealed interface TranslationDialogState

State of the translation-model download dialog on the message screen.

Functions

Link copied to clipboard

True when text contains any recognised paired inline-markdown syntax.

Link copied to clipboard
fun DeliveryInfo(title: StringResource, resendOption: Boolean, text: StringResource? = null, detail: StringResource? = null, relays: Int = 0, onConfirm: () -> Unit = {}, onDismiss: () -> Unit = {})
Link copied to clipboard

Inserts an empty style delimiter pair at index, returning a collapsed cursor between the delimiters.

Link copied to clipboard

True when text is exactly a [label](url) markdown link.

Link copied to clipboard
Link copied to clipboard
fun MessageScreen(contactKey: String, message: String, viewModel: MessageViewModel, navigateToNodeDetails: (Int) -> Unit, navigateToQuickChatOptions: () -> Unit, navigateToFilterSettings: () -> Unit, onNavigateBack: () -> Unit)

The main screen for displaying and sending messages to a contact or channel.

Link copied to clipboard
Link copied to clipboard
fun QuickChatScreen(modifier: Modifier = Modifier, viewModel: QuickChatViewModel, onNavigateUp: () -> Unit)
Link copied to clipboard

Unwraps a [label](url) selection back to its label, or returns null when the selection is not a markdown link.

Link copied to clipboard

Toggles style markup around the selection range of text: wraps an unwrapped selection, removes the delimiters from an already-wrapped one, and inserts an empty delimiter pair for a collapsed cursor. Whitespace is kept outside the delimiters, delimiter characters the selection cuts through are absorbed, and orphaned delimiters left elsewhere are cleaned up.

Link copied to clipboard

Wraps the selection as [selection](url), or inserts a [link text](url) placeholder for a collapsed cursor.