Detailed Description

The Geolocation Web API.

Public Member Functions

void getCurrentPosition (GeolocationEvent success, GeolocationErrorEvent error, GeoPositionOptions options)
 Gets the current position. More...
 

Static Package Functions

static void Update ()
 Update waiting requests. More...
 
static void OnReady (GeolocationEvent success, GeolocationErrorEvent error, GeoPositionOptions options)
 

Static Package Attributes

static GeoPosition Latest
 The last recorded position. Stored to compute approximate speed. More...
 
static PendingLocationRequest FirstQueued
 First waiting request. More...
 
static OnUpdateCallback Updater
 Calls our update function for us, but only when we actually need it to. More...
 

Member Function Documentation

void PowerUI.Geolocation.getCurrentPosition ( GeolocationEvent  success,
GeolocationErrorEvent  error,
GeoPositionOptions  options 
)
inline

Gets the current position.

static void PowerUI.Geolocation.OnReady ( GeolocationEvent  success,
GeolocationErrorEvent  error,
GeoPositionOptions  options 
)
inlinestaticpackage
static void PowerUI.Geolocation.Update ( )
inlinestaticpackage

Update waiting requests.

Member Data Documentation

PendingLocationRequest PowerUI.Geolocation.FirstQueued
staticpackage

First waiting request.

GeoPosition PowerUI.Geolocation.Latest
staticpackage

The last recorded position. Stored to compute approximate speed.

OnUpdateCallback PowerUI.Geolocation.Updater
staticpackage

Calls our update function for us, but only when we actually need it to.