/*
* Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace Tizen.Applications.Notifications
{
using System;
using System.ComponentModel;
///
/// Notification notification = new Notification
/// {
/// Title = "title",
/// Content = "content",
/// Icon = "absolute icon path",
/// Tag = "first notification"
/// };
///
/// Notification.AccessorySet accessory = new Notification.AccessorySet
/// {
/// SoundOption = AccessoryOption.On,
/// CanVibrate = true
/// };
/// notification.Accessory = accessory;
///
/// // do something
///
/// NotificationManager.Post(notification);
///
///
/// string tag = "first tag";
///
/// Notification notification = new Notification
/// {
/// Title = "title",
/// Content = "content",
/// Icon = "absolute icon path",
/// Tag = tag
/// };
///
/// Notification.AccessorySet accessory = new Notification.AccessorySet
/// {
/// LedOption = AccessoryOption.On,
/// VibrationOption = AccessoryOption.Custom,
/// VibrationPath = "vibration absolute path"
/// }
/// notification.Accessory = accessory;
///
/// NotificationManager.Post(notification);
///
/// // do something
///
/// Notification loadNotification = NotificationManager.Load(tag);
///
/// loadNotification.Progress = new ProgressType(ProgressCategory.Percent, 0.0. 100.0);
///
/// Thread thread = new Thread(new ParameterizedThreadStart(UpdateProgress));
/// thread.IsBackground = true;
/// thread.Start(notification);
///
/// ...
///
/// static void UpdateProgress(Object obj)
/// {
/// Notification notification = (Notification)obj;
///
/// for (double current = 1.0; current <= 100.0; current = current + 1.0)
/// {
/// notification.Progress.ProgressCurrent = current;
/// NotificationManager.Update(notification);
/// Thread.Sleep(300);
/// }
/// }
///
///
/// Post method should be called on the notification object. //////
/// Notification notification = new Notification
/// {
/// Title = "title",
/// Content = "content",
/// Icon = "absolute icon path",
/// Tag = "first notification"
/// };
/// NotificationManager.Post(notification);
///
/// // do something
///
/// NotificationManager.Delete(notification);
///
/// /// Post method should be called on the notification object. //////
/// Notification firstNotification = new Notification
/// {
/// Title = "title",
/// Content = "content",
/// Icon = "absolute icon path",
/// Tag = "first notification"
/// };
/// NotificationManager.Post(firstNotification);
///
/// Notification secondNotification = new Notification
/// {
/// Title = "title",
/// Content = "content",
/// Icon = "absolute icon path",
/// Tag = "second notification"
/// };
/// NotificationManager.Post(secondNotification);
/// NotificationManager.DeleteAll();
///
///
/// Notification notification = new Notification
/// {
/// Title = "title",
/// Content = "content",
/// Icon = "absolute icon path",
/// Tag = "first notification"
/// };
/// NotificationManager.Post(notification);
///
/// // do someting
///
/// Notification loadNotification = NotificationManager.Load("first notification");
///
///
/// Notification notification = new Notification
/// {
/// Title = "title",
/// Content = "content",
/// Icon = "absolute icon path",
/// Tag = "first notification"
/// };
///
/// Notification.Accessory accessory = new Notification.Accessory
/// {
/// LedOption = AccessoryOption.On,
/// VibrationOption = AccessoryOption.Custom,
/// VibrationPath = "vibration absolute path"
/// }
/// notification.setAccessory(accessory);
///
/// // do something
///
/// NotificationManager.Post(notification);
///
/// Notification.LockStyle style = new Notification.LockStyle
/// {
/// IconPath = "icon path",
/// ThumbnailPath = "Thumbnail path"
/// }
/// notification.AddStyle(style);
/// NotificationManager.SaveTemplate(notification, "firstTemplate");
///
///
/// Notification notification = new Notification
/// {
/// Title = "title",
/// Content = "content",
/// Icon = "absolute icon path",
/// Tag = "first notification"
/// };
///
/// Notification.Accessory accessory = new Notification.Accessory
/// {
/// LedOption = AccessoryOption.On,
/// VibrationOption = AccessoryOption.Custom,
/// VibrationPath = "vibration absolute path"
/// }
/// notification.setAccessory(accessory);
///
/// // do something
///
/// NotificationManager.Post(notification);
///
/// Notification.LockStyle style = new Notification.LockStyle
/// {
/// IconPath = "icon path",
/// ThumbnailPath = "Thumbnail path"
/// }
/// notification.AddStyle(style);
/// NotificationManager.SaveTemplate(notification, "firstTemplate");
/// Notification notificationTemplate = NotificationManager.LoadTemplate("firstTemplate");
///
///