[NUI] Added LoadingStatus property in ImageView. 76/158976/1
authordongsug.song <dongsug.song@samsung.com>
Mon, 6 Nov 2017 07:31:13 +0000 (16:31 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Mon, 6 Nov 2017 07:48:03 +0000 (16:48 +0900)
The purpose was to check whether Image loading was successful or not.
(https://review.tizen.org/gerrit/#/c/158730/2)

Change-Id: I5d6aedd9de0d99dd2b5d45f545dda944101ee3a4
Signed-off-by: dongsug.song <dongsug.song@samsung.com>
src/Tizen.NUI/src/internal/ManualPINVOKE.cs
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs

index d98da17..13a3bc2 100755 (executable)
@@ -181,6 +181,9 @@ namespace Tizen.NUI
         [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_ViewWrapperImpl_CreateTransition")]
         public static extern global::System.IntPtr ViewWrapperImpl_CreateTransition(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
 
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_View_GetVisualResourceStatus")]
+        public static extern int View_GetVisualResourceStatus(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
         [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_View_CreateTransition")]
         public static extern global::System.IntPtr View_CreateTransition(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
 
index 4030125..a2379b3 100755 (executable)
@@ -437,6 +437,51 @@ namespace Tizen.NUI.BaseComponents
         }
 
 
+        /// <summary>
+        /// Get the loading state of the visual resource.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public ImageView.LoadingStatusType LoadingStatus
+        {
+            get
+            {
+                return (ImageView.LoadingStatusType)NDalicManualPINVOKE.View_GetVisualResourceStatus(swigCPtr, (int)Property.IMAGE);
+            }
+        }
+
+        /// <summary>
+        /// Enumeration for LoadingStatus of image.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public enum LoadingStatusType
+        {
+            /// <summary>
+            /// Loading preparing status.
+            /// </summary>
+            /// <since_tizen> 5 </since_tizen>
+            /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+            [EditorBrowsable(EditorBrowsableState.Never)]
+            Preparing,
+            /// <summary>
+            /// Loading ready status.
+            /// </summary>
+            /// <since_tizen> 5 </since_tizen>
+            /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+            [EditorBrowsable(EditorBrowsableState.Never)]
+            Ready,
+            /// <summary>
+            /// Loading failed status.
+            /// </summary>
+            /// <since_tizen> 5 </since_tizen>
+            /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+            [EditorBrowsable(EditorBrowsableState.Never)]
+            Failed
+        }
+
 
         private void UpdateImage()
         {