|
|
|
|
|
- Special cases
- Required application feature
GPSStatus (Function) In french: GPSEtat Retrieves the activation status of the geolocation provider or asks to be notified when the status changes.
// Checks the status of the GPS provider IF GPSStatus() = gpsDisabled THEN Info("Geolocation is not enabled.") END
Syntax
Retrieving the activation status of the provider Hide the details
<Result> = GPSStatus()
<Result>: Integer constant Activation status of the location provider. The following values can be returned: | | gpsDisabled | The provider is disabled. | gpsEnabled | The provider is enabled. | gpsError | Error while retrieving the activation status of the provider. To get more details on the error, use ErrorInfo.
|
Remarks Special cases - To stop receiving the notifications when the status changes, call GPSStatus while passing an empty string ("") as parameter or use GPSEnd.
Related Examples:
|
Cross-platform examples (WINDEV Mobile): WM Geolocation
[ + ] This example explains how to perform proximity searches with geolocation : - search around me - search in a city, at a given address, or close to a specific address. The results are displayed in a looper and in a map with markers.
|
|
Android (WINDEV Mobile): Android GPS
[ + ] This example presents the use of the GPS functions of WLanguage in an Android application. It is used to retrieve at regular interval: - The latitude - The longitude - The altitude - The speed - The direction
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|