Tizen D.I.T

Notification

D.I.T

#include "Interface/Notification.h"
#include "dit.h"

Notification notification = NewNotification ();
//Notification 모듈 생성
notification->setTitle(notification, "Notification Title");
//Notification Title 설정
notification->setIcon(notification, "images/icon1.png");
//Notification Icon 설정
notification->setText(notification, "Notification Text");
//Notification Text 설정
notification->setSound(notification, "sound/sound.mp3");
//Notification Sound 설정
notification->show(notification);
//Notification 보여주기
notification->hide(notification);
//Notification 숨기기

notification->update(notification);
//Notification 모듈 업데이트

DestroyNotification(notification)
//Notification 모듈 삭제

Native

#include <notification.h>

notification_h notification = notification_create (NOTIFICATION_TYPE_NOTI);
//Notification 핸들러 생성
notification_set_text (notification, NOTIFICATION_TEXT_TYPE_TITLE, "Notification Title", NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
//Notification Title 설정
notification_set_text (notification, NOTIFICATION_TEXT_TYPE_CONTENT, "Notification Text", NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
//Notification Text 설정
notification_set_image (notification, NOTIFICATION_IMAGE_TYPE_ICON, "images/icon1.png");
//Notification Images 설정
notification_set_sound (notification, NOTIFICATION_SOUND_TYPE_USER_DATA, "sound/sound.mp3");
//Notification Sound 설정
notification_post (notification);
//Notification 보여주기
notification_delete (notification);
//Notification 숨기기

notification_set_text (notification, NOTIFICATION_TEXT_TYPE_TITLE, "Notification Update Title", NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
//Notification Title 설정
notification_set_text (notification, NOTIFICATION_TEXT_TYPE_CONTENT, "Notification Update Text", NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
//Notification Text 설정
notification_set_image (notification, NOTIFICATION_IMAGE_TYPE_ICON, "images/icon1_update.png");
//Notification Images 설정
notification_set_sound (notification, NOTIFICATION_SOUND_TYPE_USER_DATA, "sound/sound_update.mp3");
//Notification Sound 설정
notification_update (notification);
//Notification 업데이트