[NUI] Suppress CA1054 and CA1056 (forced to use Uri) and clean code (#2811)
authorJiyun Yang <ji.yang@samsung.com>
Wed, 31 Mar 2021 08:50:30 +0000 (17:50 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 1 Apr 2021 01:07:37 +0000 (10:07 +0900)
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI.Components/Controls/Slider.cs
src/Tizen.NUI.Components/Tizen.NUI.Components.csproj
src/Tizen.NUI/Tizen.NUI.csproj
src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs
src/Tizen.NUI/src/public/BaseComponents/VideoView.cs
src/Tizen.NUI/src/public/Images/ImageLoading.cs
src/Tizen.NUI/src/public/Images/NativeImageSource.cs
src/Tizen.NUI/src/public/Images/PixelData.cs
src/Tizen.NUI/src/public/ViewProperty/ImageShadow.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/CaptureTest.cs

index 1b2d968..7a31df3 100755 (executable)
@@ -457,7 +457,7 @@ namespace Tizen.NUI.Components
         /// <summary>
         /// Gets or sets the resource url of the thumb image object.
         ///
-        /// Please use ThumbImageUri property.
+        /// Please use ThumbImageUrl property.
         /// </summary>
         /// <since_tizen> 6 </since_tizen>
         public string ThumbImageURL
@@ -480,7 +480,7 @@ namespace Tizen.NUI.Components
         /// Gets or sets the resource url selector of the thumb image object.
         /// Getter returns copied selector value if exist, null otherwise.
         ///
-        /// Please use ThumbImageUri property.
+        /// Please use ThumbImageUrl property.
         /// </summary>
         /// <exception cref="NullReferenceException">Thrown when setting null value.</exception>
         /// <since_tizen> 6 </since_tizen>
@@ -502,12 +502,12 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
-        /// Gets or sets the Uri of the thumb image.
+        /// Gets or sets the Url of the thumb image.
         /// </summary>
         /// <exception cref="NullReferenceException">Thrown when setting null value.</exception>
         /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public Selector<Uri> ThumbImageUri
+        public Selector<string> ThumbImageUrl
         {
             get
             {
@@ -517,20 +517,19 @@ namespace Tizen.NUI.Components
                 }
                 else
                 {
-                    return ((Selector<string>)thumbImage.GetValue(ImageView.ResourceUrlSelectorProperty)).Clone<Uri>(str => { return new Uri(str); });
+                    return (Selector<string>)thumbImage.GetValue(ImageView.ResourceUrlSelectorProperty);
                 }
             }
             set
             {
                 if (value == null || thumbImage == null)
                 {
-                    throw new NullReferenceException("Slider.ThumbImageUri is null");
+                    throw new NullReferenceException("Slider.ThumbImageUrl is null");
                 }
                 else
                 {
-                    Selector<string> stringValue = value.Clone<string>(m => m?.AbsoluteUri);
-                    thumbImage.SetValue(ImageView.ResourceUrlSelectorProperty, stringValue);
-                    thumbImageUrlSelector = stringValue;
+                    thumbImage.SetValue(ImageView.ResourceUrlSelectorProperty, value);
+                    thumbImageUrlSelector = value;
                 }
             }
         }
@@ -668,43 +667,26 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
-        /// Gets or sets the resource url of the warning thumb image object.
-        /// </summary>
-        /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API.
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public string WarningThumbImageUrl
-        {
-            get
-            {
-                return warningThumbImageUrl;
-            }
-            set
-            {
-                warningThumbImageUrl = value;
-            }
-        }
-
-        /// <summary>
-        /// Gets or sets the Uri of the warning thumb image.
+        /// Gets or sets the Url of the warning thumb image.
         /// </summary>
         /// <exception cref="NullReferenceException">Thrown when setting null value.</exception>
         /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public Selector<Uri> WarningThumbImageUri
+        public Selector<string> WarningThumbImageUrl
         {
             get
             {
-                return warningThumbImageUrlSelector?.Clone<Uri>(str => { return new Uri(str); });
+                return warningThumbImageUrlSelector;
             }
             set
             {
                 if (value == null || thumbImage == null)
                 {
-                    throw new NullReferenceException("Slider.WarningThumbImageUri is null");
+                    throw new NullReferenceException("Slider.WarningThumbImageUrl is null");
                 }
                 else
                 {
-                    warningThumbImageUrlSelector = value.Clone<string>(m => m?.AbsoluteUri);
+                    warningThumbImageUrlSelector = value;
                 }
             }
         }
index b701655..5ddc9e6 100755 (executable)
@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <NoWarn>$(NoWarn);CS0618</NoWarn>
+    <NoWarn>$(NoWarn);CS0618;CA1054;CA1056</NoWarn>
   </PropertyGroup>
 
   <ItemGroup>
index 921b206..c7f1bf7 100644 (file)
@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <NoWarn>$(NoWarn);CS0618;CS0809;CS1591</NoWarn>
+    <NoWarn>$(NoWarn);CS0618;CS0809;CS1591;CA1054;CA1056</NoWarn>
   </PropertyGroup>
 
   <ItemGroup>
index 14c13aa..0abf21f 100755 (executable)
@@ -79,7 +79,6 @@ namespace Tizen.NUI.BaseComponents
         /// Set Resource URL
         /// </summary>
         // Suppress warning : This has been being used by users, so that the interface can not be changed.
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1056:Uri properties should not be strings", Justification = "<Pending>")]
         [EditorBrowsable(EditorBrowsableState.Never)]
         public string ResourceURL
         {
@@ -105,7 +104,6 @@ namespace Tizen.NUI.BaseComponents
         /// Set Resource URL
         /// </summary>
         // Suppress warning : This has been being used by users, so that the interface can not be changed.
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1056:Uri properties should not be strings", Justification = "<Pending>")]
         [EditorBrowsable(EditorBrowsableState.Never)]
         public new string ResourceUrl
         {
index ca38d84..40ce8e4 100755 (executable)
@@ -154,19 +154,6 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// Hidden API (Inhouse API).
-        /// Using Uri class to provide safe service and secure API.
-        /// Creates an initialized VideoView.
-        /// If the string is empty, VideoView will not display anything.
-        /// </summary>
-        /// <param name="uri">The URI of the video resource to display.</param>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public VideoView(Uri uri) : this(Interop.VideoView.New((uri == null) ? String.Empty : uri.AbsoluteUri), true)
-        {
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-        }
-
-        /// <summary>
         /// Creates an initialized VideoView.<br />
         /// If the string is empty, VideoView will not display anything.<br />
         /// </summary>
index e55243d..f1f1096 100755 (executable)
@@ -55,40 +55,6 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Hidden API (Inhouse API).
-        /// Using Uri class to provide safe service and secure API.
-        /// Load an image synchronously from local file.
-        /// </summary>
-        /// <param name="uri">The URI of the image file to load.</param>
-        /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
-        /// <param name="fittingMode">The method used to fit the shape of the image before loading to the shape defined by the size parameter.</param>
-        /// <param name="samplingMode">The filtering method used when sampling pixels from the input image while fitting it to desired size.</param>
-        /// <param name="orientationCorrection">Reorient the image to respect any orientation metadata in its header.</param>
-        /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case loading failed.</returns>
-        /// <exception cref="ArgumentNullException">Thrown when size is null.</exception>
-        /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public static PixelBuffer LoadImageFromFile(Uri uri, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode, bool orientationCorrection)
-        {
-            if (null == size)
-            {
-                throw new ArgumentNullException(nameof(size));
-            }
-            if (uri == null)
-            {
-                throw new ArgumentNullException(nameof(uri));
-            }
-
-            PixelBuffer ret;
-            using (var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height))
-            {
-                ret = new PixelBuffer(Interop.ImageLoading.LoadImageFromFile(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize), (int)fittingMode, (int)samplingMode, orientationCorrection), true);
-            }
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            return ret;
-        }
-
-        /// <summary>
         /// Load an image synchronously from local file.
         /// </summary>
         /// <param name="url">The URL of the image file to load.</param>
@@ -114,38 +80,6 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Hidden API (Inhouse API).
-        /// Using Uri class to provide safe service and secure API.
-        /// Load an image synchronously from local file.
-        /// </summary>
-        /// <param name="uri">The URI of the image file to load.</param>
-        /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
-        /// <param name="fittingMode">The method used to fit the shape of the image before loading to the shape defined by the size parameter.</param>
-        /// <param name="samplingMode">The filtering method used when sampling pixels from the input image while fitting it to desired size.</param>
-        /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case loading failed.</returns>
-        /// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
-        /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public static PixelBuffer LoadImageFromFile(Uri uri, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode)
-        {
-            if (null == size)
-            {
-                throw new ArgumentNullException(nameof(size));
-            }
-            if (uri == null)
-            {
-                throw new ArgumentNullException(nameof(uri));
-            }
-
-            var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height);
-            PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.LoadImageFromFile(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize), (int)fittingMode, (int)samplingMode), true);
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
-            uSize.Dispose();
-            return ret;
-        }
-
-        /// <summary>
         /// Load an image synchronously from local file.
         /// </summary>
         /// <param name="url">The URL of the image file to load.</param>
