Package-level declarations

Types

Link copied to clipboard
internal actual class NfcReadManager(config: NfcConfig) : NfcAdapter.ReaderCallback

Android implementation of NfcReadManager. Handles NFC tag scanning using the Android NFC Adapter in Reader Mode.

internal expect class NfcReadManager(config: NfcConfig)

Manager class for handling NFC reading operations.

internal actual class NfcReadManager(config: NfcConfig) : NSObject, NFCTagReaderSessionDelegateProtocol

iOS implementation of NfcReadManager. Handles NFC tag scanning using CoreNFC's NFCTagReaderSession. The system manages the scanning UI; RegisterManager is a no-op.

Link copied to clipboard

Interface defining the state and operations for the NFC reader.

Link copied to clipboard

Concrete implementation of NfcReadManagerState.

Properties

Link copied to clipboard

NFC Forum URI identifier codes used to expand the first byte of a Well-Known URI NDEF record into its full URI prefix string.

Functions

Link copied to clipboard
internal fun extractUid(tag: NFCTagProtocol): String

Extracts the UID from an NFCTagProtocol, formatted as an uppercase hex string with ":" byte separators (e.g. "04:1A:2B:3C").

Link copied to clipboard
internal fun getFriendlyName(tech: String): String

Maps a fully-qualified Android NFC technology class name to a user-friendly label.

Link copied to clipboard
internal fun getNfcTagType(tag: Tag): NfcTagType

Determines the NfcTagType based on the tag's technology list. Only IsoDep maps to NfcTagType.ISO7816; bare NfcA/NfcB fall through to NfcTagType.NON_NDEF.

Link copied to clipboard
internal fun getTechList(tag: NFCTagProtocol): List<String>

Returns a list of user-friendly technology names supported by the given NFCTagProtocol.

Link copied to clipboard
internal fun NfcScanBottomSheet(config: NfcConfig, isVisible: Boolean, onDismiss: () -> Unit)

Bottom sheet shown during NFC scanning on Android.

Link copied to clipboard
internal fun NFCNDEFPayload.readableText(): String

Decodes an NFCNDEFPayload to a readable string. Handles Well-Known Text (type 'T'), Well-Known URI (type 'U'), and MIME/other records.

Link copied to clipboard
internal fun NSData.toByteArray(): ByteArray

Copies an NSData buffer into a ByteArray.

Link copied to clipboard
internal fun ByteArray.toHex(): String

Formats a ByteArray as an uppercase hex string with ":" byte separators.

Link copied to clipboard

Decodes an NdefRecord payload to a readable string. Handles Well-Known Text (RTD_TEXT), Well-Known URI (RTD_URI), and MIME/other records.