[Notification/NotificationEventListener]Fix wrong spelling
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.Notification / Tizen.Applications.Notifications / Notification.cs
index 4f0a97a..8ac2c21 100755 (executable)
@@ -42,6 +42,7 @@ namespace Tizen.Applications.Notifications
         /// <summary>
         /// Initializes a new instance of the <see cref="Notification"/> class.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public Notification()
         {
             styleDictionary = new Dictionary<string, StyleBase>();
@@ -51,35 +52,41 @@ namespace Tizen.Applications.Notifications
         /// <summary>
         /// Gets or sets the tag of notification.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string Tag { get; set; } = string.Empty;
 
         /// <summary>
         /// Gets or sets the title of notification.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string Title { get; set; } = string.Empty;
 
         /// <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>
+        /// <since_tizen> 3 </since_tizen>
         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>
+        /// <since_tizen> 3 </since_tizen>
         public string SubIcon { get; set; } = string.Empty;
 
         /// <summary>
         /// Gets or sets the content of notification.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string Content { get; set; } = string.Empty;
 
         /// <summary>
         /// Gets or sets a value indicating whether TimeStamp of the notification is Visible or not.
         /// Default to true.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public bool IsTimeStampVisible { get; set; } = true;
 
         /// <summary>
@@ -90,6 +97,7 @@ namespace Tizen.Applications.Notifications
         /// TimeStamp requires NotificationManager.Post() to be called.
         /// If you set IsVisibleTimeStamp property to false, TimeStamp is not visible in notification.
         /// </remarks>
+        /// <since_tizen> 3 </since_tizen>
         public DateTime TimeStamp { get; set; }
 
         /// <summary>
@@ -99,6 +107,7 @@ namespace Tizen.Applications.Notifications
         /// If you set it to null, the already set AppControl will be removed and nothing will happen when you click on notification.
         /// </remarks>
         /// <seealso cref="Tizen.Applications.AppControl"></seealso>
+        /// <since_tizen> 3 </since_tizen>
         public AppControl Action { get; set; }
 
         /// <summary>
@@ -109,6 +118,7 @@ namespace Tizen.Applications.Notifications
         /// If you set count to negative number, this property throws exception.
         /// </remarks>
         /// <exception cref="ArgumentException">Thrown when argument is invalid.</exception>
+        /// <since_tizen> 3 </since_tizen>
         public int Count
         {
             get
@@ -128,6 +138,11 @@ namespace Tizen.Applications.Notifications
             }
         }
 
+        /// <summary>
+        /// Gets or sets a value indicating whether the notification is Onging or not.
+        /// Default value is false.
+        /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         [EditorBrowsable(EditorBrowsableState.Never)]
         public bool IsOngoing { get; set; } = false;
 
@@ -135,12 +150,14 @@ namespace Tizen.Applications.Notifications
         /// Gets or sets property.
         /// </summary>
         /// <seealso cref="Tizen.Applications.Notifications.NotificationProperty"></seealso>
+        /// <since_tizen> 3 </since_tizen>
         public NotificationProperty Property { get; set; } = NotificationProperty.None;
 
         /// <summary>
         /// Gets or sets <see cref="Notification.ProgressType"/> object for display at notification.
         /// </summary>
         /// <seealso cref="Tizen.Applications.Notifications.Notification.ProgressType"></seealso>
+        /// <since_tizen> 3 </since_tizen>
         public ProgressType Progress { get; set; }
 
         /// <summary>
@@ -175,12 +192,14 @@ namespace Tizen.Applications.Notifications
         /// NotificationManager.Post(notification);
         /// </code>
         /// </example>
+        /// <since_tizen> 3 </since_tizen>
         public AccessorySet Accessory { get; set; }
 
         /// <summary>
         /// Gets or sets a value indicating whether notification is displayed on the default viewer.
         /// If you set false and add style, you can see only style notification.
         /// </summary>
+        /// <since_tizen> 4 </since_tizen>
         public bool IsVisible { get; set; } = true;
 
         /// <summary>
@@ -240,6 +259,7 @@ namespace Tizen.Applications.Notifications
         /// NotificationManager.Post(notification);
         /// </code>
         /// </example>
