Calling Lang.method from a global function

Former Member
Former Member

Hi,

Is there a way to call Lang.method() from a global function ? For example:

Sensor.registerSensorDataListener(method(:callback), options);

where callback is also a global function. 

When I do this I get an error that says "method" symbol not found. But if I do it within a class method, it works.

Thanks

Jesus