Tizen Native API
3.0
|
The calendar reminder API provides the interface to set/unset reminder callback.
Required Header
#include <calendar.h>
Functions | |
int | calendar_reminder_add_cb (calendar_reminder_cb callback, void *user_data) |
Adds a callback to get a notification when an alarm gives an alert. | |
int | calendar_reminder_remove_cb (calendar_reminder_cb callback, void *user_data) |
Removes a callback to get a notification when an alarm gives an alert. | |
Typedefs | |
typedef void(* | calendar_reminder_cb )(const char *param, void *user_data) |
Called when an alarm is alerted. |
Typedef Documentation
typedef void(* calendar_reminder_cb)(const char *param, void *user_data) |
Called when an alarm is alerted.
- Since :
- 3.0
- Parameters:
-
[in] param Value string like id=value&time=value&tick=value&unit=value&type=value [in] user_data The user data passed from the callback registration function
- See also:
- calendar_reminder_add_cb()
Function Documentation
int calendar_reminder_add_cb | ( | calendar_reminder_cb | callback, |
void * | user_data | ||
) |
Adds a callback to get a notification when an alarm gives an alert.
- Since :
- 3.0
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/calendar.read
- Parameters:
-
[in] callback The callback to be added [in] user_data The user data
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CALENDAR_ERROR_NONE Successful CALENDAR_ERROR_OUT_OF_MEMORY Out of memory CALENDAR_ERROR_NOT_PERMITTED Operation not permitted CALENDAR_ERROR_IPC Unknown IPC error
- See also:
- calendar_reminder_remove_cb()
int calendar_reminder_remove_cb | ( | calendar_reminder_cb | callback, |
void * | user_data | ||
) |
Removes a callback to get a notification when an alarm gives an alert.
- Since :
- 3.0
- Parameters:
-
[in] callback The callback to be removed [in] user_data The user data
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CALENDAR_ERROR_NONE Successful CALENDAR_ERROR_DB_FAILED Database operation failure
- See also:
- calendar_reminder_add_cb()