|
|
|
|
|
- Managing locks
- Browsers allowing the geolocation
GPSGetPosition (Function) Retrieves information about the current device position.
MyLocation is geoPosition
MyLocation = GPSGetPosition()
IF ErrorOccurred THEN RETURN
Info("Latitude: " + MaPosition.Latitude)
Info("Longitude: " + MaPosition.Longitude)
Observaciones Managing locks GPSGetPosition blocks execution until the current device location is retrieved or until the timeout defined by the <Timeout> parameter expires. If the function is called in the main thread of the application, an hourglass will be displayed during the function execution. The message displayed by the hourglass can be specified via the <Message> parameter. Otherwise, the execution of secondary thread will be locked during the function execution and no hourglass will be displayed. Note: To find out the last known position of the device without delay, use the GPSLastPosition function.. Caution, the positioning information that was retrieved may not correspond to the current device position if the device was moved while the GPS signal was not valid for example. You can use the MeasurementDate property of the geoPosition variable to determine the date and time at which the position was calculated. Clasificación Lógica de negocio / UI: Lógica de negocio Componente: wd300java.dll
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|