Tizen Native API
6.5
|
Notification EX APIs.
Required Header
#include <notification_ex.h>
Overview
A notification ex API is a set of expanded APIs for notifications. The expanded notification is the predefined type of notifications. The notification can define actions with one item or group of items. It supports displaying the notification with selectors to select predefined input and controlling visibility of the created notification items.
Functions | |
int | noti_ex_action_app_control_create (noti_ex_action_h *handle, app_control_h app_control, const char *extra) |
Creates the notification_ex action handle with app control handle. | |
int | noti_ex_action_app_control_set (noti_ex_action_h handle, app_control_h app_control) |
Sets the app control handle for notification_ex action. | |
int | noti_ex_action_app_control_get (noti_ex_action_h handle, app_control_h *app_control) |
Gets the app control handle from notification_ex action. | |
int | noti_ex_item_button_create (noti_ex_item_h *handle, const char *id, const char *title) |
Creates the notification_ex item handle with a button. | |
int | noti_ex_item_button_get_title (noti_ex_item_h handle, char **title) |
Gets the title of a button item. | |
int | noti_ex_item_button_set_multi_language_title (noti_ex_item_h handle, noti_ex_multi_lang_h multi) |
Sets the multi-language handle. | |
int | noti_ex_item_chat_message_create (noti_ex_item_h *handle, const char *id, noti_ex_item_h name, noti_ex_item_h text, noti_ex_item_h image, noti_ex_item_h time, noti_ex_item_chat_message_type_e message_type) |
Creates the notification_ex item handle for the chat message. | |
int | noti_ex_item_chat_message_get_name (noti_ex_item_h handle, noti_ex_item_h *name) |
Gets the notification_ex item handle for the chat message name. | |
int | noti_ex_item_chat_message_get_text (noti_ex_item_h handle, noti_ex_item_h *text) |
Gets the notification_ex item handle for the chat message text. | |
int | noti_ex_item_chat_message_get_image (noti_ex_item_h handle, noti_ex_item_h *image) |
Gets the notification_ex item handle for the chat message image. | |
int | noti_ex_item_chat_message_get_time (noti_ex_item_h handle, noti_ex_item_h *time) |
Gets the notification_ex item handle for the chat message time. | |
int | noti_ex_item_chat_message_get_message_type (noti_ex_item_h handle, noti_ex_item_chat_message_type_e *message_type) |
Gets the type of chat message. | |
int | noti_ex_item_checkbox_create (noti_ex_item_h *handle, const char *id, const char *title, bool checked) |
Creates the notification_ex item handle with checkbox. | |
int | noti_ex_item_checkbox_get_title (noti_ex_item_h handle, char **title) |
Gets the title of a checkbox. | |
int | noti_ex_item_checkbox_set_multi_language_title (noti_ex_item_h handle, noti_ex_multi_lang_h multi) |
Sets the multi-language handle. | |
int | noti_ex_item_checkbox_get_check_state (noti_ex_item_h handle, bool *checked) |
Gets the check state of a checkbox. | |
int | noti_ex_item_checkbox_set_check_state (noti_ex_item_h handle, bool checked) |
Sets the check state of a checkbox. | |
int | noti_ex_item_entry_create (noti_ex_item_h *handle, const char *id) |
Creates the notification_ex item handle for an entry item. | |
int | noti_ex_item_entry_get_text (noti_ex_item_h handle, char **text) |
Gets the text of an entry item. | |
int | noti_ex_item_entry_set_text (noti_ex_item_h handle, const char *text) |
Sets the text of an entry item. | |
int | noti_ex_item_entry_set_multi_language (noti_ex_item_h handle, noti_ex_multi_lang_h multi) |
Sets the multi-language handle. | |
int | noti_ex_event_info_clone (noti_ex_event_info_h handle, noti_ex_event_info_h *cloned_handle) |
Clones the notification event info handle. | |
int | noti_ex_event_info_destroy (noti_ex_event_info_h handle) |
Releases the notification event info handle. | |
int | noti_ex_event_info_get_event_type (noti_ex_event_info_h handle, noti_ex_event_info_type_e *event_type) |
Gets the type of an event. | |
int | noti_ex_event_info_get_owner (noti_ex_event_info_h handle, char **owner) |
Gets the app id of event owner. | |
int | noti_ex_event_info_get_channel (noti_ex_event_info_h handle, char **channel) |
Gets the channel of an event. | |
int | noti_ex_event_info_get_item_id (noti_ex_event_info_h handle, char **item_id) |
Gets the id of a notification_ex item. | |
int | noti_ex_event_info_get_request_id (noti_ex_event_info_h handle, int *req_id) |
Gets the id of request for an event. | |
int | noti_ex_item_group_create (noti_ex_item_h *handle, const char *id) |
Creates the group of notification_ex items. | |
int | noti_ex_item_group_set_direction (noti_ex_item_h handle, bool vertical) |
Sets the direction of children in the group item. | |
int | noti_ex_item_group_is_vertical (noti_ex_item_h handle, bool *vertical) |
Gets the vertical state of group item. | |
int | noti_ex_item_group_get_app_label (noti_ex_item_h handle, char **label) |
Gets the label of application. | |
int | noti_ex_item_group_add_child (noti_ex_item_h handle, noti_ex_item_h child) |
Adds the child to the group item. | |
int | noti_ex_item_group_remove_child (noti_ex_item_h handle, const char *item_id) |
Removes the child from the group item by notification_ex item id. | |
int | noti_ex_item_group_foreach_child (noti_ex_item_h handle, noti_ex_item_group_foreach_child_cb callback, void *user_data) |
Gets the data of children from the group item. | |
int | noti_ex_item_image_create (noti_ex_item_h *handle, const char *id, const char *image_path) |
Creates the notification_ex item handle with an image. | |
int | noti_ex_item_image_get_image_path (noti_ex_item_h handle, char **image_path) |
Gets the path of image. | |
int | noti_ex_item_input_selector_create (noti_ex_item_h *handle, const char *id) |
Creates the notification_ex item handle with input selector. | |
int | noti_ex_item_input_selector_get_contents (noti_ex_item_h handle, char ***list, int *count) |
Gets the contents that can be selected by input selector. | |
int | noti_ex_item_input_selector_set_contents (noti_ex_item_h handle, const char **contents, int count) |
Sets the contents for input selector item. | |
int | noti_ex_item_input_selector_set_multi_language_contents (noti_ex_item_h handle, noti_ex_multi_lang_h *multi_language_list, int count) |
Sets the multi-language contents for input selector item. | |
int | noti_ex_color_create (noti_ex_color_h *handle, unsigned char a, unsigned char r, unsigned char g, unsigned char b) |
Creates the notification_ex color handle. | |
int | noti_ex_color_destroy (noti_ex_color_h handle) |
Releases a notification_ex color handle. | |
int | noti_ex_color_get_alpha (noti_ex_color_h handle, unsigned char *val) |
Gets the alpha value of a color. | |
int | noti_ex_color_get_red (noti_ex_color_h handle, unsigned char *val) |
Gets the red value of a color. | |
int | noti_ex_color_get_green (noti_ex_color_h handle, unsigned char *val) |
Gets the green value of a color. | |
int | noti_ex_color_get_blue (noti_ex_color_h handle, unsigned char *val) |
Gets the blue value of a color. | |
int | noti_ex_padding_create (noti_ex_padding_h *handle, int left, int top, int right, int bottom) |
Creates the notification_ex padding handle. | |
int | noti_ex_padding_destroy (noti_ex_padding_h handle) |
Releases a notification_ex padding handle. | |
int | noti_ex_padding_get_left (noti_ex_padding_h handle, int *val) |
Gets the left value of padding. | |
int | noti_ex_padding_get_top (noti_ex_padding_h handle, int *val) |
Gets the top value of padding. | |
int | noti_ex_padding_get_right (noti_ex_padding_h handle, int *val) |
Gets the right value of padding. | |
int | noti_ex_padding_get_bottom (noti_ex_padding_h handle, int *val) |
Gets the bottom value of padding. | |
int | noti_ex_geometry_create (noti_ex_geometry_h *handle, int x, int y, int w, int h) |
Creates the notification_ex geometry handle. | |
int | noti_ex_geometry_destroy (noti_ex_geometry_h handle) |
Releases the notification_ex geometry handle. | |
int | noti_ex_geometry_get_x (noti_ex_geometry_h handle, int *val) |
Gets the x position value. | |
int | noti_ex_geometry_get_y (noti_ex_geometry_h handle, int *val) |
Gets the y position value. | |
int | noti_ex_geometry_get_width (noti_ex_geometry_h handle, int *val) |
Gets the width value. | |
int | noti_ex_geometry_get_height (noti_ex_geometry_h handle, int *val) |
Gets the height value. | |
int | noti_ex_style_create (noti_ex_style_h *handle, noti_ex_color_h color, noti_ex_padding_h padding, noti_ex_geometry_h geometry) |
Creates the notification_ex style handle. | |
int | noti_ex_style_destroy (noti_ex_style_h handle) |
Releases the notification_ex style handle. | |
int | noti_ex_style_get_padding (noti_ex_style_h handle, noti_ex_padding_h *padding) |
Gets the padding information from a style. | |
int | noti_ex_style_get_color (noti_ex_style_h handle, noti_ex_color_h *color) |
Gets the color information from a style. | |
int | noti_ex_style_get_geometry (noti_ex_style_h handle, noti_ex_geometry_h *geometry) |
Gets the geometry information from style. | |
int | noti_ex_style_get_background_image (noti_ex_style_h handle, char **image_path) |
Gets the background image path from style. | |
int | noti_ex_style_set_background_image (noti_ex_style_h handle, char *image_path) |
Sets the background image path of a style. | |
int | noti_ex_style_get_background_color (noti_ex_style_h handle, noti_ex_color_h *color) |
Gets the background color of a style. | |
int | noti_ex_style_set_background_color (noti_ex_style_h handle, noti_ex_color_h color) |
Sets the background color of a style. | |
int | noti_ex_led_info_create (noti_ex_led_info_h *handle, noti_ex_color_h color) |
Creates the notification_ex LED info handle. | |
int | noti_ex_led_info_destroy (noti_ex_led_info_h handle) |
Releases the notification_ex LED info handle. | |
int | noti_ex_led_info_set_on_period (noti_ex_led_info_h handle, int ms) |
Sets the time period for turning on the LED. | |
int | noti_ex_led_info_get_on_period (noti_ex_led_info_h handle, int *ms) |
Gets the time period for turning on the LED. | |
int | noti_ex_led_info_set_off_period (noti_ex_led_info_h handle, int ms) |
Sets the time period for turning off the LED. | |
int | noti_ex_led_info_get_off_period (noti_ex_led_info_h handle, int *ms) |
Gets the time period for turning off the LED. | |
int | noti_ex_led_info_get_color (noti_ex_led_info_h handle, noti_ex_color_h *color) |
Gets the color information from LED info. | |
int | noti_ex_action_destroy (noti_ex_action_h handle) |
Releases the notification_ex action handle. | |
int | noti_ex_action_get_type (noti_ex_action_h handle, int *type) |
Gets the type of an action. | |
int | noti_ex_action_is_local (noti_ex_action_h handle, bool *local) |
Gets the local state of an action. | |
int | noti_ex_action_execute (noti_ex_action_h handle, noti_ex_item_h item) |
Executes the action for a notification_ex item. | |
int | noti_ex_action_get_extra (noti_ex_action_h handle, char **extra) |
Gets the extra data for an action. | |
int | noti_ex_item_info_get_hide_time (noti_ex_item_info_h handle, int *hide_time) |
Gets the time to hide the notification_ex item. | |
int | noti_ex_item_info_set_hide_time (noti_ex_item_info_h handle, int hide_time) |
Sets the time to hide the notification_ex item. | |
int | noti_ex_item_info_get_delete_time (noti_ex_item_info_h handle, int *delete_time) |
Gets the time to delete the notification_ex item. | |
int | noti_ex_item_info_set_delete_time (noti_ex_item_info_h handle, int delete_time) |
Sets the time to delete the notification_ex item. | |
int | noti_ex_item_info_get_time (noti_ex_item_info_h handle, time_t *time) |
Gets the time information. | |
int | noti_ex_item_destroy (noti_ex_item_h handle) |
Releases the notification_ex item handle. | |
int | noti_ex_item_find_by_id (noti_ex_item_h handle, const char *id, noti_ex_item_h *item) |
Finds the notification_ex item handle by notification_ex item id. | |
int | noti_ex_item_get_type (noti_ex_item_h handle, int *type) |
Gets the type of notification_ex item. | |
int | noti_ex_item_get_id (noti_ex_item_h handle, char **id) |
Gets the id of a notification_ex item. | |
int | noti_ex_item_set_id (noti_ex_item_h handle, const char *id) |
Sets the id of a notification_ex item. | |
int | noti_ex_item_get_action (noti_ex_item_h handle, noti_ex_action_h *action) |
Gets the action for a notification_ex item. | |
int | noti_ex_item_set_action (noti_ex_item_h handle, noti_ex_action_h action) |
Sets the action of a notification_ex item. | |
int | noti_ex_item_get_style (noti_ex_item_h handle, noti_ex_style_h *style) |
Gets the style of a notification_ex item. | |
int | noti_ex_item_set_style (noti_ex_item_h handle, noti_ex_style_h style) |
Sets the style of a notification_ex item. | |
int | noti_ex_item_set_visible (noti_ex_item_h handle, bool visible) |
Sets the visibility state of a notification_ex item. | |
int | noti_ex_item_get_visible (noti_ex_item_h handle, bool *visible) |
Gets the visibility state of a notification_ex item. | |
int | noti_ex_item_set_enable (noti_ex_item_h handle, bool enable) |
Sets the enabled state of a notification_ex item. | |
int | noti_ex_item_get_enable (noti_ex_item_h handle, bool *enable) |
Gets the enabled state of a notification_ex item. | |
int | noti_ex_item_add_receiver (noti_ex_item_h handle, const char *receiver_group) |
Adds the receiver group of a notification_ex item. | |
int | noti_ex_item_remove_receiver (noti_ex_item_h handle, const char *receiver_group) |
Removes the receiver group from a notification_ex item. | |
int | noti_ex_item_get_receiver_list (noti_ex_item_h handle, char ***list, int *count) |
Gets the list of receiver group of a notification_ex item. | |
int | noti_ex_item_set_policy (noti_ex_item_h handle, int policy) |
Sets the policy of a notification_ex item. | |
int | noti_ex_item_get_policy (noti_ex_item_h handle, int *policy) |
Gets the policy of a notification_ex item. | |
int | noti_ex_item_get_channel (noti_ex_item_h handle, char **channel) |
Gets the channel of a notification_ex item. | |
int | noti_ex_item_set_channel (noti_ex_item_h handle, const char *channel) |
Sets the channel of a notification_ex item. | |
int | noti_ex_item_set_led_info (noti_ex_item_h handle, noti_ex_led_info_h led) |
Sets the LED information of a notification_ex item. | |
int | noti_ex_item_get_led_info (noti_ex_item_h handle, noti_ex_led_info_h *led) |
Gets the LED information of a notification_ex item. | |
int | noti_ex_item_set_sound_path (noti_ex_item_h handle, const char *path) |
Sets the sound path of a notification_ex item. | |
int | noti_ex_item_get_sound_path (noti_ex_item_h handle, char **path) |
Gets the sound path of a notification_ex item. | |
int | noti_ex_item_set_vibration_path (noti_ex_item_h handle, const char *path) |
Sets the vibration path of a notification_ex item. | |
int | noti_ex_item_get_vibration_path (noti_ex_item_h handle, char **path) |
Gets the vibration path of a notification_ex item. | |
int | noti_ex_item_get_info (noti_ex_item_h handle, noti_ex_item_info_h *info) |
Gets the information of a notification_ex item. | |
int | noti_ex_item_get_sender_app_id (noti_ex_item_h handle, char **id) |
Gets the sender app id of a notification_ex item. | |
int | noti_ex_item_get_tag (noti_ex_item_h handle, char **tag) |
Gets the tag of a notification_ex item. | |
int | noti_ex_item_set_tag (noti_ex_item_h handle, const char *tag) |
Sets the tag of a notification_ex item. | |
int | noti_ex_item_get_ongoing_state (noti_ex_item_h handle, bool *ongoing) |
Gets the value indicating whether a notification is currently ongoing. | |
int | noti_ex_item_set_ongoing_state (noti_ex_item_h handle, bool ongoing) |
Sets the value indicating whether a notification is currently ongoing. | |
int | noti_ex_item_check_type_exist (noti_ex_item_h handle, int type, bool *exist) |
Checks if an item of a specified type is included in a notification_ex item. | |
int | noti_ex_item_get_main_type (noti_ex_item_h handle, int *type) |
Gets the main type of a notification item. | |
int | noti_ex_item_set_main_type (noti_ex_item_h handle, const char *id, int type) |
Sets the main type of a notification item. | |
int | noti_ex_item_find_by_main_type (noti_ex_item_h handle, int type, noti_ex_item_h *item) |
Finds the notification item of the specified main type. | |
int | noti_ex_item_get_extension_data (noti_ex_item_h handle, const char *key, bundle **value) |
Gets the extension data. | |
int | noti_ex_item_set_extension_data (noti_ex_item_h handle, const char *key, bundle *value) |
Sets the extension data. | |
int | noti_ex_manager_create (noti_ex_manager_h *handle, const char *receiver_group, noti_ex_manager_events_s event_callbacks, void *user_data) |
Creates the notification_ex manager handle. | |
int | noti_ex_manager_destroy (noti_ex_manager_h handle) |
Destroys the notification_ex manager handle. | |
int | noti_ex_manager_get (noti_ex_manager_h handle, noti_ex_item_h **items, int *count) |
Gets all notifications for the notification_ex manager. | |
int | noti_ex_manager_get_by_channel (noti_ex_manager_h handle, char *channel, noti_ex_item_h **items, int *count) |
Gets notifications with channel for the notification_ex manager. | |
int | noti_ex_manager_update (noti_ex_manager_h handle, noti_ex_item_h item, int *request_id) |
Updates notification. | |
int | noti_ex_manager_delete (noti_ex_manager_h handle, noti_ex_item_h noti, int *request_id) |
Deletes notification. | |
int | noti_ex_manager_delete_all (noti_ex_manager_h handle, int *request_id) |
Deletes all notification. | |
int | noti_ex_manager_hide (noti_ex_manager_h handle, noti_ex_item_h item, int *request_id) |
Hides notification. | |
int | noti_ex_manager_find_by_root_id (noti_ex_manager_h handle, const char *root_id, noti_ex_item_h *item) |
Finds notification by root id. | |
int | noti_ex_manager_send_error (noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_error_e error) |
Sends error to the reporter. | |
int | noti_ex_manager_get_notification_count (noti_ex_manager_h handle, int *count) |
Gets the count of notifications for the manager. | |
int | noti_ex_multi_lang_create (noti_ex_multi_lang_h *handle, const char *msgid, const char *format,...) |
Creates the multi-language item handle. | |
int | noti_ex_multi_lang_destroy (noti_ex_multi_lang_h handle) |
Destroys the multi-language item handle. | |
int | noti_ex_item_progress_create (noti_ex_item_h *handle, const char *id, float min, float current, float max) |
Creates the notification_ex item handle with progress. | |
int | noti_ex_item_progress_get_current (noti_ex_item_h handle, float *current) |
Gets the current value of progress. | |
int | noti_ex_item_progress_set_current (noti_ex_item_h handle, float current) |
Sets the current value of progress. | |
int | noti_ex_item_progress_get_min (noti_ex_item_h handle, float *min) |
Gets the minimum value of progress. | |
int | noti_ex_item_progress_get_max (noti_ex_item_h handle, float *max) |
Gets the maximum value of progress. | |
int | noti_ex_item_progress_get_type (noti_ex_item_h handle, int *type) |
Gets the type of progress. The type is equal to one of the values of noti_ex_item_progress_type_e. | |
int | noti_ex_item_progress_set_type (noti_ex_item_h handle, int type) |
Sets the type of progress. | |
int | noti_ex_reporter_create (noti_ex_reporter_h *handle, noti_ex_reporter_events_s event_callbacks, void *user_data) |
Creates the notification_ex reporter handle. | |
int | noti_ex_reporter_destroy (noti_ex_reporter_h handle) |
Destroys the notification_ex reporter handle. | |
int | noti_ex_reporter_send_error (noti_ex_reporter_h handle, noti_ex_event_info_h info, noti_ex_error_e error) |
Sends error to the manager. | |
int | noti_ex_reporter_post (noti_ex_reporter_h handle, noti_ex_item_h noti, int *request_id) |
Posts a notification. | |
int | noti_ex_reporter_post_list (noti_ex_reporter_h handle, noti_ex_item_h *noti_list, int count, int *request_id) |
Posts notifications contained in a list. | |
int | noti_ex_reporter_update (noti_ex_reporter_h handle, noti_ex_item_h noti, int *request_id) |
Updates a notification. | |
int | noti_ex_reporter_delete (noti_ex_reporter_h handle, noti_ex_item_h noti, int *request_id) |
Deletes a notification. | |
int | noti_ex_reporter_delete_all (noti_ex_reporter_h handle, int *request_id) |
Deletes all notifications. | |
int | noti_ex_reporter_find_by_root_id (noti_ex_reporter_h handle, const char *root_id, noti_ex_item_h *item) |
Finds notification by root id. | |
int | noti_ex_item_text_create (noti_ex_item_h *handle, const char *id, const char *text, const char *hyperlink) |
Creates the notification_ex item handle with text. | |
int | noti_ex_item_text_set_contents (noti_ex_item_h handle, const char *contents) |
Sets the text contents of the text item. | |
int | noti_ex_item_text_get_contents (noti_ex_item_h handle, char **contents) |
Gets the text contents of the text item. | |
int | noti_ex_item_text_get_hyperlink (noti_ex_item_h handle, char **hyperlink) |
Gets the hyperlink of the text item. | |
int | noti_ex_item_text_set_multi_language (noti_ex_item_h handle, noti_ex_multi_lang_h multi) |
Sets the multi-language handle. | |
int | noti_ex_item_time_create (noti_ex_item_h *handle, const char *id, time_t time) |
Creates the notification_ex item handle with time. | |
int | noti_ex_item_time_get_time (noti_ex_item_h handle, time_t *time) |
Gets the time information of time item. | |
int | noti_ex_action_visibility_create (noti_ex_action_h *handle, const char *extra) |
Creates the notification_ex action handle to control visibility. | |
int | noti_ex_action_visibility_set (noti_ex_action_h handle, const char *id, bool visible) |
Sets the visibility state for notification_ex item. | |
Typedefs | |
typedef enum _noti_ex_item_chat_message_type | noti_ex_item_chat_message_type_e |
Enumeration for notification_ex chat message type. | |
typedef enum _noti_ex_error | noti_ex_error_e |
Enumeration for notification errors. | |
typedef enum _noti_ex_event_info_type | noti_ex_event_info_type_e |
Enumeration for the type of notification event. | |
typedef void * | noti_ex_event_info_h |
The handle for the notification event information. | |
typedef int(* | noti_ex_item_group_foreach_child_cb )(noti_ex_item_h handle, void *user_data) |
Called to get the data of child item for each child of the group item. | |
typedef enum _noti_ex_item_type | noti_ex_item_type_e |
Enumeration for notification_ex item types. | |
typedef enum _noti_ex_action_type | noti_ex_action_type_e |
Enumeration for notification_ex action type. | |
typedef enum _noti_ex_item_policy | noti_ex_item_policy_e |
Enumeration for notification_ex item policy. | |
typedef enum _noti_ex_item_main_type | noti_ex_item_main_type_e |
Enumeration for main types of notification_ex item. | |
typedef void * | noti_ex_color_h |
The handle for the color information. | |
typedef void * | noti_ex_padding_h |
The handle for the padding information. | |
typedef void * | noti_ex_geometry_h |
The handle for the geometry information. | |
typedef void * | noti_ex_style_h |
The handle for the style information. | |
typedef void * | noti_ex_led_info_h |
The handle for the LED information. | |
typedef void * | noti_ex_action_h |
The notification_ex action handle. | |
typedef void * | noti_ex_item_h |
The notification_ex item handle. | |
typedef void * | noti_ex_item_info_h |
The notification_ex item_info handle. | |
typedef void * | noti_ex_manager_h |
The notification_ex manager handle. | |
typedef void(* | noti_ex_manager_events_add_cb )(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h *added_items, int count, void *user_data) |
Called when a notification addition event is received. | |
typedef void(* | noti_ex_manager_events_update_cb )(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h updated_item, void *user_data) |
Called when a notification update event is received. | |
typedef void(* | noti_ex_manager_events_delete_cb )(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h deleted_item, void *user_data) |
Called when a notification deletion event is received. | |
typedef void(* | noti_ex_manager_events_error_cb )(noti_ex_manager_h handle, noti_ex_error_e error, int request_id, void *user_data) |
Called when an error event is received. | |
typedef void * | noti_ex_multi_lang_h |
The notification_ex multi-language item handle. | |
typedef enum _noti_ex_item_progress_type | noti_ex_item_progress_type_e |
Enumeration for notification_ex progress item types. | |
typedef void * | noti_ex_reporter_h |
The notification_ex reporter handle. | |
typedef void(* | noti_ex_reporter_events_error_cb )(noti_ex_reporter_h handle, noti_ex_error_e error, int request_id, void *user_data) |
Called when the error event is received. | |
typedef void(* | noti_ex_reporter_events_event_cb )(noti_ex_reporter_h handle, noti_ex_event_info_h info, noti_ex_item_h *items, int count, void *user_data) |
Called when the notification event is received. | |
Defines | |
#define | NOTI_EX_RECEIVER_GROUP_PANEL "tizen.org/receiver/panel" |
Predefined receiver group for the Panel. | |
#define | NOTI_EX_RECEIVER_GROUP_TICKER "tizen.org/receiver/ticker" |
Predefined receiver group for the Ticker. | |
#define | NOTI_EX_RECEIVER_GROUP_LOCKSCREEN "tizen.org/receiver/lockscreen" |
Predefined receiver group for the Lockscreen. | |
#define | NOTI_EX_RECEIVER_GROUP_INDICATOR "tizen.org/receiver/indicator" |
Predefined receiver group for the Indicator. | |
#define | NOTI_EX_RECEIVER_GROUP_POPUP "tizen.org/receiver/popup" |
Predefined receiver group for the Popup. | |
#define | NOTI_EX_SOUND_TYPE_DEFAULT "__SOUND_TYPE_DEFAULT__" |
Default sound. | |
#define | NOTI_EX_VIBRATION_TYPE_DEFAULT "__VIBRATION_TYPE_DEFAULT__" |
Default vibration. |
Define Documentation
#define NOTI_EX_RECEIVER_GROUP_INDICATOR "tizen.org/receiver/indicator" |
Predefined receiver group for the Indicator.
- Since :
- 5.5
#define NOTI_EX_RECEIVER_GROUP_LOCKSCREEN "tizen.org/receiver/lockscreen" |
Predefined receiver group for the Lockscreen.
- Since :
- 5.5
#define NOTI_EX_RECEIVER_GROUP_PANEL "tizen.org/receiver/panel" |
Predefined receiver group for the Panel.
- Since :
- 5.5
#define NOTI_EX_RECEIVER_GROUP_POPUP "tizen.org/receiver/popup" |
Predefined receiver group for the Popup.
- Since :
- 5.5
#define NOTI_EX_RECEIVER_GROUP_TICKER "tizen.org/receiver/ticker" |
Predefined receiver group for the Ticker.
- Since :
- 5.5
#define NOTI_EX_SOUND_TYPE_DEFAULT "__SOUND_TYPE_DEFAULT__" |
Default sound.
- Since :
- 5.5
#define NOTI_EX_VIBRATION_TYPE_DEFAULT "__VIBRATION_TYPE_DEFAULT__" |
Default vibration.
- Since :
- 5.5
Typedef Documentation
typedef void* noti_ex_action_h |
The notification_ex action handle.
- Since :
- 5.5
typedef enum _noti_ex_action_type noti_ex_action_type_e |
Enumeration for notification_ex action type.
- Since :
- 5.5
typedef void* noti_ex_color_h |
The handle for the color information.
- Since :
- 5.5
typedef enum _noti_ex_error noti_ex_error_e |
Enumeration for notification errors.
- Since :
- 5.5
typedef void* noti_ex_event_info_h |
The handle for the notification event information.
- Since :
- 5.5
typedef enum _noti_ex_event_info_type noti_ex_event_info_type_e |
Enumeration for the type of notification event.
- Since :
- 5.5
typedef void* noti_ex_geometry_h |
The handle for the geometry information.
- Since :
- 5.5
Enumeration for notification_ex chat message type.
- Since :
- 5.5
typedef int(* noti_ex_item_group_foreach_child_cb)(noti_ex_item_h handle, void *user_data) |
Called to get the data of child item for each child of the group item.
- Since :
- 5.5
- Remarks:
- handle must not be released
- handle can be used only in the callback. handle will be freed after the callback exists.
- Parameters:
-
[in] handle The notification_ex item handle [in] user_data The user data
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success
typedef void* noti_ex_item_h |
The notification_ex item handle.
- Since :
- 5.5
typedef void* noti_ex_item_info_h |
The notification_ex item_info handle.
- Since :
- 5.5
typedef enum _noti_ex_item_main_type noti_ex_item_main_type_e |
Enumeration for main types of notification_ex item.
- Since :
- 5.5
typedef enum _noti_ex_item_policy noti_ex_item_policy_e |
Enumeration for notification_ex item policy.
- Since :
- 5.5
typedef enum _noti_ex_item_progress_type noti_ex_item_progress_type_e |
Enumeration for notification_ex progress item types.
- Since :
- 5.5
typedef enum _noti_ex_item_type noti_ex_item_type_e |
Enumeration for notification_ex item types.
- Since :
- 5.5
typedef void* noti_ex_led_info_h |
The handle for the LED information.
- Since :
- 5.5
typedef void(* noti_ex_manager_events_add_cb)(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h *added_items, int count, void *user_data) |
Called when a notification addition event is received.
If this callback is set to NULL in event_callbacks, addition events cannot be received.
- Since :
- 5.5
- Parameters:
-
[in] handle The manager handle
The handle is the same handle for which the callback was set[in] info The handle that contains event information
The info can be used only in the callback. To use outside, make a copy.
The info will be freed after the callback exits.[in] added_items The item handles to be added
Each item in added_items should be destroyed with using noti_ex_item_destroy(), then added_items should be released with free().[in] count The count of the item to be added [in] user_data The user data which was registered with callback
typedef void(* noti_ex_manager_events_delete_cb)(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h deleted_item, void *user_data) |
Called when a notification deletion event is received.
If this callback is set to NULL in event_callbacks, deletion events cannot be received.
- Since :
- 5.5
- Parameters:
-
[in] handle The manager handle
The handle is the same handle for which the callback was set[in] info The handle that contains event information
The info can be used only in the callback. To use outside, make a copy.
The info will be freed after the callback exits.[in] deleted_item The item handle to be deleted
The deleted_item must be released using noti_ex_item_destroy().[in] user_data The user data which was registered with callback
typedef void(* noti_ex_manager_events_error_cb)(noti_ex_manager_h handle, noti_ex_error_e error, int request_id, void *user_data) |
Called when an error event is received.
The errors are passed from noti_ex_reporter_send_error(). If this callback is set to NULL in event_callbacks, error events cannot be received.
- Since :
- 5.5
- Parameters:
-
[in] handle The manager handle
The handle is the same handle for which the callback was set[in] error The error type [in] request_id The id of the request that occurred error [in] user_data The user data which was registered with callback
- See also:
- noti_ex_manager_h
- noti_ex_error_e
typedef void(* noti_ex_manager_events_update_cb)(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h updated_item, void *user_data) |
Called when a notification update event is received.
If this callback is set to NULL in event_callbacks, update events cannot be received.
- Since :
- 5.5
- Parameters:
-
[in] handle The manager handle
The handle is the same handle for which the callback was set[in] info The handle that contains event information
The info can be used only in the callback. To use outside, make a copy.
The info will be freed after the callback exits.[in] updated_item The item handle to be updated
The updated_item must be released using noti_ex_item_destroy().[in] user_data The user data which was registered with callback
typedef void* noti_ex_manager_h |
The notification_ex manager handle.
- Since :
- 5.5
typedef void* noti_ex_multi_lang_h |
The notification_ex multi-language item handle.
- Since :
- 5.5
typedef void* noti_ex_padding_h |
The handle for the padding information.
- Since :
- 5.5
typedef void(* noti_ex_reporter_events_error_cb)(noti_ex_reporter_h handle, noti_ex_error_e error, int request_id, void *user_data) |
Called when the error event is received.
The errors are passed from noti_ex_manager_send_error(). If this callback is set to NULL in event_callbacks, error events cannot be received.
- Since :
- 5.5
- Parameters:
-
[in] handle The reporter handle
The handle is the same handle for which the callback was set[in] error The error type [in] request_id The id of the request that occurred error [in] user_data The user data which was registered with callback
- See also:
- noti_ex_reporter_h
- noti_ex_error_e
typedef void(* noti_ex_reporter_events_event_cb)(noti_ex_reporter_h handle, noti_ex_event_info_h info, noti_ex_item_h *items, int count, void *user_data) |
Called when the notification event is received.
If this callback is set to NULL in event_callbacks, notification events cannot be received.
- Since :
- 5.5
- Parameters:
-
[in] handle The reporter handle
The handle is the same handle for which the callback was set[in] info The handle that contains event information
The info can be used only in the callback. To use outside, make a copy.
The info will be freed after the callback exits.[in] items The target items of event
Each item in items must be released using noti_ex_item_destroy(), then items must be released using free().[in] count The count of items [in] user_data The user data which was registered with callback
typedef void* noti_ex_reporter_h |
The notification_ex reporter handle.
- Since :
- 5.5
typedef void* noti_ex_style_h |
The handle for the style information.
- Since :
- 5.5
Enumeration Type Documentation
enum _noti_ex_action_type |
Enumeration for notification_ex action type.
- Since :
- 5.5
enum _noti_ex_error |
Enumeration for notification errors.
- Since :
- 5.5
- Enumerator:
Enumeration for the type of notification event.
- Since :
- 5.5
Enumeration for main types of notification_ex item.
- Since :
- 5.5
- Enumerator:
NOTI_EX_ITEM_MAIN_TYPE_NONE None
NOTI_EX_ITEM_MAIN_TYPE_TITLE Main title. This main type is valid only for items of type NOTI_EX_ITEM_TYPE_TEXT.
NOTI_EX_ITEM_MAIN_TYPE_CONTENTS Main contents. This main type is valid only for items of type NOTI_EX_ITEM_TYPE_TEXT.
NOTI_EX_ITEM_MAIN_TYPE_ICON Main icon. This main type is valid only for items of type NOTI_EX_ITEM_TYPE_IMAGE.
NOTI_EX_ITEM_MAIN_TYPE_BUTTON Main button. This main type is valid only for items of type NOTI_EX_ITEM_TYPE_BUTTON.
enum _noti_ex_item_policy |
enum _noti_ex_item_type |
Enumeration for notification_ex item types.
- Since :
- 5.5
- Enumerator:
Function Documentation
int noti_ex_action_app_control_create | ( | noti_ex_action_h * | handle, |
app_control_h | app_control, | ||
const char * | extra | ||
) |
Creates the notification_ex action handle with app control handle.
The notification_ex can define the action with noti_ex_action_h. If it is necessary to use app control handle for an action, the app control handle must be set in notification_ex action handle. extra can be used to pass user defined data and the extra data can be obtained from an action handle using noti_ex_action_get_extra().
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_action_destroy(). app_control must be released after noti_ex_action_app_control_create() function is called.
- Parameters:
-
[out] handle The notification_ex action handle [in] app_control The app control handle [in] extra The extra data
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- Sample code:
#include <notification_ex.h> { int ret; app_control_h app_control = NULL; noti_ex_action_h appcontrol_action = NULL; app_control_create(&app_control); app_control_set_app_id(app_control, "temp_appid"); ret = noti_ex_action_app_control_create(&appcontrol_action, app_control, NULL); app_control_destroy(app_control); }
int noti_ex_action_app_control_get | ( | noti_ex_action_h | handle, |
app_control_h * | app_control | ||
) |
Gets the app control handle from notification_ex action.
- Since :
- 5.5
- Remarks:
- The app_control should be released using app_control_destroy().
- Parameters:
-
[in] handle The notification_ex action handle [out] app_control The app control handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; app_control_h app_control = NULL; ret = noti_ex_action_app_control_get(appcontrol_action, &app_control); }
int noti_ex_action_app_control_set | ( | noti_ex_action_h | handle, |
app_control_h | app_control | ||
) |
Sets the app control handle for notification_ex action.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex action handle [in] app_control The app control handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; app_control_h app_control = NULL; app_control_create(&app_control); app_control_set_app_id(app_control, "new_appid"); ret = noti_ex_action_app_control_set(appcontrol_action, app_control); }
int noti_ex_action_destroy | ( | noti_ex_action_h | handle | ) |
Releases the notification_ex action handle.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex action handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_action_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_action_destroy(action); }
int noti_ex_action_execute | ( | noti_ex_action_h | handle, |
noti_ex_item_h | item | ||
) |
Executes the action for a notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex action handle [in] item The notification_ex item handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_action_h
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h button_item = NULL; noti_ex_action_h action = NULL; ret = noti_ex_action_visibility_create(&action, NULL); ret = noti_ex_item_button_create(&button_item, "button_id", "button_title"); ret = noti_ex_item_set_action(button_item, action); ret = noti_ex_action_execute(action, button_item); }
int noti_ex_action_get_extra | ( | noti_ex_action_h | handle, |
char ** | extra | ||
) |
Gets the extra data for an action.
- Since :
- 5.5
- Remarks:
- extra must be released using free().
- Parameters:
-
[in] handle The notification_ex action handle [out] extra The extra data
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_action_h
- Sample code:
#include <notification_ex.h> { int ret; char *extra = NULL; ret = noti_ex_action_get_extra(action, &extra); }
int noti_ex_action_get_type | ( | noti_ex_action_h | handle, |
int * | type | ||
) |
Gets the type of an action.
The action type is equal to one of the values of noti_ex_action_type_e
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex action handle [out] type The type of action
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_action_h
- noti_ex_action_type_e
- Sample code:
#include <notification_ex.h> { int ret; int type = NOTI_EX_ACTION_TYPE_NULL; ret = noti_ex_action_get_type(action, &type); if (type == NOTI_EX_ACTION_TYPE_VISIBILITY) { // Do something } }
int noti_ex_action_is_local | ( | noti_ex_action_h | handle, |
bool * | local | ||
) |
Gets the local state of an action.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex action handle [out] local The local state of action
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_action_h
- Sample code:
#include <notification_ex.h> { int ret; bool local; ret = noti_ex_action_is_local(action, &local); }
int noti_ex_action_visibility_create | ( | noti_ex_action_h * | handle, |
const char * | extra | ||
) |
Creates the notification_ex action handle to control visibility.
The notification_ex can define the action with noti_ex_action_h. If it is necessary to control visibility of the notification_ex item, the notification_ex action handle has to be created as a visibility action. extra can be used to pass user defined data and the extra data can be obtained from an action handle using noti_ex_action_get_extra().
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_action_destroy().
- Parameters:
-
[out] handle The notification_ex action handle [in] extra The extra data
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_action_h visibility_action = NULL; ret = noti_ex_action_visibility_create(&visibility_action, NULL); }
int noti_ex_action_visibility_set | ( | noti_ex_action_h | handle, |
const char * | id, | ||
bool | visible | ||
) |
Sets the visibility state for notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex action handle [in] id The id of notification_ex item [in] visible The visibility state
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h button_item = NULL; noti_ex_action_h action = NULL; ret = noti_ex_item_button_create(&button_item, "button_id1", "button_title"); ret = noti_ex_action_visibility_create(&action, NULL); ret = noti_ex_action_visibility_set(action, "button_id1", true); ret = noti_ex_action_visibility_set(action, "button_id2", false); ret = noti_ex_item_set_action(button_item, action); }
int noti_ex_color_create | ( | noti_ex_color_h * | handle, |
unsigned char | a, | ||
unsigned char | r, | ||
unsigned char | g, | ||
unsigned char | b | ||
) |
Creates the notification_ex color handle.
Color information can be defined as a notification_ex color handle with alpha, red, green, blue value.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_color_destroy().
- Parameters:
-
[out] handle The notification_ex color handle [in] a The alpha value [in] r The red value [in] g The green value [in] b The blue value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- See also:
- noti_ex_color_h
- noti_ex_color_destroy()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_color_h color = NULL; ret = noti_ex_color_create(&color, 0, 0, 0, 0); }
int noti_ex_color_destroy | ( | noti_ex_color_h | handle | ) |
Releases a notification_ex color handle.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex color handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_color_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_color_destroy(color); }
int noti_ex_color_get_alpha | ( | noti_ex_color_h | handle, |
unsigned char * | val | ||
) |
Gets the alpha value of a color.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex color handle [out] val The alpha value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_color_h
- noti_ex_color_create()
- Sample code:
#include <notification_ex.h> { int ret; unsigned char alpha; ret = noti_ex_color_get_alpha(color, &alpha); }
int noti_ex_color_get_blue | ( | noti_ex_color_h | handle, |
unsigned char * | val | ||
) |
Gets the blue value of a color.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex color handle [out] val The blue value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_color_h
- noti_ex_color_create()
- Sample code:
#include <notification_ex.h> { int ret; unsigned char blue; ret = noti_ex_color_get_blue(color, &blue); }
int noti_ex_color_get_green | ( | noti_ex_color_h | handle, |
unsigned char * | val | ||
) |
Gets the green value of a color.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex color handle [out] val The green value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_color_h
- noti_ex_color_create()
- Sample code:
#include <notification_ex.h> { int ret; unsigned char green; ret = noti_ex_color_get_green(color, &green); }
int noti_ex_color_get_red | ( | noti_ex_color_h | handle, |
unsigned char * | val | ||
) |
Gets the red value of a color.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex color handle [out] val The red value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_color_h
- noti_ex_color_create()
- Sample code:
#include <notification_ex.h> { int ret; unsigned char red; ret = noti_ex_color_get_red(color, &red); }
int noti_ex_event_info_clone | ( | noti_ex_event_info_h | handle, |
noti_ex_event_info_h * | cloned_handle | ||
) |
Clones the notification event info handle.
The event for notification item is defined as notification event info handle.
- Since :
- 5.5
- Remarks:
- cloned_handle must be released using noti_ex_event_info_destroy().
- Parameters:
-
[in] handle The notification event info handle to be cloned [out] cloned_handle The notification event info handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- Sample code:
#include <notification_ex.h> void _manager_events_update_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h updated_item, void *user_data) { int ret; noti_ex_event_info_h cloned = NULL; ret = noti_ex_event_info_clone(info, &cloned); }
int noti_ex_event_info_destroy | ( | noti_ex_event_info_h | handle | ) |
Releases the notification event info handle.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification event info handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_event_info_h
- Sample code:
#include <notification_ex.h> void _manager_events_update_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h updated_item, void *user_data) { int ret; noti_ex_event_info_h cloned = NULL; ret = noti_ex_event_info_clone(info, &cloned); ret = noti_ex_event_info_destroy(cloned); }
int noti_ex_event_info_get_channel | ( | noti_ex_event_info_h | handle, |
char ** | channel | ||
) |
Gets the channel of an event.
- Since :
- 5.5
- Remarks:
- channel must be released using free().
- Parameters:
-
[in] handle The notification event info handle [out] channel The channel of event
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; char *channel = NULL; ret = noti_ex_event_info_get_channel(event_handle, &channel); }
int noti_ex_event_info_get_event_type | ( | noti_ex_event_info_h | handle, |
noti_ex_event_info_type_e * | event_type | ||
) |
Gets the type of an event.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification event info handle [out] event_type The type of event
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_event_info_type_e type; ret = noti_ex_event_info_get_event_type(event_handle, &type); }
int noti_ex_event_info_get_item_id | ( | noti_ex_event_info_h | handle, |
char ** | item_id | ||
) |
Gets the id of a notification_ex item.
- Since :
- 5.5
- Remarks:
- item_id must be released using free().
- Parameters:
-
[in] handle The notification event info handle [out] item_id The id of notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; char *item_id = NULL; ret = noti_ex_event_info_get_item_id(event_handle, &item_id); }
int noti_ex_event_info_get_owner | ( | noti_ex_event_info_h | handle, |
char ** | owner | ||
) |
Gets the app id of event owner.
- Since :
- 5.5
- Remarks:
- owner must be released using free().
- Parameters:
-
[in] handle The notification event info handle [out] owner The app id of event owner
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; char *owner = NULL; ret = noti_ex_event_info_get_owner(event_handle, &owner); }
int noti_ex_event_info_get_request_id | ( | noti_ex_event_info_h | handle, |
int * | req_id | ||
) |
Gets the id of request for an event.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification event info handle [out] req_id The id of request for event
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; int request_id; ret = noti_ex_event_info_get_request_id(event_handle, &request_id); }
int noti_ex_geometry_create | ( | noti_ex_geometry_h * | handle, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
Creates the notification_ex geometry handle.
Geometry information can be defined as a notification_ex geometry handle with x, y, width and height value.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_geometry_destroy().
- Parameters:
-
[out] handle The notification_ex geometry handle [in] x The x value [in] y The y value [in] w The width value [in] h The height value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_geometry_h geometry = NULL; ret = noti_ex_geometry_create(&geometry, 0, 0, 0, 0); }
int noti_ex_geometry_destroy | ( | noti_ex_geometry_h | handle | ) |
Releases the notification_ex geometry handle.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex geometry handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_geometry_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_geometry_destroy(geometry); }
int noti_ex_geometry_get_height | ( | noti_ex_geometry_h | handle, |
int * | val | ||
) |
Gets the height value.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex geometry handle [out] val The height value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; int height; ret = noti_ex_geometry_get_height(geometry, &height); }
int noti_ex_geometry_get_width | ( | noti_ex_geometry_h | handle, |
int * | val | ||
) |
Gets the width value.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex geometry handle [out] val The width value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; int width; ret = noti_ex_geometry_get_width(geometry, &width); }
int noti_ex_geometry_get_x | ( | noti_ex_geometry_h | handle, |
int * | val | ||
) |
Gets the x position value.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex geometry handle [out] val The x value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; int x; ret = noti_ex_geometry_get_x(geometry, &x); }
int noti_ex_geometry_get_y | ( | noti_ex_geometry_h | handle, |
int * | val | ||
) |
Gets the y position value.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex geometry handle [out] val The y value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; int y; ret = noti_ex_geometry_get_y(geometry, &y); }
int noti_ex_item_add_receiver | ( | noti_ex_item_h | handle, |
const char * | receiver_group | ||
) |
Adds the receiver group of a notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] receiver_group The receiver group
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_add_receiver(item_handle, NOTI_EX_RECEIVER_GROUP_INDICATOR); }
int noti_ex_item_button_create | ( | noti_ex_item_h * | handle, |
const char * | id, | ||
const char * | title | ||
) |
Creates the notification_ex item handle with a button.
The notification_ex item is the predefined type of notifications. The notification can be created with one item or group of items. If the user wants to display the notification with a button, the notification_ex handle has to be created as a button item.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_item_destroy().
- Parameters:
-
[out] handle The notification_ex item handle [in] id The id of notification_ex item [in] title The title of notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- See also:
- noti_ex_item_h
- noti_ex_item_destroy()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h button_item = NULL; ret = noti_ex_item_button_create(&button_item, "button_id", "button_title"); }
int noti_ex_item_button_get_title | ( | noti_ex_item_h | handle, |
char ** | title | ||
) |
Gets the title of a button item.
- Since :
- 5.5
- Remarks:
- title must be released using free().
-
If the multi-language handle is set by noti_ex_item_button_set_multi_language_title(),
it will return a multi-language title.
- Parameters:
-
[in] handle The notification_ex item handle [out] title The title of notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; char *title = NULL; ret = noti_ex_item_button_get_title(button_item, &title); }
int noti_ex_item_button_set_multi_language_title | ( | noti_ex_item_h | handle, |
noti_ex_multi_lang_h | multi | ||
) |
Sets the multi-language handle.
- Since :
- 5.5
- Remarks:
- After the multi-language handle setted successfully, noti_ex_item_button_get_title()
will return the multi-language text. -
The noti_ex_item_h handle keeps its own copy of noti_ex_multi_lang_h.
Therefore, you can destroy multi after it was set for handle. - You can pass NULL to multi, if you want to remove multi-language text.
- Parameters:
-
[in] handle The notification_ex button item handle [in] multi The multi-language handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h button_item = NULL; noti_ex_multi_lang_h multi; ret = noti_ex_item_button_create(&button_item, "button_id", "button_title"); ret = noti_ex_multi_lang_create(&multi, "_IDS_NOTI_TEST_", "Hi %d I'm %s", 33, "test"); ret = noti_ex_item_button_set_multi_language_title(button_item, multi); noti_ex_multi_lang_destroy(multi); }
int noti_ex_item_chat_message_create | ( | noti_ex_item_h * | handle, |
const char * | id, | ||
noti_ex_item_h | name, | ||
noti_ex_item_h | text, | ||
noti_ex_item_h | image, | ||
noti_ex_item_h | time, | ||
noti_ex_item_chat_message_type_e | message_type | ||
) |
Creates the notification_ex item handle for the chat message.
The notification_ex item is the predefined type of notifications. The notification can be created with one item or group of items. If the user wants to create a chat message notification, notification_ex handle has to be created as a chat message item.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_item_destroy(). name, text, image and time must not be released if the function returns NOTI_EX_ERROR_NONE. name, text, image and time will be released when handle is released. name and time are mandatory (cannot be null). Both text and image cannot be null.
- Parameters:
-
[out] handle The noti ex item handle [in] id The id of notification_ex item [in] name The notification_ex item handle for name [in] text The notification_ex item handle for text [in] image The notification_ex item handle for image [in] time The notification_ex item handle for time [in] message_type The type of chat message
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- See also:
- noti_ex_item_h
- noti_ex_item_chat_message_type_e
- noti_ex_item_text_create()
- noti_ex_item_image_create()
- noti_ex_item_destroy()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h chatmessage_item = NULL; noti_ex_item_h name_handle = NULL; noti_ex_item_h text_handle = NULL; noti_ex_item_h image_handle = NULL; noti_ex_item_h time_handle = NULL; time_t current_time; noti_ex_item_text_create(&name_handle, "name_id", "name", NULL); noti_ex_item_text_create(&text_handle, "text_id", "text", NULL); noti_ex_item_image_create(&image_handle, "image_id", APP_IMAGE_FULL_PATH); time(¤t_time); noti_ex_item_time_create(&time_handle, "time_id", current_time); ret = noti_ex_item_chat_message_create(&chatmessage_item, "message_id", name_handle, text_handle, image_handle, time_handle, NOTI_EX_ITEM_CHAT_MESSAGE_TYPE_USER); }
int noti_ex_item_chat_message_get_image | ( | noti_ex_item_h | handle, |
noti_ex_item_h * | image | ||
) |
Gets the notification_ex item handle for the chat message image.
The image is a notification_ex item handle created with noti_ex_item_image_create().
- Since :
- 5.5
- Remarks:
- image must be released using noti_ex_item_destroy().
- The image is available until handle is released.
- Parameters:
-
[in] handle The notification_ex item handle [out] image The notification_ex item handle with image
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h image_handle = NULL; char *image_path = NULL; ret = noti_ex_item_chat_message_get_image(chatmessage_item, &image_handle); ret = noti_ex_item_image_get_image_path(image_handle, &image_path); }
int noti_ex_item_chat_message_get_message_type | ( | noti_ex_item_h | handle, |
noti_ex_item_chat_message_type_e * | message_type | ||
) |
Gets the type of chat message.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [out] message_type The type of chat message
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_chat_message_type_e type; ret = noti_ex_item_chat_message_get_message_type(chatmessage_item, &type); }
int noti_ex_item_chat_message_get_name | ( | noti_ex_item_h | handle, |
noti_ex_item_h * | name | ||
) |
Gets the notification_ex item handle for the chat message name.
The name is a notification_ex item handle created with noti_ex_item_text_create().
- Since :
- 5.5
- Remarks:
- name must be released using noti_ex_item_destroy().
- The name is available until handle is released.
- Parameters:
-
[in] handle The notification_ex item handle [out] name The notification_ex item handle with name
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h name_handle = NULL; char *name = NULL; ret = noti_ex_item_chat_message_get_name(chatmessage_item, &name_handle); ret = noti_ex_item_text_get_contents(name_handle, &name); }
int noti_ex_item_chat_message_get_text | ( | noti_ex_item_h | handle, |
noti_ex_item_h * | text | ||
) |
Gets the notification_ex item handle for the chat message text.
The text is a notification_ex item handle created with noti_ex_item_text_create().
- Since :
- 5.5
- Remarks:
- text must be released using noti_ex_item_destroy().
- The text is available until handle is released.
- Parameters:
-
[in] handle The notification_ex item handle [out] text The notification_ex item handle with text
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h text_handle = NULL; char *text = NULL; ret = noti_ex_item_chat_message_get_text(chatmessage_item, &text_handle); ret = noti_ex_item_text_get_contents(text_handle, &text); }
int noti_ex_item_chat_message_get_time | ( | noti_ex_item_h | handle, |
noti_ex_item_h * | time | ||
) |
Gets the notification_ex item handle for the chat message time.
The time is notification_ex item handle created with noti_ex_item_time_create().
- Since :
- 5.5
- Remarks:
- time must be released using noti_ex_item_destroy().
- The time is available until handle is released.
- Parameters:
-
[in] handle The notification_ex item handle [out] time The notification_ex item handle with time
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h time_handle = NULL; time_t time_info; ret = noti_ex_item_chat_message_get_time(chatmessage_item, &time_handle); ret = noti_ex_item_time_get_time(time_handle, &time_info); }
int noti_ex_item_check_type_exist | ( | noti_ex_item_h | handle, |
int | type, | ||
bool * | exist | ||
) |
Checks if an item of a specified type is included in a notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] type The type of a notification_ex item [out] exist The state of if a type is included
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_item_type_e
- Sample code:
#include <notification_ex.h> { int ret; int type = NOTI_EX_ITEM_TYPE_ENTRY; bool exist; ret = noti_ex_item_check_type_exist(item_handle, type, &exist); }
int noti_ex_item_checkbox_create | ( | noti_ex_item_h * | handle, |
const char * | id, | ||
const char * | title, | ||
bool | checked | ||
) |
Creates the notification_ex item handle with checkbox.
The notification_ex item is the predefined type of notifications. The notification can be created with one item or group of items. If the user wants to display the notification with a checkbox, the notification_ex handle has to be created as a checkbox item.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_item_destroy().
- Parameters:
-
[out] handle The notification_ex item handle [in] id The id of notification_ex item [in] title The title of notification_ex item [in] checked The check state of checkbox
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- See also:
- noti_ex_item_h
- noti_ex_item_destroy()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h checkbox_item = NULL; ret = noti_ex_item_checkbox_create(&checkbox_item, "checkbox_id", "checkbox_title", false); }
int noti_ex_item_checkbox_get_check_state | ( | noti_ex_item_h | handle, |
bool * | checked | ||
) |
Gets the check state of a checkbox.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [out] checked The check state of a checkbox
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; bool checked; ret = noti_ex_item_checkbox_get_check_state(checkbox_item, &checked); }
int noti_ex_item_checkbox_get_title | ( | noti_ex_item_h | handle, |
char ** | title | ||
) |
Gets the title of a checkbox.
- Since :
- 5.5
- Remarks:
- title must be released using free().
-
If the multi-language handle is set by noti_ex_item_checkbox_set_multi_language_title(),
it will return a multi-language title.
- Parameters:
-
[in] handle The notification_ex item handle [out] title The title of notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- See also:
- noti_ex_item_h
- noti_ex_item_checkbox_create()
- noti_ex_item_checkbox_set_multi_language_title()
- Sample code:
#include <notification_ex.h> { int ret; char *title = NULL; ret = noti_ex_item_checkbox_get_title(checkbox_item, &title); }
int noti_ex_item_checkbox_set_check_state | ( | noti_ex_item_h | handle, |
bool | checked | ||
) |
Sets the check state of a checkbox.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] checked The check state of a checkbox
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_checkbox_set_check_state(checkbox_item, true); }
int noti_ex_item_checkbox_set_multi_language_title | ( | noti_ex_item_h | handle, |
noti_ex_multi_lang_h | multi | ||
) |
Sets the multi-language handle.
- Since :
- 5.5
- Remarks:
- After the multi-language handle setted successfully,
noti_ex_item_checkbox_get_title() will return the multi-language text. -
The noti_ex_item_h handle keeps its own copy of noti_ex_multi_lang_h.
Therefore, you can destroy multi after it was set for @ handle. - You can pass NULL to multi, if you want to remove the multi-language text.
- Parameters:
-
[in] handle The notification_ex item handle [in] multi The multi-language handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- See also:
- noti_ex_item_h
- noti_ex_item_checkbox_create()
- noti_ex_item_checkbox_get_title()
- noti_ex_multi_lang_create()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h checkbox_item = NULL; noti_ex_multi_lang_h multi; ret = noti_ex_item_checkbox_create(&checkbox_item, "checkbox_id", "checkbox_title", false); ret = noti_ex_multi_lang_create(&multi, "_IDS_NOTI_TEST_", "Hi %d I'm %s", 33, "test"); ret = noti_ex_item_checkbox_set_multi_language_title(checkbox_item, multi); noti_ex_multi_lang_destroy(multi); }
int noti_ex_item_destroy | ( | noti_ex_item_h | handle | ) |
Releases the notification_ex item handle.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_destroy(item_handle); }
int noti_ex_item_entry_create | ( | noti_ex_item_h * | handle, |
const char * | id | ||
) |
Creates the notification_ex item handle for an entry item.
The notification_ex item is the predefined type of notifications. The notification can be created with one item or group of items. If the user wants to get the text input directly from the notification, the notification_ex handle has to be created as an entry item.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_item_destroy().
- Parameters:
-
[out] handle The notification_ex item handle [in] id The id of notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- See also:
- noti_ex_item_h
- noti_ex_item_destroy()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h entry_item = NULL; ret = noti_ex_item_entry_create(&entry_item, "entry_id"); }
int noti_ex_item_entry_get_text | ( | noti_ex_item_h | handle, |
char ** | text | ||
) |
Gets the text of an entry item.
- Since :
- 5.5
- Remarks:
- text must be released using free().
-
If the multi-language handle is set by
noti_ex_item_entry_set_multi_language(), it will return a multi-language text.
- Parameters:
-
[in] handle The notification_ex item handle [out] text The text of entry item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; char *text = NULL; ret = noti_ex_item_entry_get_text(entry_item, &text); }
int noti_ex_item_entry_set_multi_language | ( | noti_ex_item_h | handle, |
noti_ex_multi_lang_h | multi | ||
) |
Sets the multi-language handle.
- Since :
- 5.5
- Remarks:
- After the multi-language handle setted successfully,
noti_ex_item_entry_get_text() will return the multi-language text.
-
The noti_ex_item_h handle keeps its own copy of noti_ex_multi_lang_h.
Therefore, you can destroy multi after it was set for handle. - You can pass NULL to multi, if you want to remove the multi-language text.
- Parameters:
-
[in] handle The notification_ex item handle [in] multi The multi-language handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- See also:
- noti_ex_item_h
- noti_ex_item_text_create()
- noti_ex_item_text_set_multi_language()
- noti_ex_item_text_get_contents()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h entry_item = NULL; noti_ex_multi_lang_h multi; ret = noti_ex_item_entry_create(&entry_item, "entry_id"); ret = noti_ex_item_entry_set_multi_language(entry_item, multi); noti_ex_multi_lang_destroy(multi); }
int noti_ex_item_entry_set_text | ( | noti_ex_item_h | handle, |
const char * | text | ||
) |
Sets the text of an entry item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] text The text of entry item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_entry_set_text(entry_item, "entry_text"); }
int noti_ex_item_find_by_id | ( | noti_ex_item_h | handle, |
const char * | id, | ||
noti_ex_item_h * | item | ||
) |
Finds the notification_ex item handle by notification_ex item id.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] id The id of notification_ex item [in] item The notification_ex item handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h item = NULL; ret = noti_ex_item_find_by_id(item_handle, "find_id", &item); }
int noti_ex_item_find_by_main_type | ( | noti_ex_item_h | handle, |
int | type, | ||
noti_ex_item_h * | item | ||
) |
Finds the notification item of the specified main type.
Finds the item that matches the main type among the group items.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_item_destroy().
- Parameters:
-
[in] handle The notification_ex item handle [in] type The main type [out] item The notification_ex item handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_item_main_type_e
- Sample code:
#include <notification_ex.h> { noti_ex_item_h text_item = NULL; int type = NOTI_EX_ITEM_MAIN_TYPE_TITLE; int ret; ret = noti_ex_item_find_by_main_type(item_handle, type, &text_item); if (text_item != NULL) { // Do something } }
int noti_ex_item_get_action | ( | noti_ex_item_h | handle, |
noti_ex_action_h * | action | ||
) |
Gets the action for a notification_ex item.
The action is defined as notification_ex action handle.
- Since :
- 5.5
- Remarks:
- action must be released using noti_ex_action_destroy().
- Parameters:
-
[in] handle The notification_ex item handle [out] action The notification_ex action handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_action_h
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_action_h action = NULL; ret = noti_ex_item_get_action(item_handle, &action); }
int noti_ex_item_get_channel | ( | noti_ex_item_h | handle, |
char ** | channel | ||
) |
Gets the channel of a notification_ex item.
- Since :
- 5.5
- Remarks:
- channel must be released using free().
- Parameters:
-
[in] handle The notification_ex item handle [out] channel The channel of a notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; char *channel; ret = noti_ex_item_get_channel(item_handle, &channel); }
int noti_ex_item_get_enable | ( | noti_ex_item_h | handle, |
bool * | enable | ||
) |
Gets the enabled state of a notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] enable The enable state
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; bool enable; ret = noti_ex_item_get_enable(item_handle, &enable); }
int noti_ex_item_get_extension_data | ( | noti_ex_item_h | handle, |
const char * | key, | ||
bundle ** | value | ||
) |
Gets the extension data.
- Since :
- 5.5
- Remarks:
- The value should be released using bundle_free().
- Parameters:
-
[in] handle The notification_ex item handle [in] key The key [out] value The bundle data
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; char *key = "ADDITIONAL_DATA_KEY"; bundle *b; ret = noti_ex_item_get_extension_data(item_handle, key, &b); ... bundle_free(b); }
int noti_ex_item_get_id | ( | noti_ex_item_h | handle, |
char ** | id | ||
) |
Gets the id of a notification_ex item.
- Since :
- 5.5
- Remarks:
- id must be released using free().
- Parameters:
-
[in] handle The notification_ex item handle [out] id The id of notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; char *id = NULL; ret = noti_ex_item_get_id(item_handle, &id); }
int noti_ex_item_get_info | ( | noti_ex_item_h | handle, |
noti_ex_item_info_h * | info | ||
) |
Gets the information of a notification_ex item.
The information of notification_ex item is defined as notification_ex item info handle.
- Since :
- 5.5
- Remarks:
- info should not be released.
- info is available until handle is released.
- Parameters:
-
[in] handle The notification_ex item handle [out] info The notification_ex item info handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_item_info_h
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_info_h item_info = NULL; ret = noti_ex_item_get_info(item_handle, &item_info); }
int noti_ex_item_get_led_info | ( | noti_ex_item_h | handle, |
noti_ex_led_info_h * | led | ||
) |
Gets the LED information of a notification_ex item.
The LED information is defined as notification_ex LED info handle
- Since :
- 5.5
- Remarks:
- led must be released using noti_ex_led_info_destroy().
- Parameters:
-
[in] handle The notification_ex item handle [out] led The notification_ex LED info item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_led_info_h
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_led_info_h led_info = NULL; ret = noti_ex_item_get_led_info(item_handle, &led_info); }
int noti_ex_item_get_main_type | ( | noti_ex_item_h | handle, |
int * | type | ||
) |
Gets the main type of a notification item.
The type is equal to one of the values of noti_ex_item_main_type_e.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [out] type The main type
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_item_main_type_e
- Sample code:
#include <notification_ex.h> { int ret; int type = NOTI_EX_ITEM_MAIN_TYPE_NONE; ret = noti_ex_item_get_main_type(item_handle, &type); if (type == NOTI_EX_ITEM_MAIN_TYPE_TITLE) { // Do something } }
int noti_ex_item_get_ongoing_state | ( | noti_ex_item_h | handle, |
bool * | ongoing | ||
) |
Gets the value indicating whether a notification is currently ongoing.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [out] ongoing The state of ongoing
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; bool ongoing; ret = noti_ex_item_get_ongoing_state(item_handle, &ongoing); }
int noti_ex_item_get_policy | ( | noti_ex_item_h | handle, |
int * | policy | ||
) |
Gets the policy of a notification_ex item.
policy is equal to values of noti_ex_item_policy_e combined with bitwise 'or'.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [out] policy The policy of a notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_item_policy_e
- Sample code:
#include <notification_ex.h> { int ret; int policy; ret = noti_ex_item_get_policy(item_handle, &policy); }
int noti_ex_item_get_receiver_list | ( | noti_ex_item_h | handle, |
char *** | list, | ||
int * | count | ||
) |
Gets the list of receiver group of a notification_ex item.
- Since :
- 5.5
- Remarks:
- Each member of the list must be released using free(), then the list must be released using free().
- Parameters:
-
[in] handle The notification_ex item handle [out] list The list of receiver group [out] count The count of list
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; char **list = NULL; int count; ret = noti_ex_item_get_receiver_list(item_handle, &list, &count); }
int noti_ex_item_get_sender_app_id | ( | noti_ex_item_h | handle, |
char ** | id | ||
) |
Gets the sender app id of a notification_ex item.
- Since :
- 5.5
- Remarks:
- id must be released using free().
- Parameters:
-
[in] handle The notification_ex item handle [out] id The sender app id of a notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; char *app_id = NULL; ret = noti_ex_item_get_sender_app_id(item_handle, &app_id); }
int noti_ex_item_get_sound_path | ( | noti_ex_item_h | handle, |
char ** | path | ||
) |
Gets the sound path of a notification_ex item.
- Since :
- 5.5
- Remarks:
- path must be released using free().
- Parameters:
-
[in] handle The notification_ex item handle [out] path The absolute path of sound for notification_ex item If not set, you will get NULL. If set default, you will get NOTI_EX_SOUND_TYPE_DEFAULT.
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; char *path = NULL; ret = noti_ex_item_get_sound_path(item_handle, &path); }
int noti_ex_item_get_style | ( | noti_ex_item_h | handle, |
noti_ex_style_h * | style | ||
) |
Gets the style of a notification_ex item.
The style is defined as notification_ex style handle.
- Since :
- 5.5
- Remarks:
- style must be released using noti_ex_style_destroy().
- Parameters:
-
[in] handle The notification_ex item handle [out] style The notification_ex style handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_style_h
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_style_h style = NULL; ret = noti_ex_item_get_style(item_handle, &style); }
int noti_ex_item_get_tag | ( | noti_ex_item_h | handle, |
char ** | tag | ||
) |
Gets the tag of a notification_ex item.
- Since :
- 5.5
- Remarks:
- tag must be released using free().
- Parameters:
-
[in] handle The notification_ex item handle [out] tag The tag of a notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; char *tag = NULL; ret = noti_ex_item_get_tag(item_handle, &tag); }
int noti_ex_item_get_type | ( | noti_ex_item_h | handle, |
int * | type | ||
) |
Gets the type of notification_ex item.
The item type is equal to one of the values of noti_ex_item_type_e.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [out] type The type of notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_item_type_e
- Sample code:
#include <notification_ex.h> { int ret; int type = NOTI_EX_ITEM_TYPE_NULL; ret = noti_ex_item_get_type(item_handle, &type); if (type == NOTI_EX_ITEM_TYPE_BUTTON) { // Do something } }
int noti_ex_item_get_vibration_path | ( | noti_ex_item_h | handle, |
char ** | path | ||
) |
Gets the vibration path of a notification_ex item.
- Since :
- 5.5
- Remarks:
- path must be released using free().
- Parameters:
-
[in] handle The notification_ex item handle [out] path The absolute path of vibration for a notification_ex item If not set, you will get NULL. If set default, you will get NOTI_EX_VIBRATION_TYPE_DEFAULT.
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; char *path = NULL; ret = noti_ex_item_get_vibration_path(item_handle, &path); }
int noti_ex_item_get_visible | ( | noti_ex_item_h | handle, |
bool * | visible | ||
) |
Gets the visibility state of a notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [out] visible The visible state
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; bool visible; ret = noti_ex_item_get_visible(item_handle, &visible); }
int noti_ex_item_group_add_child | ( | noti_ex_item_h | handle, |
noti_ex_item_h | child | ||
) |
Adds the child to the group item.
- Since :
- 5.5
- Remarks:
- child must not be released after calling this function
- Parameters:
-
[in] handle The notification_ex item handle [in] child The child notification_ex item handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h group_item = NULL; noti_ex_item_h child_item = NULL; ret = noti_ex_item_group_create(&group_item, "group_id"); ret = noti_ex_item_button_create(&child_item, "button_id", "button_title"); ret = noti_ex_item_group_add_child(group_item, child_item); noti_ex_item_destroy(child_item); }
int noti_ex_item_group_create | ( | noti_ex_item_h * | handle, |
const char * | id | ||
) |
Creates the group of notification_ex items.
The notification_ex item is the predefined type of notifications. The notification can be created with one item or group of items. If the user wants to make the group of notification_ex items, the notification_ex handle has to be created as a group item.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_item_destroy().
- Parameters:
-
[out] handle The notification_ex item handle [in] id The id of notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- See also:
- noti_ex_item_h
- noti_ex_item_destroy()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h group_item = NULL; ret = noti_ex_item_group_create(&group_item, "group_id"); }
int noti_ex_item_group_foreach_child | ( | noti_ex_item_h | handle, |
noti_ex_item_group_foreach_child_cb | callback, | ||
void * | user_data | ||
) |
Gets the data of children from the group item.
The noti_ex_item_group_foreach_child_cb() is called for each child of the group item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] callback The callback function to get the children data [in] user_data The user data to be passed to the callback function
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> int _ex_item_group_foreach_child_cb(noti_ex_item_h handle, void *user_data) { return 0; } { int ret; noti_ex_item_h group_item = NULL; noti_ex_item_h child_item = NULL; ret = noti_ex_item_group_create(&group_item, "group_id"); ret = noti_ex_item_button_create(&child_item, "button_id", "button_title"); ret = noti_ex_item_group_add_child(group_item, child_item); noti_ex_item_destroy(child_item); ret = noti_ex_item_group_foreach_child(group_item, _ex_item_group_foreach_child_cb, NULL); }
int noti_ex_item_group_get_app_label | ( | noti_ex_item_h | handle, |
char ** | label | ||
) |
Gets the label of application.
- Since :
- 5.5
- Remarks:
- label must be released using free().
- Parameters:
-
[in] handle The notification_ex item handle [out] label The label of application
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; char *label = NULL; ret = noti_ex_item_group_get_app_label(group_item, &label); }
int noti_ex_item_group_is_vertical | ( | noti_ex_item_h | handle, |
bool * | vertical | ||
) |
Gets the vertical state of group item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [out] vertical The vertical state of group item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; bool vertical; ret = noti_ex_item_group_is_vertical(group_item, &vertical); }
int noti_ex_item_group_remove_child | ( | noti_ex_item_h | handle, |
const char * | item_id | ||
) |
Removes the child from the group item by notification_ex item id.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] item_id The id of notification_ex item that is child of group item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_group_remove_child(group_item, "child_id"); }
int noti_ex_item_group_set_direction | ( | noti_ex_item_h | handle, |
bool | vertical | ||
) |
Sets the direction of children in the group item.
If vertical state is true, the children of group item are placed vertically. If vertical state is false, the children of group item are placed horizontally.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] vertical The vertical state of group item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_group_set_direction(group_item, true); }
int noti_ex_item_image_create | ( | noti_ex_item_h * | handle, |
const char * | id, | ||
const char * | image_path | ||
) |
Creates the notification_ex item handle with an image.
The notification_ex item is the predefined type of notifications. The notification can be created with one item or group of items. If the user wants to display the notification with an image, the notification_ex handle has to be created as an image item.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_item_destroy().
- Parameters:
-
[out] handle The notification_ex item handle [in] id The id of notification_ex item [in] image_path The absolute path of image
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- See also:
- noti_ex_item_h
- noti_ex_item_destroy()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h image_item = NULL; char *image_path[BUFLEN]; char *shared_path = app_get_shared_resource_path(); snprintf(image_path, BUFLEN, "%simage.png", shared_path); free(shared_path); ret = noti_ex_item_image_create(&image_item, "image_id", image_path); }
int noti_ex_item_image_get_image_path | ( | noti_ex_item_h | handle, |
char ** | image_path | ||
) |
Gets the path of image.
- Since :
- 5.5
- Remarks:
- image_path must be released using free().
- Parameters:
-
[in] handle The notification_ex item handle [out] image_path The absolute path of image
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; char *path = NULL; ret = noti_ex_item_image_get_image_path(image_item, &path); }
int noti_ex_item_info_get_delete_time | ( | noti_ex_item_info_h | handle, |
int * | delete_time | ||
) |
Gets the time to delete the notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item info handle [out] delete_time The time to delete notification, in seconds
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; int delete_time; noti_ex_item_info_h item_info = NULL; ret = noti_ex_item_get_info(item_handle, &item_info); ret = noti_ex_item_info_get_delete_time(item_info, &delete_time); }
int noti_ex_item_info_get_hide_time | ( | noti_ex_item_info_h | handle, |
int * | hide_time | ||
) |
Gets the time to hide the notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item info handle [out] hide_time The time to hide notification, in seconds
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; int hide_time; noti_ex_item_info_h item_info = NULL; ret = noti_ex_item_get_info(item_handle, &item_info); ret = noti_ex_item_info_get_hide_time(item_info, &hide_time); }
int noti_ex_item_info_get_time | ( | noti_ex_item_info_h | handle, |
time_t * | time | ||
) |
Gets the time information.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item info handle [out] time The time information
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; time_t time; noti_ex_item_info_h item_info = NULL; ret = noti_ex_item_get_info(item_handle, &item_info); ret = noti_ex_item_info_get_time(item_info, &time); }
int noti_ex_item_info_set_delete_time | ( | noti_ex_item_info_h | handle, |
int | delete_time | ||
) |
Sets the time to delete the notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item info handle [in] delete_time The time to delete notification, in seconds
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_info_h item_info = NULL; ret = noti_ex_item_get_info(item_handle, &item_info); ret = noti_ex_item_info_set_delete_time(item_info, 5); }
int noti_ex_item_info_set_hide_time | ( | noti_ex_item_info_h | handle, |
int | hide_time | ||
) |
Sets the time to hide the notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item info handle [in] hide_time The time to hide notification, in seconds
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_info_h item_info = NULL; ret = noti_ex_item_get_info(item_handle, &item_info); ret = noti_ex_item_info_set_hide_time(action, 5); }
int noti_ex_item_input_selector_create | ( | noti_ex_item_h * | handle, |
const char * | id | ||
) |
Creates the notification_ex item handle with input selector.
The notification_ex item is the predefined type of notifications. The notification can be created with one item or group of items. If the user wants to be display the notification with selector to select predefined input, the notification_ex handle has to be created as an input selector item.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_item_destroy().
- Parameters:
-
[out] handle The notification_ex item handle [in] id The id of notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- See also:
- noti_ex_item_h
- noti_ex_item_destroy()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h selector_item = NULL; ret = noti_ex_item_input_selector_create(&selector_item, "selector_id"); }
int noti_ex_item_input_selector_get_contents | ( | noti_ex_item_h | handle, |
char *** | list, | ||
int * | count | ||
) |
Gets the contents that can be selected by input selector.
- Since :
- 5.5
- Remarks:
- Each item in the list must be released using free(), then the list must be released using free().
-
If the multi-language handle is set by noti_ex_item_input_selector_set_multi_language_contents(),
it will return a multi-language contents.
- Parameters:
-
[in] handle The notification_ex item handle [out] list The list of contents [out] count The count of contents
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- See also:
- noti_ex_item_h
- noti_ex_item_input_selector_create()
- noti_ex_item_input_selector_set_contents()
- noti_ex_item_input_selector_set_multi_language_contents()
- Sample code:
#include <notification_ex.h> { int ret; char **list = NULL; int count = 0; ret = noti_ex_item_input_selector_get_contents(selector_item, &list, &count); }
int noti_ex_item_input_selector_set_contents | ( | noti_ex_item_h | handle, |
const char ** | contents, | ||
int | count | ||
) |
Sets the contents for input selector item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] contents The list of contents [in] count The count of contents
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; 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); }
int noti_ex_item_input_selector_set_multi_language_contents | ( | noti_ex_item_h | handle, |
noti_ex_multi_lang_h * | multi_language_list, | ||
int | count | ||
) |
Sets the multi-language contents for input selector item.
- Since :
- 5.5
- Remarks:
- After the multi-language handle setted successfully,
noti_ex_item_input_selector_get_contents() will return the multi-language text.
-
The noti_ex_item_h handle keeps its own copy of noti_ex_multi_lang_h list.
Therefore, you can destroy multi_language_list after it was set for handle. - You can pass NULL to multi_language_list, if you want to remove the multi-language text.
- Parameters:
-
[in] handle The notification_ex item handle [in] multi_language_list The list of noti_ex_multi_lang_h [in] count The count of contents
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_item_input_selector_create()
- noti_ex_item_input_selector_get_contents()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_multi_lang_h *contents[] = {multi1, multi2, multi3}; int count = 3; ret = noti_ex_item_input_selector_set_multi_language_contents(selector_item, contents, count); }
int noti_ex_item_progress_create | ( | noti_ex_item_h * | handle, |
const char * | id, | ||
float | min, | ||
float | current, | ||
float | max | ||
) |
Creates the notification_ex item handle with progress.
The notification_ex item is the predefined type of notifications. The notification can be created with one item or group of items. If the user wants to be display the notification with progress, the notification_ex handle has to be created as a progress item.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_item_destroy().
- Parameters:
-
[out] handle The notification_ex item handle [in] id The id of notification_ex item [in] min The minimum value of progress [in] current The current value of progress [in] max The maximum value of progress
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- See also:
- noti_ex_item_h
- noti_ex_item_destroy()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h progress_item = NULL; ret = noti_ex_item_progress_create(&progress_item, "progress_id", 0, 50, 100); }
int noti_ex_item_progress_get_current | ( | noti_ex_item_h | handle, |
float * | current | ||
) |
Gets the current value of progress.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [out] current The current value of progress
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; float current; ret = noti_ex_item_progress_get_current(progress_item, ¤t); }
int noti_ex_item_progress_get_max | ( | noti_ex_item_h | handle, |
float * | max | ||
) |
Gets the maximum value of progress.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [out] max The maximum value of progress
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; float max; ret = noti_ex_item_progress_get_max(progress_item, &max); }
int noti_ex_item_progress_get_min | ( | noti_ex_item_h | handle, |
float * | min | ||
) |
Gets the minimum value of progress.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [out] min The minimum value of progress
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; float min; ret = noti_ex_item_progress_get_min(progress_item, &min); }
int noti_ex_item_progress_get_type | ( | noti_ex_item_h | handle, |
int * | type | ||
) |
Gets the type of progress. The type is equal to one of the values of noti_ex_item_progress_type_e.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [out] type The type of progress
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; int type; ret = noti_ex_item_progress_get_type(progress_item, &type); }
int noti_ex_item_progress_set_current | ( | noti_ex_item_h | handle, |
float | current | ||
) |
Sets the current value of progress.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] current The current value of progress
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_progress_set_current(progress_item, 70); }
int noti_ex_item_progress_set_type | ( | noti_ex_item_h | handle, |
int | type | ||
) |
Sets the type of progress.
The type is equal to one of the values of noti_ex_item_progress_type_e.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] type The type of progress
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h progress_item = NULL; int type = NOTI_EX_ITEM_PROGRESS_TYPE_PERCENT; ret = noti_ex_item_progress_create(&progress_item, "progress_id", 0, 50, 100); ret = noti_ex_item_progress_set_type(progress_item, type); }
int noti_ex_item_remove_receiver | ( | noti_ex_item_h | handle, |
const char * | receiver_group | ||
) |
Removes the receiver group from a notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] receiver_group The receiver group
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_remove_receiver(item_handle, NOTI_EX_RECEIVER_GROUP_INDICATOR); }
int noti_ex_item_set_action | ( | noti_ex_item_h | handle, |
noti_ex_action_h | action | ||
) |
Sets the action of a notification_ex item.
The action is defined as notification_ex action handle.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] action The notification_ex action handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_action_h
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h item_handle = NULL; noti_ex_action_h 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); }
int noti_ex_item_set_channel | ( | noti_ex_item_h | handle, |
const char * | channel | ||
) |
Sets the channel of a notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] channel The channel of a notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_set_channel(item_handle, "channel"); }
int noti_ex_item_set_enable | ( | noti_ex_item_h | handle, |
bool | enable | ||
) |
Sets the enabled state of a notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] enable The enable state
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_set_enable(item_handle, true); }
int noti_ex_item_set_extension_data | ( | noti_ex_item_h | handle, |
const char * | key, | ||
bundle * | value | ||
) |
Sets the extension data.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] key The key [in] value The bundle data
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; char *key = "ADDITIONAL_DATA_KEY"; bundle *b = bundle_create(); bundle_add_str(b, "key", "value"); ret = noti_ex_item_set_extension_data(item_handle, key, b); bundle_free(b); }
int noti_ex_item_set_id | ( | noti_ex_item_h | handle, |
const char * | id | ||
) |
Sets the id of a notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] id The id of notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_set_id(item_handle, "new_id"); }
int noti_ex_item_set_led_info | ( | noti_ex_item_h | handle, |
noti_ex_led_info_h | led | ||
) |
Sets the LED information of a notification_ex item.
The LED information is defined as notification_ex LED info handle
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] led The notification_ex LED info item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_set_led_info(item_handle, led_info); }
int noti_ex_item_set_main_type | ( | noti_ex_item_h | handle, |
const char * | id, | ||
int | type | ||
) |
Sets the main type of a notification item.
Use this function to configure main type among multiple items. In other words, if there is only one item, it should not be used. The type is equal to one of the values of noti_ex_item_main_type_e.
- Since :
- 5.5
- Remarks:
- When set to a specific type, the previous main item of the same type is canceled.
- Parameters:
-
[in] handle The notification_ex item handle [in] id The ID of notification_ex item [in] type The main type
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_item_main_type_e
- Sample code:
#include <notification_ex.h> { noti_ex_item_h text_item = NULL; noti_ex_item_h group_item = NULL; int type = NOTI_EX_ITEM_MAIN_TYPE_TITLE; int ret; ret = noti_ex_item_group_create(&group_item, "group_id"); ret = noti_ex_item_text_create(&text_item, "text_id", "text", "hyperlink"); ret = noti_ex_item_group_add_child(group_item, text_item); noti_ex_item_destroy(text_item); ret = noti_ex_item_set_main_type(group_item, "text_id", type); }
int noti_ex_item_set_ongoing_state | ( | noti_ex_item_h | handle, |
bool | ongoing | ||
) |
Sets the value indicating whether a notification is currently ongoing.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] ongoing The state of ongoing
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_set_ongoing_state(item_handle, true); }
int noti_ex_item_set_policy | ( | noti_ex_item_h | handle, |
int | policy | ||
) |
Sets the policy of a notification_ex item.
policy should be set to values of noti_ex_item_policy_e combined with bitwise 'or'.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] policy The policy of a notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_item_policy_e
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_set_policy(item_handle, NOTI_EX_ITEM_POLICY_ON_BOOT_CLEAR | NOTI_EX_ITEM_POLICY_SIM_MODE); }
int noti_ex_item_set_sound_path | ( | noti_ex_item_h | handle, |
const char * | path | ||
) |
Sets the sound path of a notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] path The absolute path of sound for notification_ex item If you want to set a default sound, enter NOTI_EX_SOUND_TYPE_DEFAULT.
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_set_sound_path(item_handle, "sound_path"); }
int noti_ex_item_set_style | ( | noti_ex_item_h | handle, |
noti_ex_style_h | style | ||
) |
Sets the style of a notification_ex item.
The style is defined as notification_ex style handle.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] style The notification_ex style handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_set_style(item_handle, style); }
int noti_ex_item_set_tag | ( | noti_ex_item_h | handle, |
const char * | tag | ||
) |
Sets the tag of a notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] tag The tag of a notification_ex item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_set_tag(item_handle, "item_tag"); }
int noti_ex_item_set_vibration_path | ( | noti_ex_item_h | handle, |
const char * | path | ||
) |
Sets the vibration path of a notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] path The absolute path of vibration for notification_ex item If you want to set a default sound, enter NOTI_EX_VIBRATION_TYPE_DEFAULT.
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_set_vibration_path(item_handle, "vibration_path"); }
int noti_ex_item_set_visible | ( | noti_ex_item_h | handle, |
bool | visible | ||
) |
Sets the visibility state of a notification_ex item.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex item handle [in] visible The visible state
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_set_visible(item_handle, true); }
int noti_ex_item_text_create | ( | noti_ex_item_h * | handle, |
const char * | id, | ||
const char * | text, | ||
const char * | hyperlink | ||
) |
Creates the notification_ex item handle with text.
The notification_ex item is the predefined type of notifications. The notification can be created with one item or group of items. If the user wants to be display the notification with text, the notification_ex handle has to be created as a text item.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_item_destroy().
- Parameters:
-
[out] handle The notification_ex item handle [in] id The id of notification_ex item [in] text The text of text item [in] hyperlink The hyperlink of text item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- See also:
- noti_ex_item_h
- noti_ex_item_destroy()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h text_item = NULL; ret = noti_ex_item_text_create(&text_item, "text_id", "text", "hyperlink"); }
int noti_ex_item_text_get_contents | ( | noti_ex_item_h | handle, |
char ** | contents | ||
) |
Gets the text contents of the text item.
- Since :
- 5.5
- Remarks:
- contents must be released using free().
-
If the multi-language handle is set by noti_ex_item_text_set_multi_language(),
it will return a multi-language content.
- Parameters:
-
[in] handle The notification_ex item handle [out] contents The text contents
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- Sample code:
#include <notification_ex.h> { int ret; char *contents = NULL; ret = noti_ex_item_text_get_contents(text_item, &contents); }
int noti_ex_item_text_get_hyperlink | ( | noti_ex_item_h | handle, |
char ** | hyperlink | ||
) |
Gets the hyperlink of the text item.
- Since :
- 5.5
- Remarks:
- hyperlink must be released using free().
- Parameters:
-
[in] handle The notification_ex item handle [out] hyperlink The hyperlink
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- See also:
- noti_ex_item_h
- noti_ex_item_text_create()
- Sample code:
#include <notification_ex.h> { int ret; char *hyperlink = NULL; ret = noti_ex_item_text_get_hyperlink(text_item, &hyperlink); }
int noti_ex_item_text_set_contents | ( | noti_ex_item_h | handle, |
const char * | contents | ||
) |
Sets the text contents of the text item.
- Since :
- 5.5
- Remarks:
- If the multi-language handle is set by noti_ex_item_text_set_multi_language(),
it will return a multi-language content.
- Parameters:
-
[in] handle The notification_ex item handle [in] contents The text contents
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- noti_ex_item_text_create()
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_item_text_set_contents(text_item, "text_contents"); }
int noti_ex_item_text_set_multi_language | ( | noti_ex_item_h | handle, |
noti_ex_multi_lang_h | multi | ||
) |
Sets the multi-language handle.
- Since :
- 5.5
- Remarks:
- After the multi-language handle setted successfully,
noti_ex_item_text_get_contents() will return the multi-language text.
-
The noti_ex_item_h handle keeps its own copy of noti_ex_multi_lang_h.
Therefore, you can destroy multi after it was set for handle. - You can pass NULL to multi, if you want to remove the multi-language text.
- Parameters:
-
[in] handle The notification_ex item handle [in] multi The multi-language handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- See also:
- noti_ex_item_h
- noti_ex_item_text_create()
- noti_ex_multi_lang_create()
- noti_ex_item_text_get_contents()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h text_item = NULL; noti_ex_multi_lang_h multi; ret = noti_ex_item_text_create(&text_item, "text_id", "text", "hyperlink"); ret = noti_ex_multi_lang_create(&multi, "_IDS_NOTI_TEST_", "Hi %d I'm %s", 33, "test"); ret = noti_ex_item_text_set_multi_language(text_item, multi); noti_ex_multi_lang_destroy(multi); }
int noti_ex_item_time_create | ( | noti_ex_item_h * | handle, |
const char * | id, | ||
time_t | time | ||
) |
Creates the notification_ex item handle with time.
The notification_ex item is the predefined type of notifications. The notification can be created with one item or group of items. If the user wants to be display the notification with time, the notification_ex handle has to be created as a time item.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_item_destroy().
- Parameters:
-
[out] handle The notification_ex item handle [in] id The id of notification_ex item [in] time The time information
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- See also:
- noti_ex_item_h
- noti_ex_item_destroy()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_item_h time_item = NULL; time_t time_info; time(&time_info); ret = noti_ex_item_time_create(&time_item, "time_id", time_info); }
int noti_ex_item_time_get_time | ( | noti_ex_item_h | handle, |
time_t * | time | ||
) |
Gets the time information of time item.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_item_destroy().
- Parameters:
-
[in] handle The notification_ex item handle [out] time The time information of time item
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned
- See also:
- noti_ex_item_h
- noti_ex_item_time_create()
- Sample code:
#include <notification_ex.h> { int ret; time_t time_info; ret = noti_ex_item_time_get_time(time_item, &time_info); }
int noti_ex_led_info_create | ( | noti_ex_led_info_h * | handle, |
noti_ex_color_h | color | ||
) |
Creates the notification_ex LED info handle.
LED information can be defined as a notification_ex LED handle with color information. The color is the defined notification_ex color handle.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_led_info_destroy(). color must not be released if the function returns NOTI_EX_ERROR_NONE. color will be released when handle is released.
- Parameters:
-
[out] handle The notification_ex LED info handle [in] color The notification_ex color handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_led_info_h led_info = NULL; noti_ex_color_h color = NULL; ret = noti_ex_color_create(&color, 0, 0, 0, 0); ret = noti_ex_led_info_create(&led_info, color); }
int noti_ex_led_info_destroy | ( | noti_ex_led_info_h | handle | ) |
Releases the notification_ex LED info handle.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex LED info handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_led_info_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_led_info_destroy(led_info); }
int noti_ex_led_info_get_color | ( | noti_ex_led_info_h | handle, |
noti_ex_color_h * | color | ||
) |
Gets the color information from LED info.
- Since :
- 5.5
- Remarks:
- color must be released using noti_ex_color_destroy().
- Parameters:
-
[in] handle The notification_ex LED info handle [out] color The notification_ex color handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_color_h color = NULL; ret = noti_ex_led_info_get_color(led_info, &color); }
int noti_ex_led_info_get_off_period | ( | noti_ex_led_info_h | handle, |
int * | ms | ||
) |
Gets the time period for turning off the LED.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex LED info handle [out] ms The time for turning off the LED, in milliseconds
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; int ms; ret = noti_ex_led_info_get_off_period(led_info, &ms); }
int noti_ex_led_info_get_on_period | ( | noti_ex_led_info_h | handle, |
int * | ms | ||
) |
Gets the time period for turning on the LED.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex LED info handle [out] ms The time for turning on the LED, in milliseconds
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; int ms; ret = noti_ex_led_info_get_on_period(led_info, &ms); }
int noti_ex_led_info_set_off_period | ( | noti_ex_led_info_h | handle, |
int | ms | ||
) |
Sets the time period for turning off the LED.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex LED info handle [in] ms The time for turning off the LED, in milliseconds
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_led_info_set_off_period(led_info, 5); }
int noti_ex_led_info_set_on_period | ( | noti_ex_led_info_h | handle, |
int | ms | ||
) |
Sets the time period for turning on the LED.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex LED info handle [in] ms The time for turning on the LED, in milliseconds
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_led_info_set_on_period(led_info, 5); }
int noti_ex_manager_create | ( | noti_ex_manager_h * | handle, |
const char * | receiver_group, | ||
noti_ex_manager_events_s | event_callbacks, | ||
void * | user_data | ||
) |
Creates the notification_ex manager handle.
- Warning:
- This is not for use by third-party applications.
The manager handle is created with event callbacks and the user can listen to notification events through the event callbacks. If the user wants to manage notifications for specific group the user should identify it with receiver_group Callbacks in event_callbacks can be set to NULL, which will result in the corresponding events not being received.
- Since :
- 5.5
- Privilege Level:
- partner
- Privilege:
- http://tizen.org/privilege/notification.admin
- Remarks:
- handle must be released using noti_ex_manager_destroy().
- Parameters:
-
[out] handle The notification manager handle [in] receiver_group The notification group name of manager [in] event_callbacks The callbacks for notification events [in] user_data The user data for event_callbacks
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY Out of memory NOTI_EX_ERROR_IO_ERROR IO error
- See also:
- noti_ex_manager_h
- noti_ex_manager_events_s
- NOTI_EX_RECEIVER_GROUP_TICKER
- NOTI_EX_RECEIVER_GROUP_LOCKSCREEN
- NOTI_EX_RECEIVER_GROUP_INDICATOR
- NOTI_EX_RECEIVER_GROUP_POPUP
- noti_ex_manager_destroy()
- Sample code:
#include <notification_ex.h> void _manager_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h *added_item, int cnt, void *user_data) { } void _manager_events_update_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h updated_item, void *user_data) { } void _manager_events_delete_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h deleted_item, void *user_data) { } void _manager_events_error_cb(noti_ex_manager_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_manager_h handle; noti_ex_manager_events_s ev; ev.added = _manager_events_add_cb; ev.updated = _manager_events_update_cb; ev.deleted = _manager_events_delete_cb; ev.error = _manager_events_error_cb; ret = noti_ex_manager_create(&handle, NOTI_EX_RECEIVER_GROUP_INDICATOR, ev, NULL); }
int noti_ex_manager_delete | ( | noti_ex_manager_h | handle, |
noti_ex_item_h | noti, | ||
int * | request_id | ||
) |
Deletes notification.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.5
- Privilege Level:
- partner
- Privilege:
- http://tizen.org/privilege/notification.admin
- Parameters:
-
[in] handle The notification manager handle [in] noti The notification item to be deleted [out] request_id The id of request
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- See also:
- noti_ex_manager_h
- noti_ex_error_e
- Sample code:
#include <notification_ex.h> void _manager_events_error_cb(noti_ex_manager_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_manager_h handle; noti_ex_manager_events_s ev; noti_ex_item_h *items; noti_ex_item_h *item; int items_count; int request_id; ev.error = _manager_events_error_cb; ret = noti_ex_manager_create(&handle, NOTI_EX_RECEIVER_GROUP_INDICATOR, ev, NULL); ret = noti_ex_manager_get(handle, &items, &items_count); for (int i = 0; i < items_count; i++) { item = items[i]; noti_ex_manager_delete(handle, item, &request_id); } }
int noti_ex_manager_delete_all | ( | noti_ex_manager_h | handle, |
int * | request_id | ||
) |
Deletes all notification.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.5
- Privilege Level:
- partner
- Privilege:
- http://tizen.org/privilege/notification.admin
- Parameters:
-
[in] handle The notification manager handle [out] request_id The id of request
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- See also:
- noti_ex_manager_h
- noti_ex_error_e
- Sample code:
#include <notification_ex.h> void _manager_events_error_cb(noti_ex_manager_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_manager_h handle; noti_ex_manager_events_s ev; noti_ex_item_h *items; noti_ex_item_h *item; int items_count; int request_id; ev.error = _manager_events_error_cb; ret = noti_ex_manager_create(&handle, NOTI_EX_RECEIVER_GROUP_INDICATOR, ev, NULL); ret = noti_ex_manager_delete_all(handle, &request_id); }
int noti_ex_manager_destroy | ( | noti_ex_manager_h | handle | ) |
Destroys the notification_ex manager handle.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification manager handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_item_h
- Sample code:
#include <notification_ex.h> void _manager_events_error_cb(noti_ex_manager_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_manager_h handle; noti_ex_manager_events_s ev; ev.error = _manager_events_error_cb; ret = noti_ex_manager_create(&handle, NOTI_EX_RECEIVER_GROUP_INDICATOR, ev, NULL); ret = noti_ex_manager_destroy(handle); }
int noti_ex_manager_find_by_root_id | ( | noti_ex_manager_h | handle, |
const char * | root_id, | ||
noti_ex_item_h * | item | ||
) |
Finds notification by root id.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.5
- Privilege Level:
- partner
- Privilege:
- http://tizen.org/privilege/notification.admin
- Remarks:
- root_id is the id of the foremost notification item.
- Parameters:
-
[in] handle The notification manager handle [in] root_id The id of the foremost notification item to be retrieved [out] item The result of the find operation
The item must be released using noti_ex_item_destroy().
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- Sample code:
#include <notification_ex.h> void _manager_events_error_cb(noti_ex_manager_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_manager_h handle; noti_ex_manager_events_s ev; noti_ex_item_h item; ev.error = _manager_events_error_cb; ret = noti_ex_manager_create(&handle, NOTI_EX_RECEIVER_GROUP_INDICATOR, ev, NULL); ret = noti_ex_manager_find_by_root_id(handle, "group1", &item); }
int noti_ex_manager_get | ( | noti_ex_manager_h | handle, |
noti_ex_item_h ** | items, | ||
int * | count | ||
) |
Gets all notifications for the notification_ex manager.
- Warning:
- This is not for use by third-party applications.
Every notification that has been sent for the manager will be retrieved.
- Since :
- 5.5
- Privilege Level:
- partner
- Privilege:
- http://tizen.org/privilege/notification.admin
- Parameters:
-
[in] handle The notification manager handle [out] items The result of the get request
Each item in items must be released using noti_ex_item_destroy(), then items must be released using free().[out] count The count of retrieved notification items
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- Sample code:
#include <notification_ex.h> void _manager_events_error_cb(noti_ex_manager_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_manager_h handle; noti_ex_manager_events_s ev; noti_ex_item_h *items; noti_ex_item_h *item; int items_count; ev.error = _manager_events_error_cb; ret = noti_ex_manager_create(&handle, NOTI_EX_RECEIVER_GROUP_INDICATOR, ev, NULL); ret = noti_ex_manager_get(handle, &items, &items_count); for (int i = 0; i < items_count; i++) { item = items[i]; // do something with item noti_ex_item_destroy(item); } free(items); }
int noti_ex_manager_get_by_channel | ( | noti_ex_manager_h | handle, |
char * | channel, | ||
noti_ex_item_h ** | items, | ||
int * | count | ||
) |
Gets notifications with channel for the notification_ex manager.
- Warning:
- This is not for use by third-party applications.
Every notification that has been sent for the manager will be retrieved.
- Since :
- 5.5
- Privilege Level:
- partner
- Privilege:
- http://tizen.org/privilege/notification.admin
- Parameters:
-
[in] handle The notification manager handle [in] channel The channel of a notification_ex item [out] items The result of the get request
Each item in items must be released using noti_ex_item_destroy(), then items must be released using free().[out] count The count of retrieved notification items
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- Sample code:
#include <notification_ex.h> void _manager_events_error_cb(noti_ex_manager_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_manager_h handle; noti_ex_manager_events_s ev; noti_ex_item_h *items; noti_ex_item_h *item; int items_count; char *channel = "channel"; ev.error = _manager_events_error_cb; ret = noti_ex_manager_create(&handle, NOTI_EX_RECEIVER_GROUP_INDICATOR, ev, NULL); ... ret = noti_ex_manager_get_by_channel(handle, channel, &items, &items_count); for (int i = 0; i < items_count; i++) { item = items[i]; // do something with item noti_ex_item_destroy(item); } free(items); }
int noti_ex_manager_get_notification_count | ( | noti_ex_manager_h | handle, |
int * | count | ||
) |
Gets the count of notifications for the manager.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.5
- Privilege Level:
- partner
- Privilege:
- http://tizen.org/privilege/notification.admin
- Parameters:
-
[in] handle The notification manager handle [out] count The count of notifications
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- See also:
- noti_ex_manager_h
- NOTI_EX_RECEIVER_GROUP_TICKER
- NOTI_EX_RECEIVER_GROUP_LOCKSCREEN
- NOTI_EX_RECEIVER_GROUP_INDICATOR
- NOTI_EX_RECEIVER_GROUP_POPUP
- Sample code:
#include <notification_ex.h> void _manager_events_error_cb(noti_ex_manager_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_manager_h handle; noti_ex_manager_events_s ev; int cnt; ev.error = _manager_events_error_cb; ret = noti_ex_manager_create(&handle, NOTI_EX_RECEIVER_GROUP_INDICATOR, ev, NULL); ret = noti_ex_manager_get_notification_count(handle, &cnt); }
int noti_ex_manager_hide | ( | noti_ex_manager_h | handle, |
noti_ex_item_h | item, | ||
int * | request_id | ||
) |
Hides notification.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.5
- Privilege Level:
- partner
- Privilege:
- http://tizen.org/privilege/notification.admin
- Parameters:
-
[in] handle The notification manager handle [in] item The notification item to be hidden [out] request_id The id of request
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- See also:
- noti_ex_item_h
- noti_ex_manager_h
- Sample code:
#include <notification_ex.h> void _manager_events_error_cb(noti_ex_manager_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_manager_h handle; noti_ex_manager_events_s ev; noti_ex_item_h *items; noti_ex_item_h *item; int items_count; int request_id; ev.error = _manager_events_error_cb; ret = noti_ex_manager_create(&handle, NOTI_EX_RECEIVER_GROUP_INDICATOR, ev, NULL); for (int i = 0; i < items_count; i++) { item = items[i]; ret = noti_ex_manager_hide(handle, item, &request_id); } }
int noti_ex_manager_send_error | ( | noti_ex_manager_h | handle, |
noti_ex_event_info_h | info, | ||
noti_ex_error_e | error | ||
) |
Sends error to the reporter.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.5
- Privilege Level:
- partner
- Privilege:
- http://tizen.org/privilege/notification.admin
- Parameters:
-
[in] handle The notification manager handle [in] info The handle that contains event information [in] error The error type
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- Sample code:
#include <notification_ex.h> void _manager_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h *added_item, int cnt, void *user_data) { } void _manager_events_update_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h updated_item, void *user_data) { // if something wrong about process noti_ex_manager_send_error(handle, info, NOTI_EX_ERROR_IO_ERROR); } void _manager_events_delete_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, noti_ex_item_h deleted_item, void *user_data) { } void _manager_events_error_cb(noti_ex_manager_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_manager_h handle; noti_ex_manager_events_s ev; ev.added = _manager_events_add_cb; ev.updated = _manager_events_update_cb; ev.deleted = _manager_events_delete_cb; ev.error = _manager_events_error_cb; ret = noti_ex_manager_create(&handle, NOTI_EX_RECEIVER_GROUP_INDICATOR, ev, NULL); }
int noti_ex_manager_update | ( | noti_ex_manager_h | handle, |
noti_ex_item_h | item, | ||
int * | request_id | ||
) |
Updates notification.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.5
- Privilege Level:
- partner
- Privilege:
- http://tizen.org/privilege/notification.admin
- Parameters:
-
[in] handle The notification manager handle [in] item The notification item to be updated [out] request_id The id of request
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- See also:
- noti_ex_item_h
- noti_ex_manager_h
- Sample code:
#include <notification_ex.h> void _manager_events_error_cb(noti_ex_manager_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_manager_h handle; noti_ex_manager_events_s ev; noti_ex_item_h *items; noti_ex_item_h *item; int items_count; int request_id; ev.error = _manager_events_error_cb; ret = noti_ex_manager_create(&handle, NOTI_EX_RECEIVER_GROUP_INDICATOR, ev, NULL); ret = noti_ex_manager_get(handle, &items, &items_count); for (int i = 0; i < items_count; i++) { item = items[i]; // modify item noti_ex_manager_update(handle, item, &request_id); } }
int noti_ex_multi_lang_create | ( | noti_ex_multi_lang_h * | handle, |
const char * | msgid, | ||
const char * | format, | ||
... | |||
) |
Creates the multi-language item handle.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_multi_lang_destroy().
- Parameters:
-
[out] handle The multi-language item handle [in] msgid The identifier of the message to be translated. One of the identifers declared in PO files.
The message of msgid and format must contain the same specifiers and in the same order.[in] format The string that contains the text to be written.
It can optionally contain embedded format specifiers
that are replaced by the values specified in subsequent additional arguments and formatted as requested.
Valid specifiers are as follows.
d : Signed decimal integer
f : Decimal floating point
s : String of characters[in] ... The additional arguments. The values to be used to replace format specifiers in the format string.
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_multi_lang_h handle = NULL; // _IDS_TEST_ : "Hi %s version %f" ret = noti_ex_multi_lang_create(&handle, "_IDS_TEST_", "Hi %s version %f", "Tizen", 5.5); noti_ex_multi_lang_destroy(handle); }
int noti_ex_multi_lang_destroy | ( | noti_ex_multi_lang_h | handle | ) |
Destroys the multi-language item handle.
- Since :
- 5.5
- Parameters:
-
[in] handle The multi-language item handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_multi_lang_h handle = NULL; // _IDS_TEST_ : "Hi %s version %f" ret = noti_ex_multi_lang_create(&handle, "_IDS_TEST_", "Hi %s version %f", "Tizen", 5.5); noti_ex_multi_lang_destroy(handle); }
int noti_ex_padding_create | ( | noti_ex_padding_h * | handle, |
int | left, | ||
int | top, | ||
int | right, | ||
int | bottom | ||
) |
Creates the notification_ex padding handle.
Padding information can be defined as a notification_ex padding handle with left, right, top and bottom values.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_padding_destroy().
- Parameters:
-
[out] handle The notification_ex padding handle [in] left The left value [in] top The top value [in] right The right value [in] bottom The bottom value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_padding_h padding = NULL; ret = noti_ex_padding_create(&padding, 0, 0, 0, 0); }
int noti_ex_padding_destroy | ( | noti_ex_padding_h | handle | ) |
Releases a notification_ex padding handle.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex padding handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_padding_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_padding_destroy(padding); }
int noti_ex_padding_get_bottom | ( | noti_ex_padding_h | handle, |
int * | val | ||
) |
Gets the bottom value of padding.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex padding handle [out] val The bottom value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; int bottom; ret = noti_ex_padding_get_bottom(padding, &bottom); }
int noti_ex_padding_get_left | ( | noti_ex_padding_h | handle, |
int * | val | ||
) |
Gets the left value of padding.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex padding handle [out] val The left value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; int left; ret = noti_ex_padding_get_left(padding, &left); }
int noti_ex_padding_get_right | ( | noti_ex_padding_h | handle, |
int * | val | ||
) |
Gets the right value of padding.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex padding handle [out] val The right value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; int right; ret = noti_ex_padding_get_right(padding, &right); }
int noti_ex_padding_get_top | ( | noti_ex_padding_h | handle, |
int * | val | ||
) |
Gets the top value of padding.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex padding handle [out] val The top value
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; int top; ret = noti_ex_padding_get_top(padding, &top); }
int noti_ex_reporter_create | ( | noti_ex_reporter_h * | handle, |
noti_ex_reporter_events_s | event_callbacks, | ||
void * | user_data | ||
) |
Creates the notification_ex reporter handle.
The reporter handle is created with event callbacks and the user can listen notification events through the event callbacks. Callbacks in event_callbacks can be set to NULL, which will result in the corresponding events not being received.
- Since :
- 5.5
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/notification
- Remarks:
- handle must be released using noti_ex_reporter_destroy().
- Parameters:
-
[out] handle The notification reporter handle [in] event_callbacks The callbacks for notification events [in] user_data The user data for event_callbacks
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY Out of memory NOTI_EX_ERROR_IO_ERROR IO error
- Sample code:
#include <notification_ex.h> void _reporter_events_event_cb(noti_ex_reporter_h handle, noti_ex_event_info_h info, noti_ex_item_h *items, int cnt, void *user_data) { } void _reporter_events_error_cb(noti_ex_reporter_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_reporter_h handle; noti_ex_reporter_events_s ev; ev.event = _reporter_events_event_cb; ev.error = _reporter_events_error_cb; ret = noti_ex_reporter_create(&handle, ev, NULL); }
int noti_ex_reporter_delete | ( | noti_ex_reporter_h | handle, |
noti_ex_item_h | noti, | ||
int * | request_id | ||
) |
Deletes a notification.
- Since :
- 5.5
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/notification
- Parameters:
-
[in] handle The notification reporter handle [in] noti The notification handle to be updated [out] request_id The id of request
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- See also:
- noti_ex_reporter_create()
- Sample code:
#include <notification_ex.h> void _reporter_events_error_cb(noti_ex_reporter_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_reporter_h handle; noti_ex_reporter_events_s ev; noti_ex_item_h group_item = NULL; noti_ex_item_h child_item = NULL; int request_id; ev.error = _reporter_events_error_cb; ret = noti_ex_reporter_create(&handle, ev, NULL); ret = noti_ex_reporter_find_by_root_id(handle, "group_id", &group_item); ret = noti_ex_reporter_delete(handle, group_item, &request_id); }
int noti_ex_reporter_delete_all | ( | noti_ex_reporter_h | handle, |
int * | request_id | ||
) |
Deletes all notifications.
- Since :
- 5.5
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/notification
- Parameters:
-
[in] handle The notification reporter handle [out] request_id The id of request
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- See also:
- noti_ex_reporter_create()
- Sample code:
#include <notification_ex.h> void _reporter_events_error_cb(noti_ex_reporter_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_reporter_h handle; noti_ex_reporter_events_s ev; noti_ex_item_h group_item = NULL; noti_ex_item_h child_item = NULL; int request_id; ev.error = _reporter_events_error_cb; ret = noti_ex_reporter_create(&handle, ev, NULL); ret = noti_ex_reporter_delete_all(handle, &request_id); }
int noti_ex_reporter_destroy | ( | noti_ex_reporter_h | handle | ) |
Destroys the notification_ex reporter handle.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification reporter handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_reporter_create()
- Sample code:
#include <notification_ex.h> void _reporter_events_error_cb(noti_ex_reporter_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_reporter_h handle; noti_ex_reporter_events_s ev; ev.error = _reporter_events_error_cb; ret = noti_ex_reporter_create(&handle, ev, NULL); ret = noti_ex_reporter_destroy(handle); }
int noti_ex_reporter_find_by_root_id | ( | noti_ex_reporter_h | handle, |
const char * | root_id, | ||
noti_ex_item_h * | item | ||
) |
Finds notification by root id.
- Since :
- 5.5
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/notification
- Parameters:
-
[in] handle The notification reporter handle [in] root_id The id of the foremost notification item to be retrieved [out] item The result of the find operation
The item must be released using noti_ex_item_destroy().
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- Sample code:
#include <notification_ex.h> void _reporter_events_error_cb(noti_ex_reporter_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_reporter_h handle; noti_ex_reporter_events_s ev; noti_ex_item_h group_item = NULL; noti_ex_item_h child_item = NULL; int request_id; ev.error = _reporter_events_error_cb; ret = noti_ex_reporter_create(&handle, ev, NULL); ret = noti_ex_reporter_find_by_root_id(handle, "group_id", &group_item); ret = noti_ex_reporter_delete(handle, group_item, &request_id); }
int noti_ex_reporter_post | ( | noti_ex_reporter_h | handle, |
noti_ex_item_h | noti, | ||
int * | request_id | ||
) |
Posts a notification.
- Since :
- 5.5
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/notification
- Parameters:
-
[in] handle The notification reporter handle [in] noti The notification handle to be posted [out] request_id The id of request
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- See also:
- noti_ex_reporter_create()
- Sample code:
#include <notification_ex.h> void _reporter_events_error_cb(noti_ex_reporter_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_reporter_h handle; noti_ex_reporter_events_s ev; noti_ex_item_h group_item = NULL; noti_ex_item_h child_item = NULL; int request_id; ev.error = _reporter_events_error_cb; ret = noti_ex_reporter_create(&handle, ev, NULL); ret = noti_ex_item_group_create(&group_item, "group_id"); ret = noti_ex_item_button_create(&child_item, "button_id", "button_title"); ret = noti_ex_item_group_add_child(group_item, child_item); noti_ex_item_destroy(child_item); ret = noti_ex_reporter_post(handle, group_item, &request_id); noti_ex_item_destroy(group_item); }
int noti_ex_reporter_post_list | ( | noti_ex_reporter_h | handle, |
noti_ex_item_h * | noti_list, | ||
int | count, | ||
int * | request_id | ||
) |
Posts notifications contained in a list.
- Since :
- 5.5
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/notification
- Parameters:
-
[in] handle The notification reporter handle [in] noti_list The notification handle list to be posted [in] count The count of notifications in noti_list [out] request_id The id of request
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- See also:
- noti_ex_reporter_create()
- Sample code:
#include <notification_ex.h> void _reporter_events_error_cb(noti_ex_reporter_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_reporter_h handle; noti_ex_reporter_events_s ev; noti_ex_item_h group_item = NULL; noti_ex_item_h child_item = NULL; noti_ex_item_h *noti_list = (noti_ex_item_h *)calloc(2, sizeof(noti_ex_item_h)); int request_id; ev.error = _reporter_events_error_cb; ret = noti_ex_reporter_create(&handle, ev, NULL); ret = noti_ex_item_group_create(¬i_list[0], "group_id1"); ret = noti_ex_item_button_create(&child_item, "button_id1", "button_title"); ret = noti_ex_item_group_add_child(noti_list[0], child_item); noti_ex_item_destroy(child_item); ret = noti_ex_item_group_create(¬i_list[1], "group_id2"); ret = noti_ex_item_button_create(&child_item, "button_id2", "button_title"); ret = noti_ex_item_group_add_child(noti_list[1], child_item); noti_ex_item_destroy(child_item); ret = noti_ex_reporter_post_list(handle, noti_list, 2, &request_id); noti_ex_item_destroy(noti_list[0]); noti_ex_item_destroy(noti_list[1]); free(noti_list); }
int noti_ex_reporter_send_error | ( | noti_ex_reporter_h | handle, |
noti_ex_event_info_h | info, | ||
noti_ex_error_e | error | ||
) |
Sends error to the manager.
- Since :
- 5.5
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/notification
- Parameters:
-
[out] handle The notification reporter handle [in] info The handle that contains event information [in] error The error type
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- Sample code:
#include <notification_ex.h> void _reporter_events_event_cb(noti_ex_reporter_h handle, noti_ex_event_info_h info, noti_ex_item_h *items, int cnt, void *user_data) { // if something wrong about process noti_ex_reporter_send_error(handle, info, NOTI_EX_ERROR_IO_ERROR); } void _reporter_events_error_cb(noti_ex_reporter_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_reporter_h handle; noti_ex_reporter_events_s ev; ev.event = _reporter_events_event_cb; ev.error = _reporter_events_error_cb; ret = noti_ex_reporter_create(&handle, ev, NULL); }
int noti_ex_reporter_update | ( | noti_ex_reporter_h | handle, |
noti_ex_item_h | noti, | ||
int * | request_id | ||
) |
Updates a notification.
- Since :
- 5.5
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/notification
- Parameters:
-
[in] handle The notification reporter handle [in] noti The notification handle to be updated [out] request_id The id of request
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_PERMISSION_DENIED Permission deny NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_IO_ERROR IO error
- See also:
- noti_ex_reporter_create()
- Sample code:
#include <notification_ex.h> void _reporter_events_error_cb(noti_ex_reporter_h handle, noti_ex_error_e error, int req_id, void *user_data) { } { int ret; noti_ex_reporter_h handle; noti_ex_reporter_events_s ev; noti_ex_item_h group_item = NULL; noti_ex_item_h child_item = NULL; int request_id; ev.error = _reporter_events_error_cb; ret = noti_ex_reporter_create(&handle, ev, NULL); ret = noti_ex_reporter_find_by_root_id(handle, "group_id", &group_item); ret = noti_ex_item_group_set_direction(group_item, false); ret = noti_ex_reporter_update(handle, group_item, &request_id); }
int noti_ex_style_create | ( | noti_ex_style_h * | handle, |
noti_ex_color_h | color, | ||
noti_ex_padding_h | padding, | ||
noti_ex_geometry_h | geometry | ||
) |
Creates the notification_ex style handle.
Style information can be defined as a notification_ex style handle with color, padding and geometry information. The color is the defined notification_ex color handle. The padding is the defined notification_ex padding handle. The geometry is the defined notification_ex geometry handle.
- Since :
- 5.5
- Remarks:
- handle must be released using noti_ex_style_destroy(). color, padding and geometry must not be released if the function returns NOTI_EX_ERROR_NONE. color, padding and geometry will be released when handle is released.
- Parameters:
-
[out] handle The notification_ex padding handle [in] color The notification_ex color handle [in] padding The notification_ex padding handle [in] geometry The notification_ex geometry handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- See also:
- noti_ex_style_h
- noti_ex_color_h
- noti_ex_padding_h
- noti_ex_geometry_h
- noti_ex_style_destroy()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_style_h style = NULL; noti_ex_color_h color = NULL; noti_ex_padding_h padding = NULL; noti_ex_geometry_h geometry = NULL; ret = noti_ex_color_create(&color, 0, 0, 0, 0); ret = noti_ex_padding_create(&padding, 0, 0, 0, 0); ret = noti_ex_geometry_create(&geometry, 0, 0, 0, 0); ret = noti_ex_style_create(&style, color, padding, geometry); }
int noti_ex_style_destroy | ( | noti_ex_style_h | handle | ) |
Releases the notification_ex style handle.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex style handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_style_h
- Sample code:
#include <notification_ex.h> { int ret; ret = noti_ex_style_destroy(style); }
int noti_ex_style_get_background_color | ( | noti_ex_style_h | handle, |
noti_ex_color_h * | color | ||
) |
Gets the background color of a style.
- Since :
- 5.5
- Remarks:
- color must be released using noti_ex_color_destroy().
- Parameters:
-
[in] handle The notification_ex style handle [out] color The notification_ex color handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_style_h
- noti_ex_style_create()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_color_h color = NULL; ret = noti_ex_style_get_background_color(style, &color); }
int noti_ex_style_get_background_image | ( | noti_ex_style_h | handle, |
char ** | image_path | ||
) |
Gets the background image path from style.
- Since :
- 5.5
- Remarks:
- The image_path should be released using free().
- Parameters:
-
[in] handle The notification_ex style handle [out] image_path The background image path
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_style_h
- noti_ex_style_create()
- Sample code:
#include <notification_ex.h> { int ret; char *image_path; ret = noti_ex_style_get_background_image(style, &image_path); }
int noti_ex_style_get_color | ( | noti_ex_style_h | handle, |
noti_ex_color_h * | color | ||
) |
Gets the color information from a style.
- Since :
- 5.5
- Remarks:
- color must be released using noti_ex_color_destroy().
- Parameters:
-
[in] handle The notification_ex style handle [out] color The notification_ex color handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_color_h color = NULL; ret = noti_ex_style_get_color(style, &color); }
int noti_ex_style_get_geometry | ( | noti_ex_style_h | handle, |
noti_ex_geometry_h * | geometry | ||
) |
Gets the geometry information from style.
- Since :
- 5.5
- Remarks:
- geometry must be released using noti_ex_geometry_destroy().
- Parameters:
-
[in] handle The notification_ex style handle [out] geometry The notification_ex geometry handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_geometry_h geometry = NULL; ret = noti_ex_style_get_geometry(style, &geometry); }
int noti_ex_style_get_padding | ( | noti_ex_style_h | handle, |
noti_ex_padding_h * | padding | ||
) |
Gets the padding information from a style.
- Since :
- 5.5
- Remarks:
- padding must be released using noti_ex_padding_destroy().
- Parameters:
-
[in] handle The notification_ex style handle [out] padding The notification_ex padding handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_padding_h padding = NULL; ret = noti_ex_style_get_padding(style, &padding); }
int noti_ex_style_set_background_color | ( | noti_ex_style_h | handle, |
noti_ex_color_h | color | ||
) |
Sets the background color of a style.
- Since :
- 5.5
- Remarks:
- color must be released using noti_ex_color_destroy().
- Parameters:
-
[in] handle The notification_ex style handle [in] color The notification_ex color handle
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_style_h
- noti_ex_style_create()
- Sample code:
#include <notification_ex.h> { int ret; noti_ex_color_h color; ret = noti_ex_color_create(&color, 0, 0, 0, 0); ret = noti_ex_style_set_background_color(style, color); ret = noti_ex_color_destroy(color); }
int noti_ex_style_set_background_image | ( | noti_ex_style_h | handle, |
char * | image_path | ||
) |
Sets the background image path of a style.
- Since :
- 5.5
- Parameters:
-
[in] handle The notification_ex style handle [in] image_path The background image path
- Returns:
- NOTI_EX_ERROR_NONE On success, other value on failure
- Return values:
-
NOTI_EX_ERROR_NONE Success NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- noti_ex_style_h
- noti_ex_style_create()
- Sample code:
#include <notification_ex.h> { int ret; char *image_path[BUFLEN]; char *shared_path = app_get_shared_resource_path(); snprintf(image_path, BUFLEN, "%simage.png", shared_path); free(shared_path); ret = noti_ex_style_set_background_image(style, image_path); }