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