Geolocation

Overview

The Geolocation interface represents an object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location.

Location

Required Methods


getCurrentPosition

Determines the device's current location and gives back a GeolocationPosition object with the data.

 

method getCurrentPosition(parsuccess: dynamic; parerror: dynamic; paroptions: dynamic): dynamic

 

dynamic getCurrentPosition(dynamic parsuccess, dynamic parerror, dynamic paroptions)

 

func getCurrentPosition(_ parsuccess: dynamic, _ parerror: dynamic, _ paroptions: dynamic) -> dynamic

 

dynamic getCurrentPosition(dynamic parsuccess, dynamic parerror, dynamic paroptions)

 

Function getCurrentPosition(parsuccess As dynamic, parerror As dynamic, paroptions As dynamic) As dynamic

Parameters:

  • parsuccess:
  • parerror:
  • paroptions:

watchPosition

Returns a long value representing the newly established callback function to be invoked whenever the device location changes.

 

method watchPosition(parsuccess: dynamic; parerror: dynamic; paroptions: dynamic): Int64

 

Int64 watchPosition(dynamic parsuccess, dynamic parerror, dynamic paroptions)

 

func watchPosition(_ parsuccess: dynamic, _ parerror: dynamic, _ paroptions: dynamic) -> Int64

 

Int64 watchPosition(dynamic parsuccess, dynamic parerror, dynamic paroptions)

 

Function watchPosition(parsuccess As dynamic, parerror As dynamic, paroptions As dynamic) As Int64

Parameters:

  • parsuccess:
  • parerror:
  • paroptions: