Moai SDK  2.0
MOAILocationSensor Class Reference
+ Inheritance diagram for MOAILocationSensor:

Function List

getLocation
 
setCallback
 

Function Documentation

getLocation

Returns the current information about the physical location.


function getLocation ( MOAILocationSensor self )

Parameters
MOAILocationSensorself
Returns
number longitude, number latitude, number haccuracy, number altitude, number vaccuracy, number speed
setCallback

Sets or clears the callback to be issued when the location changes.


function setCallback ( MOAILocationSensor self [, function callback ] )

Parameters
MOAILocationSensorself
functioncallback Optional. Default value is nil.
Returns
nil