Updates some api's sample code 55/215355/2
authormk5004.lee <mk5004.lee@samsung.com>
Mon, 7 Oct 2019 09:15:10 +0000 (18:15 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Tue, 8 Oct 2019 05:44:05 +0000 (14:44 +0900)
Change-Id: Ic6de7f73e7083a13890dd9ddf5238eccf8c2cef3
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
notification-ex/api/notification_ex_input_selector.h
notification-ex/api/notification_ex_item.h

index a536c44..192a677 100644 (file)
@@ -107,7 +107,7 @@ int noti_ex_item_input_selector_get_contents(noti_ex_item_h handle, char ***list
 
 {
        int ret;
-       const char *contents[] = {"content_1", "content_2", "content_3"};
+       const char *contents[] = {"What's up?", "On my way", "Nice"};
        int count = 3;
 
        ret = noti_ex_item_input_selector_set_contents(selector_item, contents, count);
index 8d54132..b45cd8a 100644 (file)
@@ -1505,10 +1505,15 @@ int noti_ex_item_get_action(noti_ex_item_h handle, noti_ex_action_h *action);
        noti_ex_item_h item_handle = NULL;
        noti_ex_action_h action = NULL;
 
-       ret = noti_ex_action_visibility_create(&action, NULL);
+       ret = app_control_create(&app_control);
+       ret = app_control_set_app_id(app_control, "appid");
+       ret = noti_ex_action_app_control_create(&action, app_control, NULL);
+
        ret = noti_ex_item_button_create(&item_handle, "button_id", "button_title");
 
        ret = noti_ex_item_set_action(item_handle, action);
+
+       app_control_destroy(app_control);
 }
  * @endcode
  */