How to specify an empty array? []

Former Member
Former Member
The API docs for Sensor.setEnabledSensors() say to pass an empty array [] to disable all sensors. I *think* this was working in the previous SDK release, but certainly now with v0.2.4 I'm getting a runtime error of:

Failed invoking <symbol>
Unexpected Type Error

The error is in declaring the empty array, not from setEnabledSensors() processing it. I tried various other ideas, new [], new [0], [null], new [null], null. The only one that doesn't give an error is:

Sensor.setEnabledSensors([0])

but that is an array of one element, which has value '0' ?