@@ -170,36 +104,6 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Hidden API (Inhouse API).
-        /// Using Uri class to provide safe service and secure API.
-        /// Load an image synchronously from local file.
-        /// </summary>
-        /// <param name="uri">The URI of the image file to load.</param>
-        /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
-        /// <param name="fittingMode">The method used to fit the shape of the image before loading to the shape defined by the size parameter.</param>
-        /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case loading failed.</returns>
-        /// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
-        /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public static PixelBuffer LoadImageFromFile(Uri uri, Size2D size, FittingModeType fittingMode)
-        {
-            if (null == size)
-            {
-                throw new ArgumentNullException(nameof(size));
-            }
-            if (uri == null)
-            {
-                throw new ArgumentNullException(nameof(uri));
-            }
-
-            var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height);
-            PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.LoadImageFromFile(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize), (int)fittingMode), true);
-            uSize.Dispose();
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            return ret;
-        }
-
-        /// <summary>
         /// Load an image synchronously from local file.
         /// </summary>
         /// <param name="url">The URL of the image file to load.</param>
@@ -223,35 +127,6 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Hidden API (Inhouse API).
-        /// Using Uri class to provide safe service and secure API.
-        /// Load an image synchronously from local file.
-        /// </summary>
-        /// <param name="uri">The URI of the image file to load.</param>
-        /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
-        /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case loading failed.</returns>
-        /// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
-        /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public static PixelBuffer LoadImageFromFile(Uri uri, Size2D size)
-        {
-            if (null == size)
-            {
-                throw new ArgumentNullException(nameof(size));
-            }
-            if (uri == null)
-            {
-                throw new ArgumentNullException(nameof(uri));
-            }
-
-            var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height);
-            PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.LoadImageFromFile(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize)), true);
-            uSize.Dispose();
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            return ret;
-        }
-
-        /// <summary>
         /// Load an image synchronously from local file.
         /// </summary>
         /// <param name="url">The URL of the image file to load.</param>
