2 * Copyright(c) 2018 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.Runtime.InteropServices;
19 using System.ComponentModel;
20 using Tizen.NUI.Binding;
22 namespace Tizen.NUI.BaseComponents
26 /// ImageView is a class for displaying an image resource.<br />
27 /// An instance of ImageView can be created using a URL or an image instance.<br />
29 /// <since_tizen> 3 </since_tizen>
30 public class ImageView : View
32 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
33 [EditorBrowsable(EditorBrowsableState.Never)]
34 public static readonly BindableProperty ResourceUrlProperty = BindableProperty.Create(nameof(ImageView.ResourceUrl), typeof(string), typeof(ImageView), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
36 var imageView = (ImageView)bindable;
39 string url = (string)newValue;
40 if (imageView.IsCreateByXaml && url.Contains("*Resource*"))
42 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
43 url = url.Replace("*Resource*", resource);
46 imageView.UpdateImage();
49 defaultValueCreator: (bindable) =>
51 var imageView = (ImageView)bindable;
52 Tizen.NUI.Object.GetProperty(imageView.swigCPtr, ImageView.Property.IMAGE).Get(out imageView._url);
53 return imageView._url;
55 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
56 [EditorBrowsable(EditorBrowsableState.Never)]
57 public static readonly BindableProperty ImageProperty = BindableProperty.Create("Image", typeof(PropertyMap), typeof(ImageView), null, propertyChanged: (bindable, oldValue, newValue) =>
59 var imageView = (ImageView)bindable;
62 PropertyMap map = (PropertyMap)newValue;
63 if (imageView.IsCreateByXaml)
65 string url = "", alphaMaskURL = "", auxiliaryImageURL = "";
66 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
67 PropertyValue urlValue = map.Find(NDalic.IMAGE_VISUAL_URL);
69 if (urlValue != null) ret = urlValue.Get(out url);
70 PropertyMap mmap = new PropertyMap();
71 if (ret && url.Contains("*Resource*"))
73 url = url.Replace("*Resource*", resource);
74 mmap.Insert(NDalic.IMAGE_VISUAL_URL, new PropertyValue(url));
78 PropertyValue alphaMaskUrlValue = map.Find(NDalic.IMAGE_VISUAL_ALPHA_MASK_URL);
79 if (alphaMaskUrlValue != null) ret = alphaMaskUrlValue.Get(out alphaMaskURL);
80 if (ret && alphaMaskURL.Contains("*Resource*"))
82 alphaMaskURL = alphaMaskURL.Replace("*Resource*", resource);
83 mmap.Insert(NDalic.IMAGE_VISUAL_URL, new PropertyValue(alphaMaskURL));
87 PropertyValue auxiliaryImageURLValue = map.Find(NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_URL);
88 if (auxiliaryImageURLValue != null) ret = auxiliaryImageURLValue.Get(out auxiliaryImageURL);
89 if (ret && auxiliaryImageURL.Contains("*Resource*"))
91 auxiliaryImageURL = auxiliaryImageURL.Replace("*Resource*", resource);
92 mmap.Insert(NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_URL, new PropertyValue(auxiliaryImageURL));
97 if (imageView._border == null)
99 Tizen.NUI.Object.SetProperty(imageView.swigCPtr, ImageView.Property.IMAGE, new Tizen.NUI.PropertyValue(map));
103 defaultValueCreator: (bindable) =>
105 var imageView = (ImageView)bindable;
106 if (imageView._border == null)
108 PropertyMap temp = new PropertyMap();
109 Tizen.NUI.Object.GetProperty(imageView.swigCPtr, ImageView.Property.IMAGE).Get(temp);
117 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
118 [EditorBrowsable(EditorBrowsableState.Never)]
119 public static readonly BindableProperty PreMultipliedAlphaProperty = BindableProperty.Create("PreMultipliedAlpha", typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) =>
121 var imageView = (ImageView)bindable;
122 if (newValue != null)
124 Tizen.NUI.Object.SetProperty(imageView.swigCPtr, ImageView.Property.PRE_MULTIPLIED_ALPHA, new Tizen.NUI.PropertyValue((bool)newValue));
127 defaultValueCreator: (bindable) =>
129 var imageView = (ImageView)bindable;
131 Tizen.NUI.Object.GetProperty(imageView.swigCPtr, ImageView.Property.PRE_MULTIPLIED_ALPHA).Get(out temp);
134 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
135 [EditorBrowsable(EditorBrowsableState.Never)]
136 public static readonly BindableProperty PixelAreaProperty = BindableProperty.Create("PixelArea", typeof(RelativeVector4), typeof(ImageView), null, propertyChanged: (bindable, oldValue, newValue) =>
138 var imageView = (ImageView)bindable;
139 if (newValue != null)
141 Tizen.NUI.Object.SetProperty(imageView.swigCPtr, ImageView.Property.PIXEL_AREA, new Tizen.NUI.PropertyValue((RelativeVector4)newValue));
144 defaultValueCreator: (bindable) =>
146 var imageView = (ImageView)bindable;
147 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
148 Tizen.NUI.Object.GetProperty(imageView.swigCPtr, ImageView.Property.PIXEL_AREA).Get(temp);
149 RelativeVector4 relativeTemp = new RelativeVector4(temp.X, temp.Y, temp.Z, temp.W);
152 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
153 [EditorBrowsable(EditorBrowsableState.Never)]
154 public static readonly BindableProperty BorderProperty = BindableProperty.Create("Border", typeof(Rectangle), typeof(ImageView), null, propertyChanged: (bindable, oldValue, newValue) =>
156 var imageView = (ImageView)bindable;
157 if (newValue != null)
159 imageView._border = (Rectangle)newValue;
160 imageView.UpdateImage();
163 defaultValueCreator: (bindable) =>
165 var imageView = (ImageView)bindable;
166 return imageView._border;
168 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
169 [EditorBrowsable(EditorBrowsableState.Never)]
170 public static readonly BindableProperty BorderOnlyProperty = BindableProperty.Create("BorderOnly", typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) =>
172 var imageView = (ImageView)bindable;
173 if (newValue != null)
175 imageView._borderOnly = (bool)newValue;
176 imageView.UpdateImage();
179 defaultValueCreator: (bindable) =>
181 var imageView = (ImageView)bindable;
182 return imageView._borderOnly ?? false;
184 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
185 [EditorBrowsable(EditorBrowsableState.Never)]
186 public static readonly BindableProperty SynchronosLoadingProperty = BindableProperty.Create("SynchronosLoading", typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) =>
188 var imageView = (ImageView)bindable;
189 if (newValue != null)
191 imageView._synchronousLoading = (bool)newValue;
192 imageView.UpdateImage();
195 defaultValueCreator: (bindable) =>
197 var imageView = (ImageView)bindable;
198 return imageView._synchronousLoading ?? false;
200 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
201 [EditorBrowsable(EditorBrowsableState.Never)]
202 public static readonly BindableProperty OrientationCorrectionProperty = BindableProperty.Create("OrientationCorrection", typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) =>
204 var imageView = (ImageView)bindable;
205 if (newValue != null)
207 imageView._orientationCorrection = (bool)newValue;
208 imageView.UpdateImage();
211 defaultValueCreator: (bindable) =>
213 var imageView = (ImageView)bindable;
214 return imageView._orientationCorrection ?? false;
217 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
218 private EventHandler<ResourceReadyEventArgs> _resourceReadyEventHandler;
219 private ResourceReadyEventCallbackType _resourceReadyEventCallback;
220 private EventHandler<ResourceLoadedEventArgs> _resourceLoadedEventHandler;
221 private _resourceLoadedCallbackType _resourceLoadedCallback;
223 private Rectangle _border = null;
224 private PropertyMap _nPatchMap = null;
225 private bool? _synchronousLoading = null;
226 private bool? _borderOnly = null;
227 private string _url = null;
228 private bool? _orientationCorrection = null;
232 /// Creates an initialized ImageView.
234 /// <since_tizen> 3 </since_tizen>
235 public ImageView() : this(NDalicPINVOKE.ImageView_New__SWIG_0(), true)
237 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
241 /// Creates an initialized ImageView from a URL to an image resource.<br />
242 /// If the string is empty, ImageView will not display anything.<br />
244 /// <param name="url">The URL of the image resource to display.</param>
245 /// <since_tizen> 3 </since_tizen>
246 public ImageView(string url) : this(NDalicPINVOKE.ImageView_New__SWIG_2(url), true)
249 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
252 internal ImageView(string url, Uint16Pair size) : this(NDalicPINVOKE.ImageView_New__SWIG_3(url, Uint16Pair.getCPtr(size)), true)
255 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
258 internal ImageView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ImageView_SWIGUpcast(cPtr), cMemoryOwn)
260 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
263 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
264 private delegate void ResourceReadyEventCallbackType(IntPtr data);
265 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
266 private delegate void _resourceLoadedCallbackType(IntPtr view);
269 /// An event for ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
270 /// This signal is emitted after all resources required by a control are loaded and ready.<br />
271 /// Most resources are only loaded when the control is placed on the stage.<br />
273 /// <since_tizen> 3 </since_tizen>
274 public event EventHandler<ResourceReadyEventArgs> ResourceReady
278 if (_resourceReadyEventHandler == null)
280 _resourceReadyEventCallback = OnResourceReady;
281 ResourceReadySignal(this).Connect(_resourceReadyEventCallback);
284 _resourceReadyEventHandler += value;
289 _resourceReadyEventHandler -= value;
291 if (_resourceReadyEventHandler == null && ResourceReadySignal(this).Empty() == false)
293 ResourceReadySignal(this).Disconnect(_resourceReadyEventCallback);
298 internal event EventHandler<ResourceLoadedEventArgs> ResourceLoaded
302 if (_resourceLoadedEventHandler == null)
304 _resourceLoadedCallback = OnResourceLoaded;
305 this.ResourceReadySignal(this).Connect(_resourceLoadedCallback);
308 _resourceLoadedEventHandler += value;
312 _resourceLoadedEventHandler -= value;
314 if (_resourceLoadedEventHandler == null && this.ResourceReadySignal(this).Empty() == false)
316 this.ResourceReadySignal(this).Disconnect(_resourceLoadedCallback);
322 /// Enumeration for LoadingStatus of image.
324 /// <since_tizen> 5 </since_tizen>
325 public enum LoadingStatusType
328 /// Loading preparing status.
330 /// <since_tizen> 5 </since_tizen>
333 /// Loading ready status.
335 /// <since_tizen> 5 </since_tizen>
338 /// Loading failed status.
340 /// <since_tizen> 5 </since_tizen>
345 /// ImageView ResourceUrl, type string.
346 /// This is one of mandatory property. Even if not set or null set, it sets empty string ("") internally.
347 /// When it is set as null, it gives empty string ("") to be read.
349 /// <since_tizen> 3 </since_tizen>
350 public string ResourceUrl
354 return (string)GetValue(ResourceUrlProperty);
358 _url = (value == null? "" : value);
359 SetValue(ResourceUrlProperty, _url);
360 NotifyPropertyChanged();
365 /// This will be deprecated, please use Image instead. <br />
366 /// ImageView ImageMap, type PropertyMap: string if it is a URL, map otherwise.
368 /// <since_tizen> 3 </since_tizen>
369 [Obsolete("Please do not use! This will be deprecated! Please use Image property instead!")]
370 [EditorBrowsable(EditorBrowsableState.Never)]
371 public PropertyMap ImageMap
377 PropertyMap temp = new PropertyMap();
378 GetProperty(ImageView.Property.IMAGE).Get(temp);
390 if (_url != null) { value.Add("url", new PropertyValue(_url)); }
391 SetProperty(ImageView.Property.IMAGE, new Tizen.NUI.PropertyValue(value));
392 NotifyPropertyChanged();
398 /// ImageView Image, type PropertyMap
400 /// <since_tizen> 4 </since_tizen>
401 public PropertyMap Image
407 return (PropertyMap)GetValue(ImageProperty);
418 SetValue(ImageProperty, value);
419 NotifyPropertyChanged();
425 /// ImageView PreMultipliedAlpha, type Boolean.<br />
426 /// Image must be initialized.<br />
428 /// <since_tizen> 3 </since_tizen>
429 public bool PreMultipliedAlpha
433 return (bool)GetValue(PreMultipliedAlphaProperty);
437 SetValue(PreMultipliedAlphaProperty, value);
438 NotifyPropertyChanged();
443 /// ImageView PixelArea, type Vector4 (Animatable property).<br />
444 /// Pixel area is a relative value with the whole image area as [0.0, 0.0, 1.0, 1.0].<br />
446 /// <since_tizen> 3 </since_tizen>
447 public RelativeVector4 PixelArea
451 return (RelativeVector4)GetValue(PixelAreaProperty);
455 SetValue(PixelAreaProperty, value);
456 NotifyPropertyChanged();
461 /// The border of the image in the order: left, right, bottom, top.<br />
462 /// If set, ImageMap will be ignored.<br />
463 /// For N-Patch images only.<br />
466 /// <since_tizen> 3 </since_tizen>
467 public Rectangle Border
471 return (Rectangle)GetValue(BorderProperty);
475 SetValue(BorderProperty, value);
476 NotifyPropertyChanged();
481 /// Gets or sets whether to draw the borders only (if true).<br />
482 /// If not specified, the default is false.<br />
483 /// For N-Patch images only.<br />
486 /// <since_tizen> 3 </since_tizen>
487 public bool BorderOnly
491 return (bool)GetValue(BorderOnlyProperty);
495 SetValue(BorderOnlyProperty, value);
496 NotifyPropertyChanged();
501 /// Gets or sets whether to synchronos loading the resourceurl of image.<br />
503 /// <since_tizen> 3 </since_tizen>
504 public bool SynchronosLoading
508 return (bool)GetValue(SynchronosLoadingProperty);
512 SetValue(SynchronosLoadingProperty, value);
513 NotifyPropertyChanged();
518 /// Gets or sets whether to automatically correct the orientation of an image.<br />
520 /// <since_tizen> 5 </since_tizen>
521 public bool OrientationCorrection
525 return (bool)GetValue(OrientationCorrectionProperty);
529 SetValue(OrientationCorrectionProperty, value);
530 NotifyPropertyChanged();
535 /// Gets the loading state of the visual resource.
537 /// <since_tizen> 5 </since_tizen>
538 public ImageView.LoadingStatusType LoadingStatus
542 return (ImageView.LoadingStatusType)NDalicManualPINVOKE.View_GetVisualResourceStatus(swigCPtr, (int)Property.IMAGE);
547 /// Downcasts a handle to imageView handle.
549 /// Please do not use! this will be deprecated!
550 /// Instead please use as keyword.
551 /// <since_tizen> 3 </since_tizen>
552 [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead! " +
554 "BaseHandle handle = new ImageView(imagePath); " +
555 "ImageView image = handle as ImageView")]
556 [EditorBrowsable(EditorBrowsableState.Never)]
557 public static ImageView DownCast(BaseHandle handle)
559 ImageView ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as ImageView;
560 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
565 /// Sets this ImageView from the given URL.<br />
566 /// If the URL is empty, ImageView will not display anything.<br />
568 /// <param name="url">The URL to the image resource to display.</param>
569 /// <since_tizen> 3 </since_tizen>
570 public void SetImage(string url)
573 NDalicPINVOKE.ImageView_SetImage__SWIG_1(swigCPtr, url);
574 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
578 /// Queries if all resources required by a control are loaded and ready.<br />
579 /// Most resources are only loaded when the control is placed on the stage.<br />
580 /// True if the resources are loaded and ready, false otherwise.<br />
582 /// <since_tizen> 3 </since_tizen>
583 public new bool IsResourceReady()
585 bool ret = NDalicPINVOKE.IsResourceReady(swigCPtr);
586 if (NDalicPINVOKE.SWIGPendingException.Pending)
587 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
592 /// Forcefully reloads the image. All the visuals using this image will reload to the latest image.
594 /// <since_tizen> 5 </since_tizen>
597 this.DoAction(ImageView.Property.IMAGE, Property.ACTION_RELOAD, new PropertyValue(0));
601 /// Plays the animated GIF. This is also the default playback mode.
603 /// <since_tizen> 5 </since_tizen>
606 this.DoAction(ImageView.Property.IMAGE, Property.ACTION_PLAY, new PropertyValue(0));
610 /// Pauses the animated GIF.
612 /// <since_tizen> 5 </since_tizen>
615 this.DoAction(ImageView.Property.IMAGE, Property.ACTION_PAUSE, new PropertyValue(0));
619 /// Stops the animated GIF.
621 /// <since_tizen> 5 </since_tizen>
624 this.DoAction(ImageView.Property.IMAGE, Property.ACTION_STOP, new PropertyValue(0));
627 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImageView obj)
629 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
632 internal void SetImage(string url, Uint16Pair size)
635 NDalicPINVOKE.ImageView_SetImage__SWIG_2(swigCPtr, url, Uint16Pair.getCPtr(size));
636 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
639 internal ViewResourceReadySignal ResourceReadySignal(View view)
641 ViewResourceReadySignal ret = new ViewResourceReadySignal(NDalicPINVOKE.ResourceReadySignal(View.getCPtr(view)), false);
642 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
646 internal ResourceLoadingStatusType GetResourceStatus()
648 return (ResourceLoadingStatusType)NDalicManualPINVOKE.View_GetVisualResourceStatus(this.swigCPtr, Property.IMAGE);
652 /// you can override it to clean-up your own resources.
654 /// <param name="type">DisposeTypes</param>
655 /// <since_tizen> 3 </since_tizen>
656 protected override void Dispose(DisposeTypes type)
663 if (type == DisposeTypes.Explicit)
666 //Release your own managed resources here.
667 //You should release all of your own disposable objects here.
670 _nPatchMap?.Dispose();
674 //Release your own unmanaged resources here.
675 //You should not access any managed member here except static instance.
676 //because the execution order of Finalizes is non-deterministic.
678 if (swigCPtr.Handle != global::System.IntPtr.Zero)
683 NDalicPINVOKE.delete_ImageView(swigCPtr);
685 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
691 // Callback for View ResourceReady signal
692 private void OnResourceReady(IntPtr data)
694 ResourceReadyEventArgs e = new ResourceReadyEventArgs();
697 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
700 if (_resourceReadyEventHandler != null)
702 _resourceReadyEventHandler(this, e);
706 private void UpdateImage()
711 { // for nine-patch image
712 _nPatchMap = new PropertyMap();
713 _nPatchMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.NPatch));
714 _nPatchMap.Add(NpatchImageVisualProperty.URL, new PropertyValue(_url));
715 _nPatchMap.Add(NpatchImageVisualProperty.Border, new PropertyValue(_border));
716 if (_borderOnly != null) { _nPatchMap.Add(NpatchImageVisualProperty.BorderOnly, new PropertyValue((bool)_borderOnly)); }
717 if (_synchronousLoading != null) { _nPatchMap.Add(NpatchImageVisualProperty.SynchronousLoading, new PropertyValue((bool)_synchronousLoading)); }
718 if (_orientationCorrection != null) { _nPatchMap.Add(ImageVisualProperty.OrientationCorrection, new PropertyValue((bool)_orientationCorrection)); }
719 SetProperty(ImageView.Property.IMAGE, new PropertyValue(_nPatchMap));
721 else if (_synchronousLoading != null || _orientationCorrection != null)
722 { // for normal image, with synchronous loading property
723 PropertyMap imageMap = new PropertyMap();
724 imageMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image));
725 imageMap.Add(ImageVisualProperty.URL, new PropertyValue(_url));
726 if (_synchronousLoading != null) { imageMap.Add(ImageVisualProperty.SynchronousLoading, new PropertyValue((bool)_synchronousLoading)); }
727 if (_orientationCorrection != null) { imageMap.Add(ImageVisualProperty.OrientationCorrection, new PropertyValue((bool)_orientationCorrection)); }
728 SetProperty(ImageView.Property.IMAGE, new PropertyValue(imageMap));
731 { // just for normal image
732 SetProperty(ImageView.Property.IMAGE, new PropertyValue(_url));
737 private void OnResourceLoaded(IntPtr view)
739 ResourceLoadedEventArgs e = new ResourceLoadedEventArgs();
740 e.Status = (ResourceLoadingStatusType)NDalicManualPINVOKE.View_GetVisualResourceStatus(this.swigCPtr, Property.IMAGE);
742 if (_resourceLoadedEventHandler != null)
744 _resourceLoadedEventHandler(this, e);
749 /// Event arguments of resource ready.
751 /// <since_tizen> 3 </since_tizen>
752 public class ResourceReadyEventArgs : EventArgs
757 /// The view whose resource is ready.
759 /// <since_tizen> 3 </since_tizen>
773 internal class ResourceLoadedEventArgs : EventArgs
775 private ResourceLoadingStatusType status = ResourceLoadingStatusType.Invalid;
776 public ResourceLoadingStatusType Status
789 internal new class Property
791 internal static readonly int RESOURCE_URL = NDalicPINVOKE.ImageView_Property_RESOURCE_URL_get();
792 internal static readonly int IMAGE = NDalicPINVOKE.ImageView_Property_IMAGE_get();
793 internal static readonly int PRE_MULTIPLIED_ALPHA = NDalicPINVOKE.ImageView_Property_PRE_MULTIPLIED_ALPHA_get();
794 internal static readonly int PIXEL_AREA = NDalicPINVOKE.ImageView_Property_PIXEL_AREA_get();
795 internal static readonly int ACTION_RELOAD = NDalicManualPINVOKE.ImageView_IMAGE_VISUAL_ACTION_RELOAD_get();
796 internal static readonly int ACTION_PLAY = NDalicManualPINVOKE.ImageView_IMAGE_VISUAL_ACTION_PLAY_get();
797 internal static readonly int ACTION_PAUSE = NDalicManualPINVOKE.ImageView_IMAGE_VISUAL_ACTION_PAUSE_get();
798 internal static readonly int ACTION_STOP = NDalicManualPINVOKE.ImageView_IMAGE_VISUAL_ACTION_STOP_get();