[ThumbnailExtractor] Deprecate ExtractAsync method (#4559)
authorHaesu Gwon <haesu.gwon@samsung.com>
Thu, 15 Sep 2022 08:08:06 +0000 (17:08 +0900)
committerGitHub <noreply@github.com>
Thu, 15 Sep 2022 08:08:06 +0000 (17:08 +0900)
* [ThumbnailExtractor] Deprecate ExtractAsync mothod

src/Tizen.Multimedia.Util/ThumbnailExtractor/ThumbnailExtractor.cs

index 2cf3bea..c939838 100644 (file)
@@ -40,6 +40,7 @@ namespace Tizen.Multimedia.Util
         /// <exception cref="InvalidOperationException">An internal error occurs.</exception>
         /// <exception cref="UnauthorizedAccessException">The caller does not have required privilege for accessing the <paramref name="path"/>.</exception>
         /// <exception cref="FileFormatException">The specified file is not supported.</exception>
+        [Obsolete("Deprecated since API10; Will be removed in API12. Please use Extract instead.")]
         public static Task<ThumbnailExtractionResult> ExtractAsync(string path)
         {
             return RunExtractAsync(path, null, CancellationToken.None);
@@ -58,6 +59,7 @@ namespace Tizen.Multimedia.Util
         /// <exception cref="UnauthorizedAccessException">The caller does not have required privilege for accessing the <paramref name="path"/>.</exception>
         /// <exception cref="FileFormatException">The specified file is not supported.</exception>
         /// <since_tizen> 4 </since_tizen>
+        [Obsolete("Deprecated since API10; Will be removed in API12. Please use Extract instead.")]
         public static Task<ThumbnailExtractionResult> ExtractAsync(string path, CancellationToken cancellationToken)
         {
             return RunExtractAsync(path, null, cancellationToken);
@@ -82,6 +84,7 @@ namespace Tizen.Multimedia.Util
         ///     The width or the height of <paramref name="size"/> is less than or equal to zero.
         /// </exception>
         /// <exception cref="FileFormatException">The specified file is not supported.</exception>
+        [Obsolete("Deprecated since API10; Will be removed in API12. Please use Extract instead.")]
         public static Task<ThumbnailExtractionResult> ExtractAsync(string path, Size size)
         {
             return RunExtractAsync(path, size, CancellationToken.None);
@@ -107,6 +110,7 @@ namespace Tizen.Multimedia.Util
         ///     The width or the height of <paramref name="size"/> is less than or equal to zero.
         /// </exception>
         /// <exception cref="FileFormatException">The specified file is not supported.</exception>
+        [Obsolete("Deprecated since API10; Will be removed in API12. Please use Extract instead.")]
         public static Task<ThumbnailExtractionResult> ExtractAsync(string path, Size size,
             CancellationToken cancellationToken)
         {