[ElmSharp] Obsolete ContextPopup.IsAvailableDirection (#954)
authorKangho Hur <kangho.hur@samsung.com>
Thu, 1 Aug 2019 04:34:08 +0000 (13:34 +0900)
committerarosis78 <jh0506.yun@samsung.com>
Thu, 1 Aug 2019 04:34:08 +0000 (13:34 +0900)
src/ElmSharp/ElmSharp/ContextPopup.cs
src/ElmSharp/Interop/Interop.Elementary.CtxPopup.cs

index db1a00e2208dfc6cce752028039eb60970eb58cd..4d7e48db4121c673897254879e08951b654851a2 100644 (file)
@@ -224,9 +224,11 @@ namespace ElmSharp
         /// Get false if you cannot put it in the direction. Get true if it's possible.
         /// </returns>
         /// <since_tizen> preview </since_tizen>
+        /// [Obsolete("IsAvailableDirection is obsolete as of API6 and is no longer supported.")]
         public bool IsAvailableDirection(ContextPopupDirection direction)
         {
-            return Interop.Elementary.elm_ctxpopup_direction_available_get(RealHandle, (int)direction);
+            Console.WriteLine("ContextPopup.IsAvailableDirection is obsolete as of API6 and is no longer supported.");
+            return false;
         }
 
         /// <summary>
index e2db4ba99f07485bd1ee4761a5ca78c2be18b8c3..47aeba431382ed7539494520e1faf5ed2b9a693d 100644 (file)
@@ -42,9 +42,6 @@ internal static partial class Interop
         [DllImport(Libraries.Elementary)]
         internal static extern void elm_ctxpopup_hover_parent_set(IntPtr obj, IntPtr parent);
 
-        [DllImport(Libraries.Elementary)]
-        internal static extern bool elm_ctxpopup_direction_available_get(IntPtr obj, int direction);
-
         [DllImport(Libraries.Elementary)]
         internal static extern void elm_ctxpopup_direction_priority_set(IntPtr obj, int first, int second, int third, int fourth);