@@ -267,27 +142,6 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Hidden API (Inhouse API).
-        /// Using Uri class to provide safe service and secure API.
-        /// Load an image synchronously from local file.
-        /// </summary>
-        /// <param name="uri">The URI of the image file to load.</param>
-        /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case loading failed.</returns>
-        /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public static PixelBuffer LoadImageFromFile(Uri uri)
-        {
-            if (uri == null)
-            {
-                throw new ArgumentNullException(nameof(uri));
-            }
-
-            PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.LoadImageFromFile(uri.AbsoluteUri), true);
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            return ret;
-        }
-
-        /// <summary>
         /// Determine the size of an image that LoadImageFromFile will provide when given the same image loading parameters.
         /// </summary>
         /// <param name="filename">The name of the image.</param>
@@ -455,39 +309,6 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Hidden API (Inhouse API).
-        /// Using Uri class to provide safe service and secure API.
-        /// Load an image synchronously from a remote resource.
-        /// </summary>
-        /// <param name="uri">The URI of the image file to load.</param>
-        /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
-        /// <param name="fittingMode">The method used to fit the shape of the image before loading to the shape defined by the size parameter.</param>
-        /// <param name="samplingMode">The filtering method used when sampling pixels from the input image while fitting it to desired size.</param>
-        /// <param name="orientationCorrection">Reorient the image to respect any orientation metadata in its header.</param>
-        /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed.</returns>
-        /// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
-        /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public static PixelBuffer DownloadImageSynchronously(Uri uri, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode, bool orientationCorrection)
-        {
-            if (null == size)
-            {
-                throw new ArgumentNullException(nameof(size));
-            }
-            if (uri == null)
-            {
-                throw new ArgumentNullException(nameof(uri));
-            }
-
-            var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height);
-            PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.DownloadImageSynchronously(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize), (int)fittingMode, (int)samplingMode, orientationCorrection), true);
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
-            uSize.Dispose();
-            return ret;
-        }
-
-        /// <summary>
         /// Load an image synchronously from a remote resource.
         /// </summary>
         /// <param name="url">The URL of the image file to load.</param>
@@ -513,37 +334,6 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Hidden API (Inhouse API).
-        /// Using Uri class to provide safe service and secure API.
-        /// Load an image synchronously from a remote resource.
-        /// </summary>
-        /// <param name="uri">The URI of the image file to load.</param>
-        /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
-        /// <param name="fittingMode">The method used to fit the shape of the image before loading to the shape defined by the size parameter.</param>
-        /// <param name="samplingMode">The filtering method used when sampling pixels from the input image while fitting it to desired size.</param>
-        /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed.</returns>
-        /// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
-        /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public static PixelBuffer DownloadImageSynchronously(Uri uri, Size2D size, FittingModeType fittingMode, SamplingModeType samplingMode)
-        {
-            if (null == size)
-            {
-                throw new ArgumentNullException(nameof(size));
-            }
-            if (uri == null)
-            {
-                throw new ArgumentNullException(nameof(uri));
-            }
-
-            var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height);
-            PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.DownloadImageSynchronously(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize), (int)fittingMode, (int)samplingMode), true);
-            uSize.Dispose();
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            return ret;
-        }
-
-        /// <summary>
         /// Load an image synchronously from a remote resource.
         /// </summary>
         /// <param name="url">The URL of the image file to load.</param>
