MeshtasticImportFAB
fun MeshtasticImportFAB(onImport: (String) -> Unit, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, sharedContact: ERROR CLASS: Symbol not found for SharedContact?? = null, onDismissSharedContact: () -> Unit = {}, onShareChannels: () -> Unit? = null, isContactContext: Boolean = true, testTag: String? = null, importDialog: (ERROR CLASS: Symbol not found for SharedContact, () -> Unit) -> Unit = { contact, dismiss ->
SharedContactImportDialog(sharedContact = contact, onDismiss = dismiss)
})(source)
Unified Floating Action Button for importing Meshtastic data (Contacts, Channels, etc.) via NFC, QR, or URL. Handles the SharedContactImportDialog if a contact is pending import.
Parameters
onImport
Callback when a valid Meshtastic URI is scanned or input.
modifier
Modifier for this composable.
sharedContact
Optional pending SharedContact to display an import dialog for.
onDismissSharedContact
Callback to clear the pending shared contact.
onShareChannels
Optional callback to trigger sharing channels.
isContactContext
Hint to customize UI strings for contact importing context.
testTag
Optional test tag for UI testing.
importDialog
Composable to display the import dialog. Defaults to SharedContactImportDialog.