- return ApplicationState.ofCode(CommandExecutionHelper.execute(this,
- new AbstractMap.SimpleEntry<>(QUERY_APP_STATE, ImmutableMap.of("bundleId", bundleId))));
- }
-
- /**
- * Terminate the particular application if it is running.
- *
- * @param bundleId the bundle identifier (or app id) of the app to be terminated.
- * @return true if the app was running before and has been successfully stopped.
- */
- default boolean terminateApp(String bundleId) {
- return terminateApp(bundleId, null);
- }
-
- /**
- * Terminate the particular application if it is running.
- *
- * @param bundleId the bundle identifier (or app id) of the app to be terminated.
- * @param options the set of termination options supported by the
- * particular platform.
- * @return true if the app was running before and has been successfully stopped.