+        /// <since_tizen> 3 </since_tizen>
         public void AddStyle(StyleBase style)
         {
             if (style == null)
@@ -264,6 +284,7 @@ namespace Tizen.Applications.Notifications
         /// </summary>
         /// <typeparam name="T">Type of notification style to be queried.</typeparam>
         /// <exception cref="ArgumentException">Thrown when argument is invalid.</exception>
+        /// <since_tizen> 3 </since_tizen>
         public void RemoveStyle<T>() where T : Notification.StyleBase, new()
         {
             T type = new T();
@@ -287,6 +308,7 @@ namespace Tizen.Applications.Notifications
         /// The Notification.Style object associated with the given style.
         /// </returns>
         /// <exception cref="ArgumentException">Thrown when argument is invalid.</exception>
+        /// <since_tizen> 3 </since_tizen>
         public T GetStyle<T>() where T : Notification.StyleBase, new()
         {
             T type = new T();
@@ -329,6 +351,7 @@ namespace Tizen.Applications.Notifications
         /// notification.SetExtraData("firstKey", bundle);
         /// </code>
         /// </example>
+        /// <since_tizen> 4 </since_tizen>
         public void SetExtraData(string key, Bundle value)
         {
             if (value == null || value.SafeBundleHandle.IsInvalid || string.IsNullOrEmpty(key))
@@ -356,6 +379,7 @@ namespace Tizen.Applications.Notifications
         /// </remarks>
         /// <param name="key">The key of the extra data to add.</param>
         /// <exception cref="ArgumentException">Thrown when argument is invalid.</exception>
+        /// <since_tizen> 4 </since_tizen>
         public void RemoveExtraData(string key)
         {
             if (string.IsNullOrEmpty(key))
@@ -379,6 +403,7 @@ namespace Tizen.Applications.Notifications
         /// <param name="key">The key of the extra data to get.</param>
         /// <returns>Bundle Object that include extra data</returns>
         /// <exception cref="ArgumentException">Thrown when argument is invalid.</exception>
+        /// <since_tizen> 4 </since_tizen>
         public Bundle GetExtraData(string key)
         {
             if (string.IsNullOrEmpty(key))
@@ -398,6 +423,7 @@ namespace Tizen.Applications.Notifications
         /// <summary>
         /// Releases any unmanaged resources used by this object.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public void Dispose()
         {
             Dispose(true);
@@ -453,7 +479,7 @@ namespace Tizen.Applications.Notifications
             foreach (string key in GetextraDataDictionary().Keys)
             {
                 Log.Info(LogTag, "Start to bind Notification.ExtenderData to SafeHandle");
-                Interop.Notification.SetExtentionData(Handle, key, extraDataDictionary[key].SafeBundleHandle);
+                Interop.Notification.SetExtensionData(Handle, key, extraDataDictionary[key].SafeBundleHandle);
             }
 
             foreach (Notification.StyleBase style in styleDictionary.Values)
@@ -477,23 +503,23 @@ namespace Tizen.Applications.Notifications
 
         internal Notification Build()
         {
-            IntPtr extention = IntPtr.Zero;
-            IntPtr extentionBundlePtr = IntPtr.Zero;
+            IntPtr extension = IntPtr.Zero;
+            IntPtr extensionBundlePtr = IntPtr.Zero;
 
             NotificationBinder.BindSafeHandle(this);
 
-            Interop.Notification.GetExtentionBundle(Handle, out extention, out extentionBundlePtr);
+            Interop.Notification.GetExtensionBundle(Handle, out extension, out extensionBundlePtr);
 
-            if (extention != IntPtr.Zero)
+            if (extension != IntPtr.Zero)
             {
-                Bundle bundle = new Bundle(new SafeBundleHandle(extention, false));
+                Bundle bundle = new Bundle(new SafeBundleHandle(extension, false));
                 foreach (string key in bundle.Keys)
                 {
                     if (key.StartsWith("_NOTIFICATION_EXTENSION_EVENT_"))
                         continue;
 
                     SafeBundleHandle sbh;
-                    Interop.Notification.GetExtentionData(Handle, key, out sbh);
+                    Interop.Notification.GetExtensionData(Handle, key, out sbh);
                     extraDataDictionary.Add(key, new Bundle(sbh));
                 }
             }