| 
    Tizen Native API
    10.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 :
 - 2.3
 
- 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 :
 - 2.3
 
- 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:
 0on 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 CALENDAR_ERROR_SYSTEM Internal system module error CALENDAR_ERROR_NOT_SUPPORTED Not supported  
- 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 :
 - 2.3
 
- Parameters:
 - 
  
[in] callback The callback to be removed [in] user_data The user data  
- Returns:
 0on success, otherwise a negative error value
- Return values:
 - 
  
CALENDAR_ERROR_NONE Successful CALENDAR_ERROR_DB_FAILED Database operation failure CALENDAR_ERROR_SYSTEM Internal system module error CALENDAR_ERROR_NOT_SUPPORTED Not supported  
- See also:
 - calendar_reminder_add_cb()