@@ -621,35 +411,6 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Hidden API (Inhouse API).
-        /// Using Uri class to provide safe service and secure API.
-        /// Load an image synchronously from a remote resource.
-        /// </summary>
-        /// <param name="uri">The URI of the image file to load.</param>
-        /// <param name="size">The width and height to fit the loaded image to, 0.0 means whole image.</param>
-        /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed.</returns>
-        /// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
-        /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public static PixelBuffer DownloadImageSynchronously(Uri uri, Size2D size)
-        {
-            if (null == size)
-            {
-                throw new ArgumentNullException(nameof(size));
-            }
-            if (uri == null)
-            {
-                throw new ArgumentNullException(nameof(uri));
-            }
-
-            var uSize = new Uint16Pair((uint)size.Width, (uint)size.Height);
-            PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.DownloadImageSynchronously(uri.AbsoluteUri, Uint16Pair.getCPtr(uSize)), true);
-            uSize.Dispose();
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            return ret;
-        }
-
-        /// <summary>
         /// Load an image synchronously from a remote resource.
         /// </summary>
         /// <param name="url">The URL of the image file to load.</param>
@@ -664,26 +425,5 @@ namespace Tizen.NUI
             return ret;
         }
 
-        /// <summary>
-        /// Hidden API (Inhouse API).
-        /// Using Uri class to provide safe service and secure API.
-        /// Load an image synchronously from a remote resource.
-        /// </summary>
-        /// <param name="uri">The URI of the image file to load.</param>
-        /// <returns>Handle to the loaded PixelBuffer object or an empty handle in case downloading or decoding failed.</returns>
-        /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public static PixelBuffer DownloadImageSynchronously(Uri uri)
-        {
-            if (uri == null)
-            {
-                throw new ArgumentNullException(nameof(uri));
-            }
-
-            PixelBuffer ret = new PixelBuffer(Interop.ImageLoading.DownloadImageSynchronously(uri.AbsoluteUri), true);
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            return ret;
-        }
-
     }
 }
index 3204293..1ec852c 100755 (executable)
@@ -41,14 +41,14 @@ namespace Tizen.NUI
         /// Get URI from native image source.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public Uri Uri
+        public string Url
         {
             get
             {
                 string uri = "";
                 uri = Interop.NativeImageSource.GenerateUrl(this.SwigCPtr.Handle);
                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
-                return new Uri(uri);
+                return uri;
             }
         }
 
index 3ffd0a6..251c2c4 100755 (executable)
@@ -82,14 +82,14 @@ namespace Tizen.NUI
         /// Get URI from pixel data.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public Uri Uri
+        public string Url
         {
             get
             {
                 string Uri = "";
                 Uri = Interop.PixelData.GenerateUrl(this.SwigCPtr.Handle);
                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
-                return new Uri(Uri);
+                return Uri;
             }
         }
 
index a5d3743..6756a61 100755 (executable)
@@ -49,27 +49,6 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Hidden API (Inhouse API).
-        /// Constructor.
-        /// Using Uri class to provide safe service and secure API.
-        /// </summary>
-        /// <param name="uri">uri.</param>
-        /// <param name="border">border.</param>
-        /// <param name="offset">offset.</param>
-        /// <param name="extents">extents.</param>
-        /// <exception cref="ArgumentNullException">Thrown when uri is null.</exception>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public ImageShadow(Uri uri, Rectangle border, Vector2 offset, Vector2 extents) : base(offset, extents)
-        {
-            if (uri == null)
-            {
-                throw new ArgumentNullException(nameof(uri));
-            }
-            Url = uri.AbsoluteUri;
-            Border = border == null ? null : new Rectangle(border);
-        }
-
-        /// <summary>
         /// Constructor
         /// </summary>
         /// <exception cref="ArgumentNullException"> Thrown when other is null. </exception>
index 372af2b..5ca6d03 100755 (executable)
@@ -58,9 +58,9 @@ namespace Tizen.NUI.Samples
             if (sender is Capture)
             {
                 log.Debug(tag, $"sender is Capture \n");
-                var uri = capture.GetNativeImageSource().Uri;
-                capturedImage = new ImageView(uri.AbsoluteUri);
-                log.Debug(tag, $"url={uri} \n");
+                var url = capture.GetNativeImageSource().Url;
+                capturedImage = new ImageView(url);
+                log.Debug(tag, $"url={url} \n");
 
                 capturedImage.Size = new Size(510, 510);
                 capturedImage.Position = new Position(10, 10);