From 2a9374cccd33aa207825f5c0c2534bceb658d17c Mon Sep 17 00:00:00 2001 From: coderhyme Date: Tue, 9 Jan 2018 13:49:16 +0900 Subject: [PATCH] [MediaContent] Added "content.scanning.others" feature tags to related methods. (#15) Signed-off-by: coderhyme --- .../Tizen.Content.MediaContent/MediaDatabase.cs | 6 +++++- .../Tizen.Content.MediaContent/MediaInfoCommand.cs | 12 ++++++++++-- .../doc/api/Tizen.Content.MediaContent.md | 2 ++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabase.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabase.cs index 90a034f..67feaf6 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabase.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabase.cs @@ -207,7 +207,10 @@ namespace Tizen.Content.MediaContent /// the record of the media file will be deleted from the database.
///
/// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage.
- /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage. + /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage.
+ ///
+ /// If http://tizen.org/feature/content.scanning.others feature is not supported and the specified file is other-type, + /// will be thrown. /// /// http://tizen.org/privilege/content.write /// http://tizen.org/privilege/mediastorage @@ -223,6 +226,7 @@ namespace Tizen.Content.MediaContent /// contains a directory containing the ".scan_ignore" file. /// /// The caller has no required privilege. + /// The required feature is not supported. /// 4 public void ScanFile(string path) { diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs index 874964f..9b9f6be 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs @@ -511,7 +511,10 @@ namespace Tizen.Content.MediaContent /// The or the can be used instead.
///
/// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage.
- /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage. + /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage.
+ ///
+ /// If http://tizen.org/feature/content.scanning.others feature is not supported and the specified file is other-type, + /// will be thrown. /// /// http://tizen.org/privilege/content.write /// http://tizen.org/privilege/mediastorage @@ -529,6 +532,7 @@ namespace Tizen.Content.MediaContent /// /// does not exists. /// The caller has no required privilege. + /// The required feature is not supported. /// 4 public MediaInfo Add(string path) { @@ -598,7 +602,10 @@ namespace Tizen.Content.MediaContent /// At most 300 items can be added at once.
///
/// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage.
- /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage. + /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage.
+ ///
+ /// If http://tizen.org/feature/content.scanning.others feature is not supported and the specified file is other-type, + /// will be thrown. /// /// http://tizen.org/privilege/content.write /// http://tizen.org/privilege/mediastorage @@ -618,6 +625,7 @@ namespace Tizen.Content.MediaContent /// /// contains a path that does not exist. /// The caller has no required privilege. + /// The required feature is not supported. /// 4 public async Task AddAsync(IEnumerable paths) { diff --git a/src/Tizen.Content.MediaContent/doc/api/Tizen.Content.MediaContent.md b/src/Tizen.Content.MediaContent/doc/api/Tizen.Content.MediaContent.md index 6159c34..c85b717 100644 --- a/src/Tizen.Content.MediaContent/doc/api/Tizen.Content.MediaContent.md +++ b/src/Tizen.Content.MediaContent/doc/api/Tizen.Content.MediaContent.md @@ -16,6 +16,8 @@ uid: Tizen.Content.MediaContent summary: *content remarks: The media content service does not manage hidden files. +In addition, if "http://tizen.org/feature/content.scanning.others" feature is not supported, +other-type files which are not included in the media content types such as image, video, sound or music, are ignored. --- The Tizen.Content.MediaContent namespace provides types used in the entire content service. The information about media items (i.e. image, audio, and video) are managed in the content database -- 2.7.4