[WidgeApplication] Modify WidgetBase internal Id memeber to property (#546)
authorHyunho Kang <hhstark.kang@samsung.com>
Tue, 4 Dec 2018 06:55:00 +0000 (15:55 +0900)
committersemun-lee <35090067+semun-lee@users.noreply.github.com>
Tue, 4 Dec 2018 06:55:00 +0000 (15:55 +0900)
* Modify WidgetBase internal Id memeber to protected

- support widget_app_get_id

Signed-off-by: hyunho <hhstark.kang@samsung.com>
* Remove test code

Signed-off-by: hyunho <hhstark.kang@samsung.com>
* Modify WidgetBase id to property

Signed-off-by: hyunho <hhstark.kang@samsung.com>
* Use auto generated property

Signed-off-by: hyunho <hhstark.kang@samsung.com>
* Add feature documentation

Signed-off-by: hyunho <hhstark.kang@samsung.com>
src/Tizen.Applications.WidgetApplication/Tizen.Applications/WidgetBase.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 26e8400..c7f8dbf
@@ -26,7 +26,6 @@ namespace Tizen.Applications
     public abstract class WidgetBase
     {
         internal IntPtr Handle;
-        internal string Id;
         private const string LogTag = "Tizen.Applications.WidgetBase";
 
         /// <summary>
@@ -62,9 +61,17 @@ namespace Tizen.Applications
         }
 
         /// <summary>
+        /// ID for this widget instance.
+        /// It will be created after OnCreate method is invoked.
+        /// </summary>
+        /// <since_tizen> 6 </since_tizen>
+        public string Id { get; private set; }
+
+        /// <summary>
         /// Sets the content information to the widget.
         /// </summary>
         /// <param name="info">The data set to save.</param>
+        /// <feature>http://tizen.org/feature/shell.appwidget</feature>
         /// <exception cref="ArgumentException">Thrown when failed because of an invalid argument.</exception>
         /// <exception cref="NotSupportedException">Thrown when the API is not supported in this device.</exception>
         /// <exception cref="InvalidOperationException">Thrown in case of an unrecoverable error.</exception>
@@ -97,6 +104,7 @@ namespace Tizen.Applications
         /// Sends the title to the widget.
         /// </summary>
         /// <param name="title">When an accessibility mode is turned on, this string will be read.</param>
+        /// <feature>http://tizen.org/feature/shell.appwidget</feature>
         /// <exception cref="ArgumentException">Thrown when failed because of an invalid argument.</exception>
         /// <exception cref="NotSupportedException">Thrown when the API is not supported in this device.</exception>
         /// <exception cref="InvalidOperationException">Thrown in case of an unrecoverable error.</exception>
@@ -127,6 +135,7 @@ namespace Tizen.Applications
         /// <summary>
         /// Finishes the context for the widget instance.
         /// </summary>
+        /// <feature>http://tizen.org/feature/shell.appwidget</feature>
         /// <exception cref="NotSupportedException">Thrown when the API is not supported in this device.</exception>
         /// <exception cref="InvalidOperationException">Thrown in case of an unrecoverable error.</exception>
         /// <since_tizen> 3 </since_tizen>