758 bytes added
, Friday at 10:04
<pre class="header-style">This trigger fires when NFC is enabled or disabled on the device.</pre>
''' Options '''
* '''Enabled''' - Trigger when NFC is turned on
* '''Disabled''' - Trigger when NFC is turned off
''' Examples '''
''Example 1: Keep a variable in sync with NFC state''
<pre class="trigger-style">Triggers
NFC Enabled State - Enabled</pre>
<pre class="action-style">Actions
Set Variable: [nfc_state] = "on"
Display Notification: "NFC enabled"</pre>
''Example 2: Alert when NFC is turned off''
<pre class="trigger-style">Triggers
NFC Enabled State - Disabled</pre>
<pre class="action-style">Actions
Display Notification: "NFC disabled"</pre>
''' See Also '''
* [[Trigger: NFC Tag|NFC Tag]]
* [[Constraint: NFC State|NFC State]]