1 //Create a class for Touch sensor
7 private String displayName = "NfcTouch0"
9 NfcTouch(Closure sendEvent, int isTouched) {
10 this.sendEvent = sendEvent
11 this.isTouched = isTouched
15 def setValue(LinkedHashMap eventDataMap) {
16 println("NFC is Touched!")
17 this.isTouched = 1 //Do we need this?
18 sendEvent(eventDataMap)