APP_IS_RUNNING_V2 = 134,
ANR_NOTIFY = 135,
APP_GET_RUNNING_CONTEXT = 136,
+ LAUNCHER_SERVICE_NOTIFY_ANIMATION_STARTED = 137,
+ LAUNCHER_SERVICE_NOTIFY_ANIMATION_FINISHED = 138,
APP_CMD_MAX
};
* @since_tizen 5.5
*/
#define AUL_K_LAUNCHER_SERVICE_SERIAL "__K_LAUNCHER_SERVICE_SERIAL__"
+
+/**
+ * @brief Definition for AUL: The event of the launcher service.
+ * @since_tizen 5.5
+ */
+#define AUL_K_LAUNCHER_SERVICE_EVENT "__K_LAUNCHER_SERVICE_EVENT__"
*/
int aul_launcher_service_destroy(aul_launcher_service_h handle);
+/**
+ * @brief Notifies that the animation is started.
+ * @since_tizen 5.5
+ *
+ * @return 0 on success,
+ * otherwise a negative error value
+ *
+ * @see aul_launcher_service_notify_animation_finished()
+ *
+ * @remarks This function is only available for App Framework internally.
+ */
+int aul_launcher_service_notify_animation_started(void);
+
+/**
+ * @brief Notifies that the animation is finished.
+ * @since_tizen 5.5
+ *
+ * @return 0 on success,
+ * otherwise a negative error value
+ *
+ * @see aul_launcher_service_notify_animation_started()
+ *
+ * @remarks This function is only available for App Framework internally.
+ */
+int aul_launcher_service_notify_animation_finished(void);
+
#ifdef __cplusplus
}
#endif
return "ANR_NOTIFY";
case APP_GET_RUNNING_CONTEXT:
return "APP_GET_RUNNING_CONTEXT";
+ case LAUNCHER_SERVICE_NOTIFY_ANIMATION_STARTED:
+ return "LAUNCHER_SERVICE_NOTIFY_ANIMATION_STARTED";
+ case LAUNCHER_SERVICE_NOTIFY_ANIMATION_FINISHED:
+ return "LAUNCHER_SERVICE_NOTIFY_ANIMATION_FINISHED";
default:
return "CUSTOM_COMMAND";
}
#include <stdio.h>
#include <stdlib.h>
#include <glib.h>
+#include <bundle_internal.h>
-#include "aul_launcher_service.h"
-#include "aul_app_com.h"
#include "aul_api.h"
+#include "aul_app_com.h"
+#include "aul_error.h"
+#include "aul_launcher_service.h"
+#include "aul_sock.h"
#include "aul_util.h"
struct aul_launcher_service_s {
return AUL_R_OK;
}
+
+static int __send_request(int cmd)
+{
+ int ret;
+
+ ret = aul_sock_send_raw(AUL_UTIL_PID, getuid(), cmd,
+ NULL, 0, AUL_SOCK_NOREPLY);
+ if (ret != 0) {
+ _E("Failed to send command(%d). error(%d)", cmd, ret);
+ return aul_error_convert(ret);
+ }
+
+ return 0;
+}
+
+API int aul_launcher_service_notify_animation_started(void)
+{
+ int ret;
+
+ ret = __send_request(LAUNCHER_SERVICE_NOTIFY_ANIMATION_STARTED);
+ if (ret < 0)
+ return ret;
+
+ return AUL_R_OK;
+}
+
+API int aul_launcher_service_notify_animation_finished(void)
+{
+ int ret;
+
+ ret = __send_request(LAUNCHER_SERVICE_NOTIFY_ANIMATION_FINISHED);
+ if (ret < 0)
+ return ret;
+
+ return AUL_R_OK;
+}