From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
m (Example)
Line 28: Line 28:
  
 
====Example====
 
====Example====
:<code>@+id/nfcScan</code> - GnEditText<br>
+
:<code>@+id/nfcScan</code> - <code>[[GnEditText]]</code><br>
 
:<code>myCustomNfcSound.mp3</code> - sound file name<br>
 
:<code>myCustomNfcSound.mp3</code> - sound file name<br>
 
:; ⤷ <code>[gn:act_nfcWidgetSoundChange]|[@+id/nfcScan,myCustomNfcSound.mp3]</code>
 
:; ⤷ <code>[gn:act_nfcWidgetSoundChange]|[@+id/nfcScan,myCustomNfcSound.mp3]</code>
 
<hr>
 
<hr>

Revision as of 16:18, 12 July 2017

gn:act_nfcWidgetSoundChange

Description
Action used to change NFC sound from default to custom when NFC tag is scanned.
Action returns
void

Action signatures

Change sound

[gn:act_nfcWidgetSoundChange]|[target,fileName]
Parameter Description
target target where the sound will be changed
fileName hardcoded value which represents name of file stored in assets folder

Example

@+id/nfcScan - GnEditText
myCustomNfcSound.mp3 - sound file name
[gn:act_nfcWidgetSoundChange]|[@+id/nfcScan,myCustomNfcSound.mp3]