Package io.appium.java_client.android
Interface SupportsGpsStateManagement
- All Superinterfaces:
CanRememberExtensionPresence,ExecutesMethod
- All Known Implementing Classes:
AndroidDriver,FlutterAndroidDriver
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanCheck GPS service state.default voidToggles GPS service state.Methods inherited from interface io.appium.java_client.CanRememberExtensionPresence
assertExtensionExists, markExtensionAbsenceMethods inherited from interface io.appium.java_client.ExecutesMethod
execute, execute
-
Method Details
-
toggleLocationServices
default void toggleLocationServices()Toggles GPS service state. This method only works reliably since API 31 (Android 12). -
isLocationServicesEnabled
default boolean isLocationServicesEnabled()Check GPS service state.- Returns:
- true if GPS service is enabled.
-