diff --git a/src/Tizen.Content.MediaContent/Interop/Interop.MediaInfo.cs b/src/Tizen.Content.MediaContent/Interop/Interop.MediaInfo.cs
index deed1a6eed5..f0f5edafafb 100644
--- a/src/Tizen.Content.MediaContent/Interop/Interop.MediaInfo.cs
+++ b/src/Tizen.Content.MediaContent/Interop/Interop.MediaInfo.cs
@@ -54,11 +54,11 @@ internal static extern MediaContentError ForeachTags(string mediaId, FilterHandl
Common.ItemCallback callback, IntPtr userData = default); // Deprecated since API12
[DllImport(Libraries.MediaContent, EntryPoint = "media_info_get_bookmark_count_from_db")]
- internal static extern MediaContentError GetBookmarkCount(string mediaId, FilterHandle filter, out int bookmarkCount);
+ internal static extern MediaContentError GetBookmarkCount(string mediaId, FilterHandle filter, out int bookmarkCount); // Deprecated since API12
[DllImport(Libraries.MediaContent, EntryPoint = "media_info_foreach_bookmark_from_db")]
internal static extern MediaContentError ForeachBookmarks(string mediaId, FilterHandle filter,
- Common.ItemCallback callback, IntPtr userData = default);
+ Common.ItemCallback callback, IntPtr userData = default); // Deprecated since API12
[DllImport(Libraries.MediaContent, EntryPoint = "media_info_get_face_count_from_db")]
internal static extern MediaContentError GetFaceCount(string mediaId, FilterHandle filter, out int bookmarkCount); // Deprecated
diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Bookmark.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Bookmark.cs
index 2da1b7ee598..db9b8687477 100644
--- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Bookmark.cs
+++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Bookmark.cs
@@ -23,6 +23,7 @@ namespace Tizen.Content.MediaContent
/// in media (video and audio) to enable fast searching.
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class Bookmark
{
internal Bookmark(IntPtr handle)
@@ -38,6 +39,7 @@ internal Bookmark(IntPtr handle)
///
/// The ID of the bookmark.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int Id { get; }
///
@@ -45,6 +47,7 @@ internal Bookmark(IntPtr handle)
///
/// The thumbnail path of the bookmark.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string ThumbnailPath { get; }
///
@@ -52,6 +55,7 @@ internal Bookmark(IntPtr handle)
///
/// The offset of the bookmark in media in milliseconds.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int Offset { get; }
///
@@ -59,6 +63,7 @@ internal Bookmark(IntPtr handle)
///
/// The name of the bookmark.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string Name { get; }
internal static Bookmark FromHandle(IntPtr handle) => new Bookmark(handle);
@@ -68,6 +73,7 @@ internal Bookmark(IntPtr handle)
///
/// A string representation of the current bookmark.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public override string ToString() =>
$"Id={Id}, Name={Name}, ThumbnailPath={ThumbnailPath}, Offset={Offset}";
}
diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/BookmarkCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/BookmarkCommand.cs
index 7037acc6048..9fb80815981 100644
--- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/BookmarkCommand.cs
+++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/BookmarkCommand.cs
@@ -23,6 +23,7 @@ namespace Tizen.Content.MediaContent
///
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class BookmarkCommand : MediaCommand
{
///
@@ -32,6 +33,7 @@ public class BookmarkCommand : MediaCommand
/// is null.
/// has already been disposed.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public BookmarkCommand(MediaDatabase database) : base(database)
{
}
@@ -44,6 +46,7 @@ public BookmarkCommand(MediaDatabase database) : base(database)
/// The has already been disposed.
/// An error occurred while executing the command.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int Count()
{
return Count(null);
@@ -58,6 +61,7 @@ public int Count()
/// The has already been disposed.
/// An error occurred while executing the command.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int Count(CountArguments arguments)
{
ValidateDatabase();
@@ -79,6 +83,7 @@ public int Count(CountArguments arguments)
/// is a zero-length string, contains only white space.
/// The caller has no required privilege.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public Bookmark Insert(string mediaId, int offset)
{
return Insert(mediaId, offset, null);
@@ -99,6 +104,7 @@ public Bookmark Insert(string mediaId, int offset)
/// is a zero-length string, contains only white space.
/// The caller has no required privilege.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public Bookmark Insert(string mediaId, int offset, string name)
{
return Insert(mediaId, offset, name, null);
@@ -123,6 +129,7 @@ public Bookmark Insert(string mediaId, int offset, string name)
/// is a zero-length string, contains only white space.
/// The caller has no required privilege.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public Bookmark Insert(string mediaId, int offset, string name, string thumbnailPath)
{
ValidateDatabase();
@@ -163,6 +170,7 @@ public Bookmark Insert(string mediaId, int offset, string name, string thumbnail
/// is less than zero.
/// The caller has no required privilege.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public bool Delete(int bookmarkId)
{
ValidateDatabase();
@@ -192,6 +200,7 @@ public bool Delete(int bookmarkId)
/// The has already been disposed.
/// An error occurred while executing the command.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public MediaDataReader Select()
{
return Select(null);
@@ -206,6 +215,7 @@ public MediaDataReader Select()
/// The has already been disposed.
/// An error occurred while executing the command.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public MediaDataReader Select(SelectArguments filter)
{
ValidateDatabase();
diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Columns.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Columns.cs
index 0baea5630c4..40036e5bad8 100644
--- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Columns.cs
+++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Columns.cs
@@ -465,6 +465,7 @@ public static class FolderColumns
///
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static class PlaylistColumns
{
///
@@ -476,6 +477,7 @@ public static class PlaylistColumns
///
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Name => "PLAYLIST_NAME";
///
@@ -487,6 +489,7 @@ public static class PlaylistColumns
///
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Id => "PLAYLIST_ID";
///
@@ -498,6 +501,7 @@ public static class PlaylistColumns
///
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string MemberOrder => "PLAYLIST_MEMBER_ORDER";
///
@@ -510,6 +514,7 @@ public static class PlaylistColumns
///
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Count => "PLAYLIST_MEDIA_COUNT";
}
@@ -579,6 +584,7 @@ public static class TagColumns
///
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static class BookmarkColumns
{
///
@@ -590,6 +596,7 @@ public static class BookmarkColumns
///
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Offset => "BOOKMARK_MARKED_TIME";
///
@@ -601,6 +608,7 @@ public static class BookmarkColumns
///
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Id => "BOOKMARK_ID";
///
@@ -612,6 +620,7 @@ public static class BookmarkColumns
///
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Name => "BOOKMARK_NAME";
}
diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs
index bafe885a953..6e470084b88 100644
--- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs
+++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs
@@ -53,6 +53,7 @@ public MediaInfoCommand(MediaDatabase database) : base(database)
/// is null.
/// is a zero-length string, contains only white space.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int CountBookmark(string mediaId)
{
return CountBookmark(mediaId, null);
@@ -70,6 +71,7 @@ public int CountBookmark(string mediaId)
/// is null.
/// is a zero-length string, contains only white space.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int CountBookmark(string mediaId, CountArguments arguments)
{
ValidateDatabase();
@@ -90,6 +92,7 @@ public int CountBookmark(string mediaId, CountArguments arguments)
/// is null.
/// is a zero-length string, contains only white space.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public MediaDataReader SelectBookmark(string mediaId)
{
return SelectBookmark(mediaId, null);
@@ -107,6 +110,7 @@ public MediaDataReader SelectBookmark(string mediaId)
/// is null.
/// is a zero-length string, contains only white space.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public MediaDataReader SelectBookmark(string mediaId, SelectArguments filter)
{
ValidateDatabase();
diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlayList.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlayList.cs
index a762611cd92..0bb39f454d4 100755
--- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlayList.cs
+++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlayList.cs
@@ -22,6 +22,7 @@ namespace Tizen.Content.MediaContent
/// Represents the playlist that is a group of media (usually songs).
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class Playlist
{
internal Playlist(IntPtr handle)
@@ -39,6 +40,7 @@ internal Playlist(IntPtr handle)
///
/// The unique ID of the playlist.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int Id { get; }
///
@@ -46,6 +48,7 @@ internal Playlist(IntPtr handle)
///
/// The name of the playlist.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string Name { get; }
///
@@ -53,6 +56,7 @@ internal Playlist(IntPtr handle)
///
/// The path to the thumbnail.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string ThumbnailPath { get; }
///
@@ -60,6 +64,7 @@ internal Playlist(IntPtr handle)
///
/// A string representation of the current playlist.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public override string ToString() =>
$"Id={Id}, Name={Name}, ThumbnailPath={ThumbnailPath}";
}
@@ -72,6 +77,7 @@ public override string ToString() =>
///
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class PlaylistUpdateValues
{
///
@@ -80,6 +86,7 @@ public class PlaylistUpdateValues
/// If the value is null, the update operation will have no effect on the field.
/// A string for name; the field will not be updated if null.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string Name { get; set; }
///
@@ -88,6 +95,7 @@ public class PlaylistUpdateValues
/// If the value is null, the update operation will have no effect on the field.
/// A string for the thumbnail path; the field will not be updated if null.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string ThumbnailPath { get; set; }
}
@@ -95,6 +103,7 @@ public class PlaylistUpdateValues
/// Represents an order of a member of the playlist.
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class PlayOrder
{
///
@@ -108,6 +117,7 @@ public class PlayOrder
/// is less than zero.
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public PlayOrder(int memberId, int orderValue)
{
MemberId = memberId;
@@ -124,6 +134,7 @@ public PlayOrder(int memberId, int orderValue)
/// is less than or equal to zero.
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int MemberId
{
get => _memberId;
@@ -148,6 +159,7 @@ public int MemberId
/// is less than zero.
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int Value
{
get => _value;
diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistCommand.cs
index 226534d6f93..edf452efdba 100644
--- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistCommand.cs
+++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistCommand.cs
@@ -26,6 +26,7 @@ namespace Tizen.Content.MediaContent
///
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class PlaylistCommand : MediaCommand
{
///
@@ -35,6 +36,7 @@ public class PlaylistCommand : MediaCommand
/// is null.
/// has already been disposed.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public PlaylistCommand(MediaDatabase database) : base(database)
{
}
@@ -47,6 +49,7 @@ public PlaylistCommand(MediaDatabase database) : base(database)
/// The has already been disposed.
/// An error occurred while executing the command.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int Count()
{
return Count(null);
@@ -61,6 +64,7 @@ public int Count()
/// The has already been disposed.
/// An error occurred while executing the command.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int Count(CountArguments arguments)
{
ValidateDatabase();
@@ -83,6 +87,7 @@ public int Count(CountArguments arguments)
/// is less than or equal to zero.
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int GetPlayOrder(int playlistId, int memberId)
{
ValidateDatabase();
@@ -116,6 +121,7 @@ public int GetPlayOrder(int playlistId, int memberId)
/// is less than or equal to zero.
/// The caller has no required privilege.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public bool Delete(int playlistId)
{
ValidateDatabase();
@@ -164,6 +170,7 @@ public bool Delete(int playlistId)
/// does not exists.
/// The caller has no required privilege.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public Playlist InsertFromFile(string name, string path)
{
ValidateDatabase();
@@ -222,6 +229,7 @@ public Playlist InsertFromFile(string name, string path)
/// No matching playlist exists.
/// The caller has no required privilege.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public void ExportToFile(int playlistId, string path)
{
ValidateDatabase();
@@ -268,6 +276,7 @@ public void ExportToFile(int playlistId, string path)
/// is a zero-length string.
/// The caller has no required privilege.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public Playlist Insert(string name)
{
return Insert(name, null);
@@ -287,6 +296,7 @@ public Playlist Insert(string name)
/// is a zero-length string.
/// The caller has no required privilege.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public Playlist Insert(string name, string thumbnailPath)
{
ValidateDatabase();
@@ -333,6 +343,7 @@ public Playlist Insert(string name, string thumbnailPath)
/// The has already been disposed.
/// An error occurred while executing the command.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public MediaDataReader Select()
{
return Select(null);
@@ -347,6 +358,7 @@ public MediaDataReader Select()
/// The has already been disposed.
/// An error occurred while executing the command.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public MediaDataReader Select(SelectArguments filter)
{
ValidateDatabase();
@@ -365,6 +377,7 @@ public MediaDataReader Select(SelectArguments filter)
/// An error occurred while executing the command.
/// is less than or equal to zero.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public Playlist Select(int playlistId)
{
ValidateDatabase();
@@ -407,6 +420,7 @@ public Playlist Select(int playlistId)
/// An error occurred while executing the command.
/// is less than or equal to zero.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int CountMember(int playlistId)
{
return CountMember(playlistId, null);
@@ -423,6 +437,7 @@ public int CountMember(int playlistId)
/// An error occurred while executing the command.
/// is less than or equal to zero.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int CountMember(int playlistId, CountArguments arguments)
{
ValidateDatabase();
@@ -481,6 +496,7 @@ private static List GetMembers(int playlistId, SelectArguments a
/// is null.
/// is a zero-length string, contains only white space.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int GetMemberId(int playlistId, string mediaId)
{
ValidateDatabase();
@@ -512,6 +528,7 @@ public int GetMemberId(int playlistId, string mediaId)
/// An error occurred while executing the command.
/// is less than or equal to zero.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public MediaDataReader SelectMember(int playlistId)
{
return SelectMember(playlistId, null);
@@ -528,6 +545,7 @@ public MediaDataReader SelectMember(int playlistId)
/// An error occurred while executing the command.
/// is less than or equal to zero.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public MediaDataReader SelectMember(int playlistId, SelectArguments filter)
{
ValidateDatabase();
@@ -556,6 +574,7 @@ public MediaDataReader SelectMember(int playlistId, SelectArgume
/// is less than or equal to zero.
/// The caller has no required privilege.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public bool Update(int playlistId, PlaylistUpdateValues values)
{
ValidateDatabase();
@@ -617,6 +636,7 @@ public bool Update(int playlistId, PlaylistUpdateValues values)
/// is a zero-length string, contains only white space.
/// is less than or equal to zero.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public bool AddMember(int playlistId, string mediaId)
{
ValidationUtil.ValidateNotNullOrEmpty(mediaId, nameof(mediaId));
@@ -644,6 +664,7 @@ public bool AddMember(int playlistId, string mediaId)
///
/// is less than or equal to zero.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public bool AddMembers(int playlistId, IEnumerable mediaIds)
{
ValidateDatabase();
@@ -718,6 +739,7 @@ public bool AddMembers(int playlistId, IEnumerable mediaIds)
/// is less than or equal to zero.
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public bool RemoveMember(int playlistId, int memberId)
{
if (memberId <= 0)
@@ -747,6 +769,7 @@ public bool RemoveMember(int playlistId, int memberId)
///
/// is less than or equal to zero.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public bool RemoveMembers(int playlistId, IEnumerable memberIds)
{
ValidateDatabase();
@@ -814,6 +837,7 @@ public bool RemoveMembers(int playlistId, IEnumerable memberIds)
/// is null.
/// is less than or equal to zero.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public bool UpdatePlayOrder(int playlistId, PlayOrder playOrder)
{
if (playOrder == null)
@@ -841,6 +865,7 @@ public bool UpdatePlayOrder(int playlistId, PlayOrder playOrder)
///
/// is less than or equal to zero.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public bool UpdatePlayOrders(int playlistId, IEnumerable orders)
{
ValidateDatabase();
diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistMember.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistMember.cs
index 8ebf307ec72..35495f7273a 100644
--- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistMember.cs
+++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistMember.cs
@@ -14,12 +14,15 @@
* limitations under the License.
*/
+using System;
+
namespace Tizen.Content.MediaContent
{
///
/// Represents a member of the .
///
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class PlaylistMember
{
///
@@ -27,6 +30,7 @@ public class PlaylistMember
///
/// The member ID of the playlist.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int MemberId { get; }
///
@@ -34,6 +38,7 @@ public class PlaylistMember
///
/// The of the member.
/// 4
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public MediaInfo MediaInfo { get; }
internal PlaylistMember(int memberId, MediaInfo mediaInfo)