Deprecating Attach Panel APIs (#5768) accepted/tizen/unified/20231205.024657
authortarunkumarmahay1999 <113899126+tarunkumarmahay1999@users.noreply.github.com>
Thu, 30 Nov 2023 02:41:23 +0000 (08:11 +0530)
committerGitHub <noreply@github.com>
Thu, 30 Nov 2023 02:41:23 +0000 (11:41 +0900)
Co-authored-by: Jay Cho <chojoong@gmail.com>
src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs
src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ContentCategory.cs
src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/EventType.cs
src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/ResultEventArgs.cs
src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateEventArgs.cs
src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/StateType.cs

index 488e8dd1dc0ab184f054ad60e4ef4b1a496c218d..0aad56a071aed6f4225528dcb0e901dcbd2da511 100755 (executable)
@@ -6,6 +6,7 @@ namespace Tizen.Applications.AttachPanel
     /// <summary>
     /// Represents the immutable class for the attach panel.
     /// </summary>
+    [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
     public partial class AttachPanel
     {
         /// <summary>
@@ -18,6 +19,7 @@ namespace Tizen.Applications.AttachPanel
         /// <exception cref="OutOfMemoryException">Thrown when an attempt to allocate the memory fails.</exception>
         /// <exception cref="InvalidOperationException">Thrown when the AttachPanel already exists or the <paramref name="conformant"/> is not a conformant object.</exception>
         /// <exception cref="NotSupportedException">Thrown when the AttachPanel is not supported in the device.</exception>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public AttachPanel(EvasObject conformant)
         {
             if (conformant == IntPtr.Zero)
@@ -63,6 +65,7 @@ namespace Tizen.Applications.AttachPanel
         /// <exception cref="InvalidOperationException">Thrown when the AttachPanel already exists or the <paramref name="conformant"/> is not a conformant object.</exception>
         /// <exception cref="NotSupportedException">Thrown when the AttachPanel is not supported in the device.</exception>
         /// <exception cref="ArgumentNullException">Thrown when the parameter is null</exception>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public AttachPanel(Conformant conformant) : this(conformant as EvasObject)
         {
         }
@@ -88,6 +91,7 @@ namespace Tizen.Applications.AttachPanel
         /// <exception cref="InvalidOperationException">Thrown when the AttachPanel is not created yet or is already destroyed.</exception>
         /// <exception cref="NotSupportedException">Thrown when the AttachPanel is not supported in the device.</exception>
         /// <exception cref="ArgumentException">Thrown when the parameter is invalid</exception>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public StateType State
         {
             get
@@ -117,6 +121,7 @@ namespace Tizen.Applications.AttachPanel
         /// <feature>http://tizen.org/feature/attach_panel</feature>
         /// <exception cref="InvalidOperationException">Thrown when the AttachPanel is not created yet or is already destroyed.</exception>
         /// <exception cref="NotSupportedException">Thrown when the AttachPanel is not supported in the device.</exception>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public bool Visible
         {
             get
@@ -175,6 +180,7 @@ namespace Tizen.Applications.AttachPanel
         /// <exception cref="InvalidOperationException">Thrown when the AttachPanel is not created yet or is already destroyed.</exception>
         /// <exception cref="NotSupportedException">Thrown when the AttachPanel is not supported in the device.</exception>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public void AddCategory(ContentCategory category, Bundle extraData)
         {
             if (IsAttachPanelSupported() == false)
@@ -206,6 +212,7 @@ namespace Tizen.Applications.AttachPanel
         /// <exception cref="InvalidOperationException">Thrown when the AttachPanel is not created yet or is already destroyed.</exception>
         /// <exception cref="NotSupportedException">Thrown when the AttachPanel is not supported in the device.</exception>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public void RemoveCategory(ContentCategory category)
         {
             if (IsAttachPanelSupported() == false)
@@ -233,6 +240,7 @@ namespace Tizen.Applications.AttachPanel
         /// <exception cref="OutOfMemoryException">Thrown when an attempt to allocate the memory fails.</exception>
         /// <exception cref="NotSupportedException">Thrown when the AttachPanel is not supported in the device.</exception>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public void SetExtraData(ContentCategory category, Bundle extraData)
         {
             if (extraData == null)
@@ -267,6 +275,7 @@ namespace Tizen.Applications.AttachPanel
         /// <exception cref="InvalidOperationException">Thrown when the AttachPanel is destroyed.</exception>
         /// <exception cref="NotSupportedException">Thrown when the AttachPanel is not supported in the device.</exception>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public void Show()
         {
             if (IsAttachPanelSupported() == false)
@@ -291,6 +300,7 @@ namespace Tizen.Applications.AttachPanel
         /// <exception cref="InvalidOperationException">Thrown when the AttachPanel is destroyed.</exception>
         /// <exception cref="NotSupportedException">Thrown when the AttachPanel is not supported in the device.</exception>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public void Show(bool animation)
         {
             if (IsAttachPanelSupported() == false)
@@ -322,6 +332,7 @@ namespace Tizen.Applications.AttachPanel
         /// <exception cref="InvalidOperationException">Thrown when the AttachPanel is destroyed.</exception>
         /// <exception cref="NotSupportedException">Thrown when the AttachPanel is not supported in the device.</exception>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public void Hide()
         {
             if (IsAttachPanelSupported() == false)
@@ -346,6 +357,7 @@ namespace Tizen.Applications.AttachPanel
         /// <exception cref="InvalidOperationException">Thrown when the AttachPanel is destroyed.</exception>
         /// <exception cref="NotSupportedException">Thrown when the AttachPanel is not supported in the device.</exception>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public void Hide(bool animation)
         {
             if (IsAttachPanelSupported() == false)
@@ -374,6 +386,7 @@ namespace Tizen.Applications.AttachPanel
         /// Occurs when the reserved events are published from the panel-side.
         /// </summary>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public event EventHandler<StateEventArgs> EventChanged
         {
             add
@@ -400,6 +413,7 @@ namespace Tizen.Applications.AttachPanel
         /// Occurs when a user selects and confirms something to attach in the AttachPanel.
         /// </summary>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public event EventHandler<ResultEventArgs> ResultCallback
         {
             add
index bc65fc675dded03c2546750f7a0d1f87ce430738..4f3e38869e4166c1373404392d20caf544149833 100755 (executable)
@@ -1,9 +1,12 @@
+using System;
+
 namespace Tizen.Applications.AttachPanel
 {
     /// <summary>
     /// Enumeration for the attach panel content category.
     /// </summary>
     /// <since_tizen> 4 </since_tizen>
+    [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
     public enum ContentCategory
     {
         /// <summary>
index f5906a6bcc15a0e32416ed9d69a8b3e26746bca5..5a816939bf4de5a356bad6f84f1861a9b49710ea 100755 (executable)
@@ -1,9 +1,12 @@
+using System;
+
 namespace Tizen.Applications.AttachPanel
 {
     /// <summary>
     /// Enumeration for the attach panel event.
     /// </summary>
     /// <since_tizen> 4 </since_tizen>
+    [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
     public enum EventType
     {
         /// <summary>
index 272e75af15ff6e87c2ac128398bbbc4946523672..62ff4647c56b81788ee0843fcc0746a3ad60f310 100755 (executable)
@@ -6,6 +6,7 @@ namespace Tizen.Applications.AttachPanel
     /// A class for the event arguments of the result event.
     /// </summary>
     /// <since_tizen> 4 </since_tizen>
+    [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
     public class ResultEventArgs : EventArgs
     {
         private readonly ContentCategory _category;
@@ -23,6 +24,7 @@ namespace Tizen.Applications.AttachPanel
         /// Results are from the content category.
         /// </summary>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public ContentCategory Category
         {
             get
@@ -36,6 +38,7 @@ namespace Tizen.Applications.AttachPanel
         /// The caller application has to use the ExtraData property to get received data.
         /// </summary>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public AppControl Result
         {
             get
@@ -48,6 +51,7 @@ namespace Tizen.Applications.AttachPanel
         /// Property for the result of the AppControl.
         /// </summary>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public AppControlReplyResult ResultCode
         {
             get
index d053f13709a438fc90ef83ec92aae48bd9bdd4fe..29fa1ccb98c473df5eba1d5d6104b9a73e6c9859 100755 (executable)
@@ -6,6 +6,7 @@ namespace Tizen.Applications.AttachPanel
     /// A class for the event arguments of the state event.
     /// </summary>
     /// <since_tizen> 4 </since_tizen>
+    [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
     public class StateEventArgs : EventArgs
     {
         private readonly EventType _eventType;
@@ -19,6 +20,7 @@ namespace Tizen.Applications.AttachPanel
         /// Property for the event type.
         /// </summary>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
         public EventType EventType
         {
             get
index da250b64ca57c903086e86cc7859b9eda1861245..283567b58cb78e029734abf28566390362efa581 100755 (executable)
@@ -1,9 +1,12 @@
+using System;
+
 namespace Tizen.Applications.AttachPanel
 {
     /// <summary>
     /// Enumeration for the attach panel's window state.
     /// </summary>
     /// <since_tizen> 4 </since_tizen>
+    [Obsolete("Deprecated since API Level 12. Will be removed in API Level 14.")]
     public enum StateType
     {
         /// <summary>