/// <summary>
/// Gets or sets the icon of notification.
- /// You should set an absolute path for an image file.
+ /// You should set an absolute path for an image file.
/// </summary>
public string Icon { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the sub icon of notification.
/// This SubIcon is displayed in Icon you set.
- /// You should set an absolute path for an image file.
+ /// You should set an absolute path for an image file.
/// </summary>
public string SubIcon { get; set; } = string.Empty;
}
}
+ /// <summary>
+ /// Gets or sets a value indicating whether the notification is Onging or not.
+ /// Default value is false.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool IsOngoing { get; set; } = false;
return state;
}
+ /// <summary>
+ /// Make a NotificationSafeHandle from Notification.
+ /// </summary>
+ /// <param name="notification">The Notification class.</param>
+ /// <returns>The NotificationSafeHandle class.</returns>
+ /// <exception cref="ArgumentException">Thrown when an argument is invalid.</exception>
[EditorBrowsable(EditorBrowsableState.Never)]
public static NotificationSafeHandle MakeNotificationSafeHandle(Notification notification)
{
return notification.Handle;
}
+ /// <summary>
+ /// Make a Notification from NotificationSafeHandle.
+ /// </summary>
+ /// <param name="handle">The NotificationSafeHandle class.</param>
+ /// <returns>The Notification class.</returns>
+ /// <exception cref="ArgumentException">Thrown when an argument is invalid.</exception>
[EditorBrowsable(EditorBrowsableState.Never)]
public static Notification MakeNotification(NotificationSafeHandle handle)
{
using System.ComponentModel;
using System.Runtime.InteropServices;
+ /// <summary>
+ /// This class manages the notification handle resources.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public sealed class NotificationSafeHandle : SafeHandle
{
+ /// <summary>
+ /// Initializes a new instance of the NotificationSafeHandle class.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public NotificationSafeHandle()
: base(IntPtr.Zero, true)
get { return this.DangerousGetHandle() == IntPtr.Zero; }
}
+ /// <summary>
+ /// Executes the code required to free the NotificationSafeHandle.
+ /// </summary>
+ /// <returns></returns>
protected override bool ReleaseHandle()
{
Interop.Notification.Destroy(this.handle);
/// </summary>
public string Tag { get; internal set; }
+ /// <summary>
+ /// Gets a value indicating whether the notification is Onging or not.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool IsOngoing { get; internal set; } = false;
/// </summary>
public bool IsVisible { get; internal set; } = true;
+ /// <summary>
+ /// Gets the event flag.
+ /// If this flag is true, you can do SendEvent.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool HasEventFlag { get; internal set; } = false;
/// </summary>
public partial class NotificationEventArgs
{
+ /// <summary>
+ /// An object can get a rich notification style to a notification object.
+ /// </summary>
public abstract class StyleArgs
{
internal abstract string Key { get; }
return list;
}
+ /// <summary>
+ /// Sends occured event from viewer application to the notification owner.
+ /// </summary>
+ /// <param name="uniqueNumber">The unique number of the notification.</param>
+ /// <param name="type">Event type on notification.</param>
+ /// <exception cref="ArgumentException">Thrown in case of an invalid parameter.</exception>
+ /// <exception cref="UnauthorizedAccessException"> Thrown in case of a permission is denied.</exception>
+ /// <exception cref="InvalidOperationException">Thrown in case of any internal error.</exception>
+ /// <privilege>http://tizen.org/privilege/notification</privilege>
[EditorBrowsable(EditorBrowsableState.Never)]
public static void SendEvent(int uniqueNumber, UserEventType type)
{