Ongoingnotification
D.I.T
#include "Interface/OngoingNotification.h"
#include "dit.h"
OngoingNotification notification = NewOngoingNotification();
notification->setTitle(notification, "OngoingNotification Title");
notification->setIcon(notification, "images/icon1.png");
notification->setText(notification, "OngoingNotification Text");
notification->setSound(notification, "sound/sound.mp3");
notification->setProgress(notification, 0.1);
notification->show(notification);
notification->setProgress(notification, 0.2);
notification->update(notification);
DestroyOngoingNotification(notification);
Native
#include <notification.h>
notification_h notification = notification_create (NOTIFICATION_TYPE_ONGOING);
notification_set_display_applist (notification, NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY | NOTIFICATION_DISPLAY_APP_TICKER);
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_set_progress (notification, 0.1);
notification_post (notification);
notification_delete (notification);
notification_set_text (notification, NOTIFICATION_TEXT_TYPE_TITLE, "OngoingNotification Update Title", NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
notification_set_text (notification, NOTIFICATION_TEXT_TYPE_CONTENT, "OngoingNotification 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_set_progress (notification, 0.2);
notification_update (notification);