API documentation  2.0rc1
Public Member Functions | List of all members
client::Geolocation Class Reference

#include <clientlib.h>

Inherits client::Object.

Public Member Functions

void clearWatch (double watchId)
 
void getCurrentPosition (EventListener *successCallback)
 
void getCurrentPosition (EventListener *successCallback, EventListener *errorCallback)
 
void getCurrentPosition (EventListener *successCallback, EventListener *errorCallback, PositionOptions *options)
 
double watchPosition (EventListener *successCallback)
 
double watchPosition (EventListener *successCallback, EventListener *errorCallback)
 
double watchPosition (EventListener *successCallback, EventListener *errorCallback, PositionOptions *options)
 
Geolocationget_prototype ()
 
void set_prototype (Geolocation *)
 
 Geolocation ()
 
- Public Member Functions inherited from client::Object
 Object ()
 
template<typename T >
valueOf ()
 
 operator double () const
 
Objectoperator[] (const client::String &name) const
 
void set_ (const client::String &name, Object *v)
 
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
void set_ (const client::String &name, T v)
 
bool hasOwnProperty (const client::String &name)
 

Constructor & Destructor Documentation

◆ Geolocation()

client::Geolocation::Geolocation ( )

Member Function Documentation

◆ clearWatch()

void client::Geolocation::clearWatch ( double  watchId)

◆ get_prototype()

Geolocation* client::Geolocation::get_prototype ( )

◆ getCurrentPosition() [1/3]

void client::Geolocation::getCurrentPosition ( EventListener successCallback)

◆ getCurrentPosition() [2/3]

void client::Geolocation::getCurrentPosition ( EventListener successCallback,
EventListener errorCallback 
)

◆ getCurrentPosition() [3/3]

void client::Geolocation::getCurrentPosition ( EventListener successCallback,
EventListener errorCallback,
PositionOptions options 
)

◆ set_prototype()

void client::Geolocation::set_prototype ( Geolocation )

◆ watchPosition() [1/3]

double client::Geolocation::watchPosition ( EventListener successCallback)

◆ watchPosition() [2/3]

double client::Geolocation::watchPosition ( EventListener successCallback,
EventListener errorCallback 
)

◆ watchPosition() [3/3]

double client::Geolocation::watchPosition ( EventListener successCallback,
EventListener errorCallback,
PositionOptions options 
)