Geolocation: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2012.8<br/> === Description === <br /> The `Geolocation` class is used to configure the parameters an..."
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Supported platforms:''' <br/>
'''Supported platforms:''' android, ios<br/>
'''Available since:''' Gideros 2012.8<br/>
'''Available since:''' Gideros 2012.8<br/>
=== Description ===
=== Description ===
Line 6: Line 6:
The `Geolocation` class is used to configure the parameters and dispatching of location and heading related events.<br />
The `Geolocation` class is used to configure the parameters and dispatching of location and heading related events.<br />
<br />
<br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{|-
{|-
| style="width: 50%;"|
| style="width: 50%;"|
=== Methods ===
=== Methods ===
[[Geolocation.getAccuracy]] - Geolocation - returns the previously set desired accuracy<br/>
[[Geolocation.getThreshold]] - Geolocation - returns the previously set minimum distance threshold<br/>
[[Geolocation.isAvailable]] - Geolocation - does this device have the capability to determine current location?<br/>
[[Geolocation.isHeadingAvailable]] - Geolocation - does this device have the capability to determine heading?<br/>
[[Geolocation.new]] - Creates new Geolocation instance<br/>
[[Geolocation.setAccuracy]] - of the location data<br/>
[[Geolocation.setThreshold]] - threshold<br/>
[[Geolocation:start]] - Geolocation - starts the generation of updates that report the current location and heading<br/>
[[Geolocation:startUpdatingHeading]] - Geolocation - starts the generation of updates that report the heading<br/>
[[Geolocation:startUpdatingLocation]] - Geolocation - starts the generation of updates that report the current location<br/>
[[Geolocation:stop]] - Geolocation - stops the generation of updates that report the current location and heading<br/>
[[Geolocation:stopUpdatingHeading]] - Geolocation - stops the generation of updates that report the heading<br/>
[[Geolocation:stopUpdatingLocation]] - Geolocation - stops the generation of updates that report the current location<br/>
| style="width: 50%;"|
| style="width: 50%;"|
=== Events ===
=== Events ===
[[Event.ERROR]]
[[Event.HEADING_UPDATE]]
[[Event.LOCATION_UPDATE]]
=== Constants ===
=== Constants ===
|}
|}

Revision as of 07:57, 23 August 2018

Supported platforms: android, ios
Available since: Gideros 2012.8

Description


The `Geolocation` class is used to configure the parameters and dispatching of location and heading related events.











Methods

Geolocation.getAccuracy - Geolocation - returns the previously set desired accuracy
Geolocation.getThreshold - Geolocation - returns the previously set minimum distance threshold
Geolocation.isAvailable - Geolocation - does this device have the capability to determine current location?
Geolocation.isHeadingAvailable - Geolocation - does this device have the capability to determine heading?
Geolocation.new - Creates new Geolocation instance
Geolocation.setAccuracy - of the location data
Geolocation.setThreshold - threshold
Geolocation:start - Geolocation - starts the generation of updates that report the current location and heading
Geolocation:startUpdatingHeading - Geolocation - starts the generation of updates that report the heading
Geolocation:startUpdatingLocation - Geolocation - starts the generation of updates that report the current location
Geolocation:stop - Geolocation - stops the generation of updates that report the current location and heading
Geolocation:stopUpdatingHeading - Geolocation - stops the generation of updates that report the heading
Geolocation:stopUpdatingLocation - Geolocation - stops the generation of updates that report the current location

Events

Event.ERROR Event.HEADING_UPDATE Event.LOCATION_UPDATE

Constants