Skip to main content
Version: 4.62

beginNfcReading

Starts listening to NFC tags. Shows a notification message (equivalent to showMessage) if NFC usage is not permitted or not available.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"complex"BooleanDetermines if complex NFC data is getting passed to the on tag actions.false
"onTagActions" (required)ArrayList of actions that are executed after an NFC tag is detected.null

Inherited

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples

Example 1: Scan for NFC tags

Show ExampleHide Example

BeginNfcReading action that displays the ID of a detected NFC tag using a showMessage action.

{
"type": "beginNFCReading",
"params": {
"onTagActions": [
{
"type": "showMessage",
"params": {
"text": "ID was {{id}}"
}
}
]
}
}