[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 db1a00e..4d7e48d 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 e2db4ba..47aeba4 100644 (file)
@@ -43,9 +43,6 @@ internal static partial class Interop
         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);
 
         [DllImport(Libraries.Elementary)]