X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.Applications.Notification%2FTizen.Applications.Notifications%2FNotification.cs;h=019ea0a9a7e7e918a52dfbe0155e4b8ae6765b2f;hb=8446bec8072fccf008bf09828468d44fd11bfc54;hp=8c12f401f23f3eaf002fa52f48af3fa8e87f8b80;hpb=f22838630714475fe4a57039d5dd53b457598617;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/Notification.cs b/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/Notification.cs index 8c12f40..019ea0a 100755 --- a/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/Notification.cs +++ b/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/Notification.cs @@ -42,6 +42,7 @@ namespace Tizen.Applications.Notifications /// /// Initializes a new instance of the class. /// + /// 3 public Notification() { styleDictionary = new Dictionary(); @@ -51,17 +52,20 @@ namespace Tizen.Applications.Notifications /// /// Gets or sets the tag of notification. /// + /// 3 public string Tag { get; set; } = string.Empty; /// /// Gets or sets the title of notification. /// + /// 3 public string Title { get; set; } = string.Empty; /// /// Gets or sets the icon of notification. /// You should set an absolute path for an image file. /// + /// 3 public string Icon { get; set; } = string.Empty; /// @@ -69,17 +73,20 @@ namespace Tizen.Applications.Notifications /// This SubIcon is displayed in Icon you set. /// You should set an absolute path for an image file. /// + /// 3 public string SubIcon { get; set; } = string.Empty; /// /// Gets or sets the content of notification. /// + /// 3 public string Content { get; set; } = string.Empty; /// /// Gets or sets a value indicating whether TimeStamp of the notification is Visible or not. /// Default to true. /// + /// 3 public bool IsTimeStampVisible { get; set; } = true; /// @@ -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. /// + /// 3 public DateTime TimeStamp { get; set; } /// @@ -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. /// /// + /// 3 public AppControl Action { get; set; } /// @@ -109,6 +118,7 @@ namespace Tizen.Applications.Notifications /// If you set count to negative number, this property throws exception. /// /// Thrown when argument is invalid. + /// 3 public int Count { get @@ -132,6 +142,7 @@ namespace Tizen.Applications.Notifications /// Gets or sets a value indicating whether the notification is Onging or not. /// Default value is false. /// + /// 3 [EditorBrowsable(EditorBrowsableState.Never)] public bool IsOngoing { get; set; } = false; @@ -139,12 +150,14 @@ namespace Tizen.Applications.Notifications /// Gets or sets property. /// /// + /// 3 public NotificationProperty Property { get; set; } = NotificationProperty.None; /// /// Gets or sets object for display at notification. /// /// + /// 3 public ProgressType Progress { get; set; } /// @@ -167,11 +180,11 @@ namespace Tizen.Applications.Notifications /// { /// SoundOption = AccessoryOption.Custom, /// SoundPath = "Sound File Path", - /// IsVibration = true, + /// CanVibrate = true, /// LedOption = AccessoryOption.Custom, - /// LedOnMs = 100; - /// LedOffMs = 50; - /// LedColor = Color.Lime + /// LedOnMillisecond = 100, + /// LedOffMillisecond = 50, + /// LedColor = Tizen.Common.Color.Lime /// }; /// /// notification.Accessory = accessory; @@ -179,15 +192,27 @@ namespace Tizen.Applications.Notifications /// NotificationManager.Post(notification); /// /// + /// 3 public AccessorySet Accessory { get; set; } /// /// 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. /// + /// 4 public bool IsVisible { get; set; } = true; /// + /// Gets a flag for do not show again checkbox. + /// + /// 11 + [EditorBrowsable(EditorBrowsableState.Never)] + public bool CheckBox { get; set; } = false; + + [EditorBrowsable(EditorBrowsableState.Never)] + public bool CheckedValue { get; set; } = false; + + /// /// Gets or sets NotificationSafeHandle. /// internal NotificationSafeHandle Handle @@ -244,6 +269,7 @@ namespace Tizen.Applications.Notifications /// NotificationManager.Post(notification); /// /// + /// 3 public void AddStyle(StyleBase style) { if (style == null) @@ -268,6 +294,7 @@ namespace Tizen.Applications.Notifications /// /// Type of notification style to be queried. /// Thrown when argument is invalid. + /// 3 public void RemoveStyle() where T : Notification.StyleBase, new() { T type = new T(); @@ -291,6 +318,7 @@ namespace Tizen.Applications.Notifications /// The Notification.Style object associated with the given style. /// /// Thrown when argument is invalid. + /// 3 public T GetStyle() where T : Notification.StyleBase, new() { T type = new T(); @@ -333,6 +361,7 @@ namespace Tizen.Applications.Notifications /// notification.SetExtraData("firstKey", bundle); /// /// + /// 4 public void SetExtraData(string key, Bundle value) { if (value == null || value.SafeBundleHandle.IsInvalid || string.IsNullOrEmpty(key)) @@ -360,6 +389,7 @@ namespace Tizen.Applications.Notifications /// /// The key of the extra data to add. /// Thrown when argument is invalid. + /// 4 public void RemoveExtraData(string key) { if (string.IsNullOrEmpty(key)) @@ -383,6 +413,7 @@ namespace Tizen.Applications.Notifications /// The key of the extra data to get. /// Bundle Object that include extra data /// Thrown when argument is invalid. + /// 4 public Bundle GetExtraData(string key) { if (string.IsNullOrEmpty(key)) @@ -402,6 +433,7 @@ namespace Tizen.Applications.Notifications /// /// Releases any unmanaged resources used by this object. /// + /// 3 public void Dispose() { Dispose(true); @@ -457,7 +489,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) @@ -481,23 +513,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)); } }