Moai SDK  1.5 revision 1 (MoaiEdition)
MOAILocationSensor Class Reference
Inheritance diagram for MOAILocationSensor:
MOAISensor

List of all members.

Function List

  getLocation
  setCallback

Function Documentation

Returns the current information about the physical location.


function getLocation ( MOAILocationSensor self )
Parameters:
self ( MOAILocationSensor )
Returns:
longitude ( number ), latitude ( number ), haccuracy ( number ), altitude ( number ), vaccuracy ( number ), speed ( number )

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


function setCallback ( MOAILocationSensor self [, function callback ] )
Parameters:
self ( MOAILocationSensor )
callback ( function ) Optional. Default value is nil.
Returns:
nil