alarm = new tizen.AlarmAbsolute(date);
notificationDict = {
content: "This is a simple notification.",
- iconPath: "images/webapi-tizen-notification-test_image1.jpg",
- soundPath: "music/webapi-tizen-notification-test_noise1.mp3"
+ images:
+ {
+ iconPath : "images/webapi-tizen-notification-test_image1.jpg"
+ },
+ actions:
+ {
+ soundPath : "music/webapi-tizen-notification-test_noise1.mp3"
+ }
};
- notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
+ notification = new tizen.UserNotification("SIMPLE", "Simple notification", notificationDict);
retVal = tizen.alarm.addAlarmNotification(alarm, notification);
noti = tizen.alarm.getAlarmNotification(alarm.id);
assert_type(retVal, "undefined", "method returned value");
var notificationDict, notification, i, conversionTable = getTypeConversionExceptions("object");
notificationDict = {
content: "This is a simple notification.",
- iconPath: "images/webapi-tizen-notification-test_image1.jpg",
- soundPath: "music/webapi-tizen-notification-test_noise1.mp3"
+ images:
+ {
+ iconPath : "images/webapi-tizen-notification-test_image1.jpg"
+ },
+ actions:
+ {
+ soundPath : "music/webapi-tizen-notification-test_noise1.mp3"
+ }
};
- notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
+ notification = new tizen.UserNotification("SIMPLE", "Simple notification", notificationDict);
for (i = 0; i < conversionTable.length; i++) {
assert_throws({name: conversionTable[i][1]}, function () {
tizen.alarm.addAlarmNotification(conversionTable[i][0], notification);
alarm = new tizen.AlarmAbsolute(date);
notificationDict = {
content: "This is a simple notification.",
- iconPath: "images/webapi-tizen-notification-test_image1.jpg",
- soundPath: "music/webapi-tizen-notification-test_noise1.mp3"
+ images:
+ {
+ iconPath : "images/webapi-tizen-notification-test_image1.jpg"
+ },
+ actions:
+ {
+ soundPath : "music/webapi-tizen-notification-test_noise1.mp3"
+ }
};
- notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
+ notification = new tizen.UserNotification("SIMPLE", "Simple notification", notificationDict);
tizen.alarm.addAlarmNotification(alarm, notification);
retVal = tizen.alarm.getAlarmNotification(alarm.id);
- assert_true(retVal instanceof tizen.StatusNotification, "object was not get properly");
+ assert_true(retVal instanceof tizen.UserNotification, "object was not get properly");
}, document.title);
</script>
alarm = new tizen.AlarmAbsolute(date);
notificationDict = {
content: "This is a simple notification.",
- iconPath: "images/webapi-tizen-notification-test_image1.jpg",
- soundPath: "music/webapi-tizen-notification-test_noise1.mp3"
+ images:
+ {
+ iconPath : "images/webapi-tizen-notification-test_image1.jpg"
+ },
+ actions:
+ {
+ soundPath : "music/webapi-tizen-notification-test_noise1.mp3"
+ }
};
- notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
+ notification = new tizen.UserNotification("SIMPLE", "Simple notification", notificationDict);
tizen.alarm.addAlarmNotification(alarm, notification);
tizen.alarm.remove(alarm.id);
assert_throws(NOT_FOUND_EXCEPTION, function () {