Notification
D.I.T
#include "Interface/Notification.h"
#include "dit.h"
Notification notification = NewNotification ();
notification->setTitle(notification, "Notification Title");
notification->setIcon(notification, "images/icon1.png");
notification->setText(notification, "Notification Text");
notification->setSound(notification, "sound/sound.mp3");
notification->show(notification);
notification->hide(notification);
notification->update(notification);
DestroyNotification(notification)
Native
#include <notification.h>
notification_h notification = notification_create (NOTIFICATION_TYPE_NOTI);
notification_set_text (notification, NOTIFICATION_TEXT_TYPE_TITLE, "Notification Title", NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
notification_set_text (notification, NOTIFICATION_TEXT_TYPE_CONTENT, "Notification Text", NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
notification_set_image (notification, NOTIFICATION_IMAGE_TYPE_ICON, "images/icon1.png");
notification_set_sound (notification, NOTIFICATION_SOUND_TYPE_USER_DATA, "sound/sound.mp3");
notification_post (notification);
notification_delete (notification);
notification_set_text (notification, NOTIFICATION_TEXT_TYPE_TITLE, "Notification Update Title", NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
notification_set_text (notification, NOTIFICATION_TEXT_TYPE_CONTENT, "Notification Update Text", NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
notification_set_image (notification, NOTIFICATION_IMAGE_TYPE_ICON, "images/icon1_update.png");
notification_set_sound (notification, NOTIFICATION_SOUND_TYPE_USER_DATA, "sound/sound_update.mp3");
notification_update (notification);