NfcReadResult

sealed class NfcReadResult(source)

Represents the result of an NFC scanning operation.

This sealed class defines the various states and outcomes of an NFC scan, including success, error, scanning progress, and cancellation.

Inheritors

Types

Link copied to clipboard
data class Error(val message: String) : NfcReadResult

Indicates that an error occurred during the NFC scanning process.

Link copied to clipboard
data object Initial : NfcReadResult

The initial state of the NFC manager before any scanning operation has been initiated.

Link copied to clipboard

Indicates that the NFC scanning operation was cancelled, either by the user (e.g., by dismissing the scanning UI) or by the system.

Link copied to clipboard
data object Scanning : NfcReadResult

Indicates that the NFC manager is currently actively scanning for tags.

Link copied to clipboard
data class Success(val data: NfcTagData) : NfcReadResult

Indicates that an NFC tag was successfully read.