AndroidNfcConfig

data class AndroidNfcConfig(    val activity: Activity,     val isPlatformSoundEnabled: Boolean = true,     val skipNdefCheck: Boolean = true,     val cardInsertionPollingInterval: Int = 0,     val cardRemovalPollingInterval: Int = 100)

Configuration class holding all the plugin options.

Since

3.0.0

Constructors

Link copied to clipboard
fun AndroidNfcConfig(    activity: Activity,     isPlatformSoundEnabled: Boolean = true,     skipNdefCheck: Boolean = true,     cardInsertionPollingInterval: Int = 0,     cardRemovalPollingInterval: Int = 100)

Properties

Link copied to clipboard
val activity: Activity

The activity context in which NFC operations will occur.

Link copied to clipboard
val cardInsertionPollingInterval: Int = 0

(optional, default value: 0) Delay (in milliseconds) for performing presence checks while waiting for card insertion. Use 0 to rely on the default behavior (corresponds to EXTRA_READER_PRESENCE_CHECK_DELAY).

Link copied to clipboard
val cardRemovalPollingInterval: Int = 100

(optional, default value: 100) Delay (in milliseconds) for performing presence checks while waiting for card removal.

Link copied to clipboard
val isPlatformSoundEnabled: Boolean = true

(optional, default value: true) When true, the platform will play sounds on tag discovery (corresponds to FLAG_READER_NO_PLATFORM_SOUNDS).

Link copied to clipboard
val skipNdefCheck: Boolean = true

(optional, default value: true) When true, the NFC adapter will skip the NDEF check on discovered tags (corresponds to FLAG_READER_SKIP_NDEF_CHECK).