Tizen Native API  5.5
Reminder

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]paramValue string like id=value&time=value&tick=value&unit=value&type=value
[in]user_dataThe 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]callbackThe callback to be added
[in]user_dataThe user data
Returns:
0 on success, otherwise a negative error value
Return values:
CALENDAR_ERROR_NONESuccessful
CALENDAR_ERROR_OUT_OF_MEMORYOut of memory
CALENDAR_ERROR_NOT_PERMITTEDOperation not permitted
CALENDAR_ERROR_IPCUnknown IPC error
CALENDAR_ERROR_SYSTEMInternal system module error
CALENDAR_ERROR_NOT_SUPPORTEDNot 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]callbackThe callback to be removed
[in]user_dataThe user data
Returns:
0 on success, otherwise a negative error value
Return values:
CALENDAR_ERROR_NONESuccessful
CALENDAR_ERROR_DB_FAILEDDatabase operation failure
CALENDAR_ERROR_SYSTEMInternal system module error
CALENDAR_ERROR_NOT_SUPPORTEDNot supported
See also:
calendar_reminder_add_cb()