Package-level declarations

Types

Link copied to clipboard

Presents the armed share URL as an NFC Forum Type 4 Tag, so a reader - another phone, a Flipper, any NDEF reader - can take a contact or channel by tapping this phone, with no physical tag.

Link copied to clipboard

The share URL this phone is currently offering to NFC readers, as an encoded NDEF message.

Functions

Link copied to clipboard

Offers url to NFC readers for as long as this effect stays composed.

Link copied to clipboard
fun NfcScannerEffect(onResult: (String?) -> Unit, onNfcDisabled: () -> Unit? = null)
Link copied to clipboard
fun NfcWriterEffect(url: String, onResult: (Boolean) -> Unit, onNfcDisabled: () -> Unit? = null)

Writes url (a Meshtastic shared-contact or channel-set URL) to the next NDEF tag tapped against the phone. Mirrors NfcScannerEffect: keep it composed while a write is armed, dispose to disarm. onResult reports write success.