diff options
author | Umar <m.umar@partner.samsung.com> | 2017-11-02 17:16:32 +0000 |
---|---|---|
committer | Umar <m.umar@partner.samsung.com> | 2017-11-02 17:21:21 +0000 |
commit | 9cfb1872f97b91c8407eed49e511ab49ae890041 (patch) | |
tree | 40911fbb048580bfbd182314298837f6a68eff0f | |
parent | 26fbf79dad926975587644cc6dcb298e6636a596 (diff) | |
download | nui-9cfb1872f97b91c8407eed49e511ab49ae890041.tar.gz nui-9cfb1872f97b91c8407eed49e511ab49ae890041.tar.bz2 nui-9cfb1872f97b91c8407eed49e511ab49ae890041.zip |
Added LoadingStatus property in ImageView.
The purpose was to check whether Image loading was successful or not.
Change-Id: Ibd74d806bc93b3d254208fb96ab8c5427582c0d2
-rwxr-xr-x | Tizen.NUI/src/internal/ManualPINVOKE.cs | 3 | ||||
-rwxr-xr-x | Tizen.NUI/src/public/BaseComponents/ImageView.cs | 15 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Tizen.NUI/src/internal/ManualPINVOKE.cs b/Tizen.NUI/src/internal/ManualPINVOKE.cs index 1f66fb9..8900502 100755 --- a/Tizen.NUI/src/internal/ManualPINVOKE.cs +++ b/Tizen.NUI/src/internal/ManualPINVOKE.cs @@ -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); diff --git a/Tizen.NUI/src/public/BaseComponents/ImageView.cs b/Tizen.NUI/src/public/BaseComponents/ImageView.cs index 5182c4f..a804d11 100755 --- a/Tizen.NUI/src/public/BaseComponents/ImageView.cs +++ b/Tizen.NUI/src/public/BaseComponents/ImageView.cs @@ -355,6 +355,21 @@ namespace Tizen.NUI.BaseComponents } } + public ImageView.LoadingStatusType LoadingStatus + { + get + { + return (ImageView.LoadingStatusType)NDalicManualPINVOKE.View_GetVisualResourceStatus(swigCPtr, (int)Property.IMAGE); + } + } + + public enum LoadingStatusType + { + Preparing, + Ready, + Failed + } + private void UpdateImage() { if (_url != null) |