From 467ee05815e0fc896b69a3f616169da0535bc755 Mon Sep 17 00:00:00 2001 From: DotnetBuild Date: Fri, 8 Sep 2017 12:17:23 +0900 Subject: [PATCH] Release 4.0.0-preview1-00172 --- packaging/csapi-tizenfx.spec | 2 +- pkg/PlatformFileList.txt | 2 +- pkg/build/LICENSE.NETStandardLibrary.txt | 21 ++++ .../ShortcutErrorFactory.cs | 2 + .../Tizen.Applications.Shortcut/ShortcutManager.cs | 21 ++-- .../ShortcutEventEnumerations.cs | 27 +---- .../ShortcutEventManager.cs | 35 ++++-- .../Tizen.Content.MediaContent/Album.cs | 6 +- .../Tizen.Content.MediaContent/AlbumCommand.cs | 26 ++-- .../Tizen.Content.MediaContent/AudioInfo.cs | 2 +- .../Tizen.Content.MediaContent/Bookmark.cs | 8 +- .../Tizen.Content.MediaContent/BookmarkCommand.cs | 20 ++-- .../Tizen.Content.MediaContent/Columns.cs | 66 +++++------ .../Tizen.Content.MediaContent/Enums.cs | 8 +- .../Tizen.Content.MediaContent/EventArgs.cs | 16 +-- .../Tizen.Content.MediaContent/FaceInfo.cs | 16 +-- .../Tizen.Content.MediaContent/FaceInfoCommand.cs | 16 +-- .../Tizen.Content.MediaContent/Folder.cs | 20 ++-- .../Tizen.Content.MediaContent/FolderCommand.cs | 28 ++--- .../Tizen.Content.MediaContent/ImageInfo.cs | 18 +-- .../Tizen.Content.MediaContent/MediaCommand.cs | 4 +- .../Tizen.Content.MediaContent/MediaDatabase.cs | 14 +-- .../MediaDatabaseException.cs | 4 +- .../Tizen.Content.MediaContent/MediaInfo.cs | 14 +-- .../MediaInfoColumnKey.cs | 2 +- .../Tizen.Content.MediaContent/MediaInfoCommand.cs | 132 ++++++++++----------- .../MediaInfoUpdateValues.cs | 12 +- .../Tizen.Content.MediaContent/NamespaceDoc.cs | 10 +- .../Tizen.Content.MediaContent/PlayList.cs | 26 ++-- .../Tizen.Content.MediaContent/PlaylistCommand.cs | 124 +++++++++---------- .../Tizen.Content.MediaContent/PlaylistMember.cs | 8 +- .../Tizen.Content.MediaContent/QueryArguments.cs | 24 ++-- .../Tizen.Content.MediaContent/Rectangle.cs | 36 +++--- .../Tizen.Content.MediaContent/Storage.cs | 8 +- .../Tizen.Content.MediaContent/StorageCommand.cs | 34 +++--- .../Tizen.Content.MediaContent/Tag.cs | 6 +- .../Tizen.Content.MediaContent/TagCommand.cs | 66 +++++------ src/Tizen.Location/Interop/Interop.Location.cs | 3 + src/Tizen.Location/Tizen.Location/Locator.cs | 7 +- src/Tizen.Location/Tizen.Location/LocatorHelper.cs | 34 ++++++ .../Tizen.Location/ServiceStateChangedEventArgs.cs | 2 +- .../Tizen.Location/ZoneChangedEventArgs.cs | 4 +- 42 files changed, 494 insertions(+), 440 deletions(-) create mode 100644 pkg/build/LICENSE.NETStandardLibrary.txt diff --git a/packaging/csapi-tizenfx.spec b/packaging/csapi-tizenfx.spec index 2268e95..4820b46 100644 --- a/packaging/csapi-tizenfx.spec +++ b/packaging/csapi-tizenfx.spec @@ -10,7 +10,7 @@ Name: csapi-tizenfx Summary: Assemblies of Tizen .NET -Version: 4.0.0.170 +Version: 4.0.0.172 Release: 1 Group: Development/Libraries License: Apache-2.0 diff --git a/pkg/PlatformFileList.txt b/pkg/PlatformFileList.txt index df00365..cee39bb 100644 --- a/pkg/PlatformFileList.txt +++ b/pkg/PlatformFileList.txt @@ -58,7 +58,7 @@ Tizen.Network.Nsd.dll #common #mobile #mobile-emul Tizen.Network.Smartcard.dll #mobile #mobile-emul #ivi #wearable Tizen.Network.WiFi.dll #common #mobile #mobile-emul #tv #ivi #wearable Tizen.Network.WiFiDirect.dll #mobile #tv #ivi -Tizen.NUI.dll #common #mobile #mobile-emul #tv +Tizen.NUI.dll #common #mobile #mobile-emul #tv #wearable Tizen.PhonenumberUtils.dll #mobile #mobile-emul #wearable Tizen.Pims.Calendar.dll #common #mobile #mobile-emul #tv #wearable Tizen.Pims.Contacts.dll #mobile #mobile-emul #wearable diff --git a/pkg/build/LICENSE.NETStandardLibrary.txt b/pkg/build/LICENSE.NETStandardLibrary.txt new file mode 100644 index 0000000..56e51b1 --- /dev/null +++ b/pkg/build/LICENSE.NETStandardLibrary.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) .NET Foundation and Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutErrorFactory.cs b/src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutErrorFactory.cs index 4ed4850..26c0656 100755 --- a/src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutErrorFactory.cs +++ b/src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutErrorFactory.cs @@ -32,6 +32,8 @@ namespace Tizen.Applications.Shortcut return new UnauthorizedAccessException(err + " Permission denied (http://tizen.org/privilege/shortcut)"); case Interop.Shortcut.ErrorCode.NotSupported: return new NotSupportedException(err + " Not Supported (http://tizen.org/feature/shortcut)"); + case Interop.Shortcut.ErrorCode.OutOfMemory: + return new OutOfMemoryException(err + " error occurred."); default: Log.Error(LogTag, msg); return new InvalidOperationException(err + " error occurred."); diff --git a/src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutManager.cs b/src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutManager.cs index 22b3692..f27507d 100755 --- a/src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutManager.cs +++ b/src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutManager.cs @@ -17,7 +17,6 @@ namespace Tizen.Applications.Shortcut { using System; - using System.Threading.Tasks; /// /// This class provides the some functions to add, delete shortcut. @@ -37,12 +36,13 @@ namespace Tizen.Applications.Shortcut /// /// 3 /// Object that contain shortcut info. - /// http://tizen.org/feature/shortcut + /// http://tizen.org/feature/shortcut /// http://tizen.org/privilege/shortcut /// Thrown when argument is invalid. /// Thrown in case of permission denied. - /// Thrown in case of any internal error. /// Thrown when Shortcut is not supported. + /// Thrown in case of out of memory. + /// Thrown in case of any internal error. public static void Add(HomeShortcutInfo shortcut) { Interop.Shortcut.ErrorCode err = Interop.Shortcut.ErrorCode.None; @@ -82,12 +82,13 @@ namespace Tizen.Applications.Shortcut /// /// 3 /// Object that contain shortcut info. - /// http://tizen.org/feature/shortcut + /// http://tizen.org/feature/shortcut /// http://tizen.org/privilege/shortcut /// Thrown when argument is invalid. /// Thrown in case of permission denied. - /// Thrown in case of any internal error. /// Thrown when Shortcut is not supported. + /// Thrown in case of out of memory. + /// Thrown in case of any internal error. public static void Add(WidgetShortcutInfo shortcut) { Interop.Shortcut.ErrorCode err = Interop.Shortcut.ErrorCode.None; @@ -121,12 +122,13 @@ namespace Tizen.Applications.Shortcut /// /// 3 /// Shortcut name string. - /// http://tizen.org/feature/shortcut + /// http://tizen.org/feature/shortcut /// http://tizen.org/privilege/shortcut /// Thrown when argument is invalid. /// Thrown in case of permission denied. - /// Thrown in case of any internal error. /// Thrown when Shortcut is not supported. + /// Thrown in case of out of memory. + /// Thrown in case of any internal error. public static void Delete(string shortcutName) { Interop.Shortcut.ErrorCode err = Interop.Shortcut.ErrorCode.None; @@ -160,12 +162,13 @@ namespace Tizen.Applications.Shortcut /// /// 3 /// Object that contain shortcut info. - /// http://tizen.org/feature/shortcut + /// http://tizen.org/feature/shortcut /// http://tizen.org/privilege/shortcut /// Thrown when argument is invalid. /// Thrown in case of permission denied. - /// Thrown in case of any internal error. /// Thrown when Shortcut is not supported. + /// Thrown in case of out of memory. + /// Thrown in case of any internal error. public static void Delete(ShortcutInfo shortcut) { if (shortcut == null) diff --git a/src/Tizen.Applications.Shortcut/Tizen.Applications.ShortcutEvent/ShortcutEventEnumerations.cs b/src/Tizen.Applications.Shortcut/Tizen.Applications.ShortcutEvent/ShortcutEventEnumerations.cs index 4a66f55..9dc4e40 100755 --- a/src/Tizen.Applications.Shortcut/Tizen.Applications.ShortcutEvent/ShortcutEventEnumerations.cs +++ b/src/Tizen.Applications.Shortcut/Tizen.Applications.ShortcutEvent/ShortcutEventEnumerations.cs @@ -37,26 +37,11 @@ namespace Tizen.Applications.Shortcut OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /// - /// Permission denied. - /// - PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, - - /// /// I/O Error. /// IoError = Tizen.Internals.Errors.ErrorCode.IoError, /// - /// Not supported. - /// - NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, - - /// - /// Device or resource busy. - /// - ResourceBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy, - - /// /// There is no space to add a new shortcut. /// NoSpace = -0x01160000 | 0x01, @@ -67,18 +52,8 @@ namespace Tizen.Applications.Shortcut Exist = -0x01160000 | 0x02, /// - /// Unrecoverable error. - /// - Fault = -0x01160000 | 0x04, - - /// /// Not exist shortcut. /// NotExist = -0x01160000 | 0x08, - - /// - /// Connection not established or communication problem. - /// - COMM = -0x01160000 | 0x40 } -} \ No newline at end of file +} diff --git a/src/Tizen.Applications.Shortcut/Tizen.Applications.ShortcutEvent/ShortcutEventManager.cs b/src/Tizen.Applications.Shortcut/Tizen.Applications.ShortcutEvent/ShortcutEventManager.cs index 08b818a..a4467d4 100755 --- a/src/Tizen.Applications.Shortcut/Tizen.Applications.ShortcutEvent/ShortcutEventManager.cs +++ b/src/Tizen.Applications.Shortcut/Tizen.Applications.ShortcutEvent/ShortcutEventManager.cs @@ -18,6 +18,7 @@ namespace Tizen.Applications.Shortcut { using System; using System.Collections.Generic; + using Tizen.Internals.Errors; /// /// The callback function that is invoked when add request occurred @@ -53,15 +54,16 @@ namespace Tizen.Applications.Shortcut /// /// 3 /// The callback function pointer that is invoked when Add() is requested - /// http://tizen.org/feature/shortcut + /// http://tizen.org/feature/shortcut /// http://tizen.org/privilege/shortcut /// /// Previous registered delegate function should be unregister. /// /// Thrown when argument is invalid. /// Thrown in case of permission denied. - /// Thrown in case of any internal error. /// Thrown when Shortcut is not supported. + /// Thrown in case of out of memory. + /// Thrown in case of any internal error. public static void RegisterEventHandler(ShortcutAdded addedEvent) { shortcutAdded = addedEvent; @@ -83,15 +85,16 @@ namespace Tizen.Applications.Shortcut /// /// 3 /// The callback function pointer that is invoked when Delete() is requested - /// http://tizen.org/feature/shortcut + /// http://tizen.org/feature/shortcut /// http://tizen.org/privilege/shortcut /// /// Previous registered delegate function should be unregister. /// /// Thrown when argument is invalid. /// Thrown in case of permission denied. - /// Thrown in case of any internal error. /// Thrown when Shortcut is not supported. + /// Thrown in case of out of memory. + /// Thrown in case of any internal error. public static void RegisterEventHandler(ShortcutDeleted deletedEvent) { shortcutDeleted = deletedEvent; @@ -113,11 +116,10 @@ namespace Tizen.Applications.Shortcut /// /// 3 /// The callback function pointer that used for RegisterCallback - /// http://tizen.org/feature/shortcut + /// http://tizen.org/feature/shortcut /// http://tizen.org/privilege/shortcut /// Thrown when argument is invalid. /// Thrown in case of permission denied. - /// Thrown in case of any internal error. /// Thrown when Shortcut is not supported. public static void UnregisterEventHandler(ShortcutAdded addedEvent) { @@ -129,6 +131,12 @@ namespace Tizen.Applications.Shortcut { Interop.Shortcut.UnsetShortcutAddCallback(); shortcutAddCallback = null; + + int err = ErrorFacts.GetLastResult(); + if (err != (int)Interop.Shortcut.ErrorCode.None) + { + throw ShortcutErrorFactory.GetException((Interop.Shortcut.ErrorCode)err, "unable to unregister callback"); + } } } else @@ -142,11 +150,10 @@ namespace Tizen.Applications.Shortcut /// /// 3 /// The callback function pointer that used for RegisterCallback - /// http://tizen.org/feature/shortcut + /// http://tizen.org/feature/shortcut /// http://tizen.org/privilege/shortcut /// Thrown when argument is invalid. /// Thrown in case of permission denied. - /// Thrown in case of any internal error. /// Thrown when Shortcut is not supported. public static void UnregisterEventHandler(ShortcutDeleted deletedEvent) { @@ -156,8 +163,15 @@ namespace Tizen.Applications.Shortcut if (shortcutDeleteCallback != null) { + Interop.Shortcut.UnsetShortcutDeleteCallback(); shortcutDeleteCallback = null; + + int err = ErrorFacts.GetLastResult(); + if (err != (int)Interop.Shortcut.ErrorCode.None) + { + throw ShortcutErrorFactory.GetException((Interop.Shortcut.ErrorCode) err, "unable to unregister callback"); + } } } else @@ -172,12 +186,13 @@ namespace Tizen.Applications.Shortcut /// 3 /// Application ID. /// The List of ShortcutTemplate. - /// http://tizen.org/feature/shortcut + /// http://tizen.org/feature/shortcut /// http://tizen.org/privilege/shortcut /// Thrown when argument is invalid. /// Thrown in case of permission denied. - /// Thrown in case of any internal error. /// Thrown when Shortcut is not supported. + /// Thrown in case of out of memory. + /// Thrown in case of any internal error. public static IEnumerable GetTemplateList(string appId) { shortcutTemplates.Clear(); diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Album.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Album.cs index 659c3fa..9bb2d2b 100755 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Album.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Album.cs @@ -19,7 +19,7 @@ using System; namespace Tizen.Content.MediaContent { /// - /// Represents a logical collection grouping of related media info. + /// Represents a logical collection grouping of related media information. /// /// public class Album @@ -36,9 +36,9 @@ namespace Tizen.Content.MediaContent internal static Album FromHandle(IntPtr handle) => new Album(handle); /// - /// Get the id of the album. + /// Gets the ID of the album. /// - /// The unique id of the album. + /// The unique ID of the album. public int Id { get; } /// diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/AlbumCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/AlbumCommand.cs index e2a2037..42abf3d 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/AlbumCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/AlbumCommand.cs @@ -27,7 +27,7 @@ namespace Tizen.Content.MediaContent /// /// Initializes a new instance of the class with the specified . /// - /// A that the commands run on. + /// The that the commands run on. /// is null. /// has already been disposed of. public AlbumCommand(MediaDatabase database) : base(database) @@ -89,9 +89,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves an album with an album id. + /// Retrieves an album with the album ID. /// - /// The id of the album to query with. + /// The ID of the album to query with. /// The if exists, otherwise null. /// The is disconnected. /// The has already been disposed of. @@ -121,10 +121,10 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of media info that belongs to the album. + /// Retrieves the number of media information that belongs to the album. /// - /// The id of the album to query with. - /// The number of media info. + /// The ID of the album to query with. + /// The number of media information. /// The is disconnected. /// The has already been disposed of. /// is equal to or less than zero. @@ -135,11 +135,11 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of media info that belongs to the album with .. + /// Retrieves the number of media information that belongs to the album with . /// - /// The id of the album to count media. + /// The ID of the album to count media. /// The criteria to use to filter. This value can be null. - /// The number of media info. + /// The number of media information. /// The is disconnected. /// The has already been disposed of. /// is equal to or less than zero. @@ -158,9 +158,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the media info of an album. + /// Retrieves the media information of the album. /// - /// The id of the album to select media. + /// The ID of the album to select media. /// The containing the results. /// The is disconnected. /// The has already been disposed of. @@ -171,9 +171,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the media info of an album with . + /// Retrieves the media information of the album with . /// - /// The id of the album to query with. + /// The ID of the album to query with. /// The criteria to use to filter. This value can be null. /// The containing the results. /// The is disconnected. diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/AudioInfo.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/AudioInfo.cs index 3d0db51..ecfda74 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/AudioInfo.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/AudioInfo.cs @@ -20,7 +20,7 @@ using System.Diagnostics; namespace Tizen.Content.MediaContent { /// - /// Represents an audio media information. + /// Represents the audio media information. /// public class AudioInfo : MediaInfo { diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Bookmark.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Bookmark.cs index aee5128..f1c8d5f 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Bookmark.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Bookmark.cs @@ -19,8 +19,8 @@ using System; namespace Tizen.Content.MediaContent { /// - /// Represents a media bookmark that allows you to mark interesting moment - /// in media(video and audio) to enable fast searching. + /// Represents the media bookmark that allows you to mark an interesting moment + /// in media (video and audio) to enable fast searching. /// public class Bookmark { @@ -33,9 +33,9 @@ namespace Tizen.Content.MediaContent } /// - /// Gets the id of the bookmark. + /// Gets the ID of the bookmark. /// - /// The id of the bookmark. + /// The ID of the bookmark. public int Id { get; } /// diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/BookmarkCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/BookmarkCommand.cs index fd13fc9..a99383a 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/BookmarkCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/BookmarkCommand.cs @@ -19,7 +19,7 @@ using System; namespace Tizen.Content.MediaContent { /// - /// Provides commands to manage bookmarks in database. + /// Provides commands to manage bookmarks in the database. /// /// public class BookmarkCommand : MediaCommand @@ -27,7 +27,7 @@ namespace Tizen.Content.MediaContent /// /// Initializes a new instance of the class with the specified . /// - /// A that the commands run on. + /// The that the commands run on. /// is null. /// has already been disposed of. public BookmarkCommand(MediaDatabase database) : base(database) @@ -62,10 +62,10 @@ namespace Tizen.Content.MediaContent } /// - /// Inserts new bookmark into the database with the specified media and offset. + /// Inserts a new bookmark into the database with the specified media and offset. /// /// http://tizen.org/privilege/content.write - /// The media id to be associated with. + /// The media ID to be associated with. /// The time offset in milliseconds. /// The instance that contains the record information inserted. /// The is disconnected. @@ -80,10 +80,10 @@ namespace Tizen.Content.MediaContent } /// - /// Inserts new bookmark into the database with the specified media id, offset and name. + /// Inserts a new bookmark into the database with the specified media ID, offset, and name. /// /// http://tizen.org/privilege/content.write - /// The media id to be associated with. + /// The media ID to be associated with. /// The time offset in milliseconds. /// The name of the bookmark. This value can be null. /// The instance that contains the record information inserted. @@ -99,13 +99,13 @@ namespace Tizen.Content.MediaContent } /// - /// Inserts new bookmark into the database with the specified media id, offset, name and thumbnail path. + /// Inserts a new bookmark into the database with the specified media ID, offset, name, and thumbnail path. /// /// http://tizen.org/privilege/content.write /// - /// Thumbnail may be useful only when the media is video. + /// The thumbnail may be useful only when the media is video. /// - /// The media id to be associated with. + /// The media ID to be associated with. /// The time offset in milliseconds. /// The name of the bookmark. This value can be null. /// The thumbnail path of the bookmark. This value can be null. @@ -148,7 +148,7 @@ namespace Tizen.Content.MediaContent /// Deletes a bookmark from the database. /// /// http://tizen.org/privilege/content.write - /// The bookmark id to delete. + /// The bookmark ID to delete. /// true if the matched record was found and deleted, otherwise false. /// The is disconnected. /// The has already been disposed of. diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Columns.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Columns.cs index d4ae50c..e3346d2 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Columns.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Columns.cs @@ -47,9 +47,9 @@ namespace Tizen.Content.MediaContent public static class MediaInfoColumns { /// - /// Gets the column name for the id of media. + /// Gets the column name for the ID of media. /// - /// The column name for the id of media. + /// The column name for the ID of media. /// The value type is string. /// public static string Id => "MEDIA_ID"; @@ -63,7 +63,7 @@ namespace Tizen.Content.MediaContent public static string Path => "MEDIA_PATH"; /// - /// Gets the column name for display name of media. + /// Gets the column name for the display name of media. /// /// The column name for the display name of media. /// The value type is string. @@ -76,7 +76,7 @@ namespace Tizen.Content.MediaContent /// The column name for the type of media. /// /// The value type is integer. - /// The value should be an integer that is one of values. + /// The value should be an integer that is one of the values. /// /// public static string MediaType => "MEDIA_TYPE"; @@ -381,16 +381,16 @@ namespace Tizen.Content.MediaContent /// The column name for the orientation of media. /// /// The value type is integer. - /// The value should be an integer that is one of values. + /// The value should be an integer that is one of the values. /// /// /// public static string Orientation => "MEDIA_ORIENTATION"; /// - /// Gets the column name for the burst id of media. + /// Gets the column name for the burst ID of media. /// - /// The column name for the burst id of media. + /// The column name for the burst ID of media. /// /// The value type is string. /// @@ -412,7 +412,7 @@ namespace Tizen.Content.MediaContent /// /// The column name for the favorite status of media. /// - /// The value type is integer(1 : true, 0 : false). + /// The value type is integer (1 : true, 0 : false). /// /// public static string Favorite => "MEDIA_FAVOURITE"; @@ -473,7 +473,7 @@ namespace Tizen.Content.MediaContent /// /// The column name for the drm of media. /// - /// The value type is integer(1 : true, 0 : false). + /// The value type is integer (1 : true, 0 : false). /// /// public static string IsDrm => "MEDIA_IS_DRM"; @@ -484,7 +484,7 @@ namespace Tizen.Content.MediaContent /// The column name for the storage type of media. /// /// The value type is integer. - /// The value should be an integer that is one of values. + /// The value should be an integer that is one of the values. /// /// public static string StorageType => "MEDIA_STORAGE_TYPE"; @@ -510,9 +510,9 @@ namespace Tizen.Content.MediaContent public static string FNumber => "MEDIA_FNUMBER"; /// - /// Gets the column name for the iso of media. + /// Gets the column name for the ISO of media. /// - /// The column name for the iso of media. + /// The column name for the ISO of media. /// /// The value type is integer. /// @@ -575,9 +575,9 @@ namespace Tizen.Content.MediaContent public static class FolderColumns { /// - /// Gets the column name for the id of folder. + /// Gets the column name for the ID of folder. /// - /// The column name for the id of folder. + /// The column name for the ID of folder. /// /// The value type is string. /// @@ -610,7 +610,7 @@ namespace Tizen.Content.MediaContent /// The column name for the storage type of folder. /// /// The value type is integer. - /// The value should be an integer that is one of values. + /// The value should be an integer that is one of the values. /// /// public static string StorageType => "FOLDER_STORAGE_TYPE"; @@ -638,9 +638,9 @@ namespace Tizen.Content.MediaContent public static string Name => "PLAYLIST_NAME"; /// - /// Gets the column name for the id of playlist. + /// Gets the column name for the ID of playlist. /// - /// The column name for the id of playlist. + /// The column name for the ID of playlist. /// /// The value type is integer. /// @@ -670,7 +670,7 @@ namespace Tizen.Content.MediaContent } /// - /// Provides the tag column names that can be used for . + /// Provides the tag column names that can be used for the . /// /// /// @@ -706,9 +706,9 @@ namespace Tizen.Content.MediaContent public static string Count => "TAG_MEDIA_COUNT"; /// - /// Gets the column name for the id of tag. + /// Gets the column name for the ID of tag. /// - /// The column name for the id of tag. + /// The column name for the ID of tag. /// /// The value type is integer. /// @@ -730,9 +730,9 @@ namespace Tizen.Content.MediaContent public static class BookmarkColumns { /// - /// Gets the column name for offset of bookmark. + /// Gets the column name for the offset of the bookmark. /// - /// The column name for the offset of bookmark. + /// The column name for the offset of the bookmark. /// /// The value type is integer. /// @@ -740,9 +740,9 @@ namespace Tizen.Content.MediaContent public static string Offset => "BOOKMARK_MARKED_TIME"; /// - /// Gets the column name for the id of bookmark. + /// Gets the column name for the ID of the bookmark. /// - /// The column name for the id of bookmark. + /// The column name for the ID of the bookmark. /// /// The value type is integer. /// @@ -750,9 +750,9 @@ namespace Tizen.Content.MediaContent public static string Id => "BOOKMARK_ID"; /// - /// Gets the column name for the name of bookmark. + /// Gets the column name for the name of the bookmark. /// - /// The column name for the name of bookmark. + /// The column name for the name of the bookmark. /// /// The value type is string. /// @@ -773,9 +773,9 @@ namespace Tizen.Content.MediaContent public static class FaceInfoColumns { /// - /// Gets the column name for the tag of face info. + /// Gets the column name for the tag of face information. /// - /// The column name for the tag of face info. + /// The column name for the tag of face information. /// /// The value type is string. /// @@ -783,9 +783,9 @@ namespace Tizen.Content.MediaContent public static string Tag => "MEDIA_FACE_TAG"; /// - /// Gets the column name for the id of face info. + /// Gets the column name for the ID of face information. /// - /// The column name for the id of face info. + /// The column name for the ID of face information. /// /// The value type is string. /// @@ -805,9 +805,9 @@ namespace Tizen.Content.MediaContent public static class StorageColumns { /// - /// Gets the column name for the id of storage. + /// Gets the column name for the ID of storage. /// - /// The column name for the id of storage. + /// The column name for the ID of storage. /// /// The value type is string. /// @@ -830,7 +830,7 @@ namespace Tizen.Content.MediaContent /// The column name for the type of storage. /// /// The value type is integer. - /// The value should be an integer that is one of values. + /// The value should be an integer that is one of the values. /// /// public static string Type => "MEDIA_STORAGE_TYPE"; diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Enums.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Enums.cs index 525fddc..f020dfc 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Enums.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Enums.cs @@ -40,7 +40,7 @@ namespace Tizen.Content.MediaContent } /// - /// Specifies storage types. + /// Specifies the storage types. /// public enum StorageType { @@ -50,12 +50,12 @@ namespace Tizen.Content.MediaContent Internal = 0, /// - /// The device's external storage like sd card. + /// The device's external storage like SD card. /// External = 1, /// - /// The external usb storage. + /// The external USB storage. /// ExternalUsb = 2 } @@ -88,7 +88,7 @@ namespace Tizen.Content.MediaContent } /// - /// Specifies types of . + /// Specifies types of the . /// public enum MediaType { diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/EventArgs.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/EventArgs.cs index b8f49fd..b2c7eab 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/EventArgs.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/EventArgs.cs @@ -37,9 +37,9 @@ namespace Tizen.Content.MediaContent } /// - /// Gets the process id which triggers the event. + /// Gets the process ID which triggers the event. /// - /// The process id which triggers the event. + /// The process ID which triggers the event. public int ProcessId { get; @@ -55,9 +55,9 @@ namespace Tizen.Content.MediaContent } /// - /// Gets the id of the media updated. + /// Gets the ID of the media updated. /// - /// The id of the media updated. + /// The ID of the media updated. public string Id { get; @@ -82,9 +82,9 @@ namespace Tizen.Content.MediaContent } /// - /// The mime type of the media updated. + /// The MIME type of the media updated. /// - /// The mime type of the media updated. + /// The MIME type of the media updated. public string MimeType { get; @@ -114,9 +114,9 @@ namespace Tizen.Content.MediaContent } /// - /// Gets the id of the folder updated. + /// Gets the ID of the folder updated. /// - /// The id of the folder updated. + /// The ID of the folder updated. public string Id { get; diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfo.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfo.cs index bdbf132..a1b4901 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfo.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfo.cs @@ -19,7 +19,7 @@ using System; namespace Tizen.Content.MediaContent { /// - /// Represents the face information for media. + /// Represents the face information for the media. /// public class FaceInfo { @@ -52,26 +52,26 @@ namespace Tizen.Content.MediaContent public Rectangle Rect { get; } /// - /// Gets the id of face info. + /// Gets the ID of face information. /// public string Id { get; } /// - /// Gets the media id that the face info is added. + /// Gets the media ID that the face information is added. /// - /// The media id that the face info is added. + /// The media ID that the face information is added. public string MediaInfoId { get; } /// /// Gets the tag name. /// - /// The tag name of face info. + /// The tag name of face information. public string Tag { get; } /// - /// Gets the orientation of face info. + /// Gets the orientation of face information. /// - /// The orientation of face info. + /// The orientation of face information. public Orientation Orientation { get; } internal static FaceInfo FromHandle(IntPtr handle) @@ -80,7 +80,7 @@ namespace Tizen.Content.MediaContent } /// - /// Returns a string representation of the face info. + /// Returns a string representation of the face information. /// /// A string representation of the current face info. public override string ToString() => diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfoCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfoCommand.cs index 45b4ae2..8b3f8dc 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfoCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfoCommand.cs @@ -19,7 +19,7 @@ using System; namespace Tizen.Content.MediaContent { /// - /// Provides commands to manage face infos in the database. + /// Provides commands to manage face information in the database. /// /// public class FaceInfoCommand : MediaCommand @@ -27,7 +27,7 @@ namespace Tizen.Content.MediaContent /// /// Initializes a new instance of the class with the specified . /// - /// A that the commands run on. + /// The that the commands run on. /// is null. /// has already been disposed of. public FaceInfoCommand(MediaDatabase database) : base(database) @@ -35,10 +35,10 @@ namespace Tizen.Content.MediaContent } /// - /// Deletes a face info from the database. + /// Deletes the face information from the database. /// /// http://tizen.org/privilege/content.write - /// The face info id to delete. + /// The face information ID to delete. /// true if the matched record was found and deleted, otherwise false. /// The is disconnected. /// The has already been disposed of. @@ -64,7 +64,7 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the face info. + /// Retrieves the face information. /// /// The containing the results. /// The is disconnected. @@ -76,7 +76,7 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the face info with . + /// Retrieves the face information with the . /// /// The criteria to use to filter. This value can be null. /// The containing the results. @@ -94,10 +94,10 @@ namespace Tizen.Content.MediaContent /// Updates a tag with the specified tag. /// /// http://tizen.org/privilege/content.write - /// The face info id to update. + /// The face information ID to update. /// The tag value for update. /// true if the matched record was found and updated, otherwise false. - /// Only values set in are updated. + /// Only values set in the are updated. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Folder.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Folder.cs index d48ead4..3aed397 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Folder.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Folder.cs @@ -19,10 +19,10 @@ using System; namespace Tizen.Content.MediaContent { /// - /// Represents the folder information for media. + /// Represents the folder information for the media. /// /// - /// A is used to organize media content files i.e. image, audio, video files, + /// The is used to organize media content files, i.e., image, audio, and video files, /// in the physical storage of the device. /// public class Folder @@ -40,21 +40,21 @@ namespace Tizen.Content.MediaContent internal static Folder FromHandle(IntPtr handle) => new Folder(handle); /// - /// Gets the id of folder. + /// Gets the ID of the folder. /// - /// The unique id of folder. + /// The unique ID of the folder. public string Id { get; } /// - /// Gets the path of folder. + /// Gets the path of the folder. /// - /// The path of folder. + /// The path of the folder. public string Path { get; } /// - /// Gets the name of folder. + /// Gets the name of the folder. /// - /// The name of folder. + /// The name of the folder. public string Name { get; } /// @@ -64,9 +64,9 @@ namespace Tizen.Content.MediaContent public StorageType StorageType { get; } /// - /// Gets the storage id of the storage that the folder exists. + /// Gets the storage ID of the storage that the folder exists. /// - /// The storage id of the storage that the folder exists. + /// The storage ID of the storage that the folder exists. public string StorageId { get; } /// diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FolderCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FolderCommand.cs index 05c7fb3..abfdd12 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FolderCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FolderCommand.cs @@ -26,7 +26,7 @@ namespace Tizen.Content.MediaContent /// /// Initializes a new instance of the class with the specified . /// - /// A that the commands run on. + /// The that the commands run on. /// is null. /// has already been disposed of. public FolderCommand(MediaDatabase database) : base(database) @@ -46,7 +46,7 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of folders with . + /// Retrieves the number of folders with the . /// /// The criteria to use to filter. This value can be null. /// The number of folders. @@ -73,7 +73,7 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the folders with . + /// Retrieves the folders with the . /// /// The criteria to use to filter. This value can be null. /// The containing the results. @@ -90,7 +90,7 @@ namespace Tizen.Content.MediaContent /// /// Retrieves the folder. /// - /// The folder id to query with. + /// The folder ID to query with. /// The instance if the matched record was found in the database, otherwise null. /// The is disconnected. /// The has already been disposed of. @@ -121,10 +121,10 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of media info under the folder. + /// Retrieves the number of media information under the folder. /// - /// The id of the folder to count media in the folder. - /// The number of media info. + /// The ID of the folder to count media in the folder. + /// The number of media information. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -136,11 +136,11 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of media info under the folder with . + /// Retrieves the number of media information under the folder with the . /// - /// The id of the folder to count media in the folder. + /// The ID of the folder to count media in the folder. /// The criteria to use to filter. This value can be null. - /// The number of media info. + /// The number of media information. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -156,9 +156,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the media info under the folder. + /// Retrieves the media information under the folder. /// - /// The id of the folder to select media in the folder. + /// The ID of the folder to select media in the folder. /// The containing the results. /// The is disconnected. /// The has already been disposed of. @@ -171,9 +171,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the media info under the folder with . + /// Retrieves the media information under the folder with the . /// - /// The id of the folder to select media in the folder. + /// The ID of the folder to select media in the folder. /// The criteria to use to filter. This value can be null. /// The containing the results. /// The is disconnected. diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/ImageInfo.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/ImageInfo.cs index 5ea5416..0a60625 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/ImageInfo.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/ImageInfo.cs @@ -82,34 +82,34 @@ namespace Tizen.Content.MediaContent public string DateTaken { get; } /// - /// Gets the burst shot id. + /// Gets the burst shot ID. /// - /// The burst shot id if it is a burst shot, otherwise an empty string. + /// The burst shot ID if it is a burst shot, otherwise an empty string. /// public string BurstId { get; } /// - /// Gets the exposure time from exif. + /// Gets the exposure time from EXIF. /// - /// The exposure time from exif. + /// The exposure time from EXIF. public string ExposureTime { get; } /// - /// Gets the FNumber from exif. + /// Gets the FNumber from EXIF. /// /// The FNumber from exif. public double FNumber { get; } /// - /// Gets the iso from exif. + /// Gets the ISO from EXIF. /// - /// The iso from exif. + /// The iso from EXIF. public int Iso { get; } /// - /// Gets the model from exif. + /// Gets the model from EXIF. /// - /// The model from exif. + /// The model from EXIF. public string Model { get; } /// diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaCommand.cs index 5ae3bf5..41e5e36 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaCommand.cs @@ -20,14 +20,14 @@ using System.Collections.Generic; namespace Tizen.Content.MediaContent { /// - /// is a base class for command classes. + /// The is a base class for command classes. /// public abstract class MediaCommand { /// /// Initializes a new instance of the class with the specified . /// - /// A that the commands run on. + /// The that the commands run on. /// is null. /// has already been disposed of. protected MediaCommand(MediaDatabase database) diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabase.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabase.cs index d9a152e..c8676f7 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabase.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabase.cs @@ -153,7 +153,7 @@ namespace Tizen.Content.MediaContent private static readonly object _folderUpdatedLock = new object(); /// - /// Occurs when there is a change for folder in the database. + /// Occurs when there is a change for the folder in the database. /// public static event EventHandler FolderUpdated { @@ -228,7 +228,7 @@ namespace Tizen.Content.MediaContent } /// - /// Requests to scan a folder, recursively. + /// Requests to scan a folder recursively. /// /// /// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage.\n @@ -267,7 +267,7 @@ namespace Tizen.Content.MediaContent /// http://tizen.org/privilege/mediastorage /// http://tizen.org/privilege/externalstorage /// The path to scan. - /// The value indicating if the folder is to recursively scanned. + /// The value indicating if the folder is to be recursively scanned. /// Folders that contains a file named ".scan_ignore" will not be scanned. /// A task that represents the asynchronous scan operation. /// The database is not connected. @@ -287,7 +287,7 @@ namespace Tizen.Content.MediaContent } /// - /// Requests to scan a folder, recursively. + /// Requests to scan a folder recursively. /// /// /// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage.\n @@ -317,7 +317,7 @@ namespace Tizen.Content.MediaContent } /// - /// Requests to scan a folder, recursively. + /// Requests to scan a folder recursively. /// /// /// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage.\n @@ -327,7 +327,7 @@ namespace Tizen.Content.MediaContent /// http://tizen.org/privilege/mediastorage /// http://tizen.org/privilege/externalstorage /// The path to scan. - /// The value indicating if the folder is to recursively scanned. + /// The value indicating if the folder is to be recursively scanned. /// The token to stop scanning. /// Folders that contains a file named ".scan_ignore" will not be scanned. /// A task that represents the asynchronous scan operation. @@ -448,7 +448,7 @@ namespace Tizen.Content.MediaContent } /// - /// Releases all resources. + /// Releases all the resources. /// public void Dispose() { diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabaseException.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabaseException.cs index 34723ba..c94a5fe 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabaseException.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabaseException.cs @@ -19,7 +19,7 @@ using System; namespace Tizen.Content.MediaContent { /// - /// Specifies database errors. + /// Specifies the database errors. /// public enum MediaDatabaseError { @@ -35,7 +35,7 @@ namespace Tizen.Content.MediaContent } /// - /// The exception that is thrown when an database operation failed. + /// The exception that is thrown when a database operation failed. /// public class MediaDatabaseException : Exception { diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfo.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfo.cs index 8705d6b..b83a6c6 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfo.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfo.cs @@ -65,9 +65,9 @@ namespace Tizen.Content.MediaContent } /// - /// Gets the id of media. + /// Gets the ID of media. /// - /// The unique id of media. + /// The unique ID of media. public string Id { get; } /// @@ -116,7 +116,7 @@ namespace Tizen.Content.MediaContent /// Gets the timeline of media. /// /// - /// The creation date if the file has the creation information (like recorded date or Image creation date), + /// The creation date if the file has the creation information (like recorded date or image creation date), /// otherwise the modified date. /// public DateTimeOffset Timeline { get; } @@ -200,9 +200,9 @@ namespace Tizen.Content.MediaContent public string AgeRating { get; } /// - /// Gets the storage id of the storage that the media is stored on. + /// Gets the storage ID of the storage that the media is stored on. /// - /// The storage id of the storage that the media is stored on. + /// The storage ID of the storage that the media is stored on. public string StorageId { get; } /// @@ -218,9 +218,9 @@ namespace Tizen.Content.MediaContent public StorageType StorageType { get; } /// - /// Returns a string representation of the media info. + /// Returns a string representation of the media information. /// - /// A string representation of the current media info. + /// A string representation of the current media information. public override string ToString() => $"Id={Id}, Path={Path}, MediaType={MediaType}"; internal static MediaInfo FromHandle(Interop.MediaInfoHandle handle) diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoColumnKey.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoColumnKey.cs index 8c6d799..12f5364 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoColumnKey.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoColumnKey.cs @@ -17,7 +17,7 @@ namespace Tizen.Content.MediaContent { /// - /// Specifies group keys for . + /// Specifies the group keys for . /// public enum MediaInfoColumnKey { diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs index f74d8b1..7eb2be4 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs @@ -24,14 +24,14 @@ using System.Threading.Tasks; namespace Tizen.Content.MediaContent { /// - /// Provides commands to manage media info and query related items in the database. + /// Provides commands to manage the media information and query related items in the database. /// public class MediaInfoCommand : MediaCommand { /// /// Initializes a new instance of the class with the specified . /// - /// A that the commands run on. + /// The that the commands run on. /// is null. /// has already been disposed of. public MediaInfoCommand(MediaDatabase database) : base(database) @@ -41,8 +41,8 @@ namespace Tizen.Content.MediaContent /// /// Retrieves the number of the bookmarks added to the media. /// - /// The media id to count bookmarks added to the media. - /// The number of bookmarks. + /// The media ID to count the bookmarks added to the media. + /// The number of the bookmarks. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -54,11 +54,11 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of the bookmarks added to the media with . + /// Retrieves the number of the bookmarks added to the media with the . /// - /// The media id to count bookmarks added to the media. + /// The media ID to count the bookmarks added to the media. /// The criteria to use to filter. This value can be null. - /// The number of bookmarks. + /// The number of the bookmarks. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -76,7 +76,7 @@ namespace Tizen.Content.MediaContent /// /// Retrieves the bookmarks added to the media. /// - /// The media id to select bookmarks added to the media. + /// The media ID to select the bookmarks added to the media. /// The containing the results. /// The is disconnected. /// The has already been disposed of. @@ -89,9 +89,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the bookmarks added to the media with . + /// Retrieves the bookmarks added to the media with the . /// - /// The media id to select bookmarks added to the media. + /// The media ID to select the bookmarks added to the media. /// The criteria to use to filter. This value can be null. /// The containing the results. /// The is disconnected. @@ -111,10 +111,10 @@ namespace Tizen.Content.MediaContent /// - /// Retrieves the number of the face info added to or detected from the media. + /// Retrieves the number of the face information added to or detected from the media. /// - /// The media id to count face info added to the media. - /// The number of face info. + /// The media ID to count face information added to the media. + /// The number of the face information. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -126,11 +126,11 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of the face info added to or detected from the media with filter. + /// Retrieves the number of the face information added to or detected from the media with filter. /// - /// The media id to count face info added to the media. + /// The media ID to count the face information added to the media. /// The criteria to use to filter. This value can be null. - /// The number of face info. + /// The number of the face information. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -146,9 +146,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the face info added to or detected from the media. + /// Retrieves the face information added to or detected from the media. /// - /// The media id to select face info added to the media. + /// The media ID to select face information added to the media. /// The containing the results. /// The is disconnected. /// The has already been disposed of. @@ -161,9 +161,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the face info added to or detected from the media with . + /// Retrieves the face information added to or detected from the media with the . /// - /// The media id to select face info added to the media. + /// The media ID to select the face information added to the media. /// The criteria to use to filter. This value can be null. /// The containing the results. /// The is disconnected. @@ -185,7 +185,7 @@ namespace Tizen.Content.MediaContent /// Retrieves the number of tags that the media has. /// /// The number of tags. - /// The media id to count tags added to the media. + /// The media ID to count tags added to the media. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -197,9 +197,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of tags that the media has with . + /// Retrieves the number of tags that the media has with the . /// - /// The media id to count tags added to the media. + /// The media ID to count tags added to the media. /// The criteria to use to filter. This value can be null. /// The number of tags. /// The is disconnected. @@ -219,7 +219,7 @@ namespace Tizen.Content.MediaContent /// /// Retrieves the tags that the media has. /// - /// The media id to select tags added to the media. + /// The media ID to select tags added to the media. /// The containing the results. /// The is disconnected. /// The has already been disposed of. @@ -232,9 +232,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the tags that the media has with . + /// Retrieves the tags that the media has with the . /// - /// The media id to select tags added to the media. + /// The media ID to select tags added to the media. /// The criteria to use to filter. This value can be null. /// The containing the results. /// The is disconnected. @@ -254,9 +254,9 @@ namespace Tizen.Content.MediaContent /// - /// Retrieves the number of the media info. + /// Retrieves the number of the media information. /// - /// The number of media info. + /// The number of the media information. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -266,10 +266,10 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of the media info with . + /// Retrieves the number of the media information with the . /// /// The criteria to use to filter. This value can be null. - /// The number of media info. + /// The number of media information. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -283,7 +283,7 @@ namespace Tizen.Content.MediaContent /// /// Retrieves the media. /// - /// The media id to retrieve. + /// The media ID to retrieve. /// The instance if the matched record was found in the database, otherwise null. /// The is disconnected. /// The has already been disposed of. @@ -310,7 +310,7 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of values grouped by the specified column with . + /// Retrieves the number of values grouped by the specified column with the . /// /// The column key. /// The number of groups. @@ -324,7 +324,7 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of values grouped by the specified column with . + /// Retrieves the number of values grouped by the specified column with the . /// /// The column key. /// The criteria to use to filter. This value can be null. @@ -361,7 +361,7 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the group values of the specified column. with . + /// Retrieves the group values of the specified column with the . /// /// The column key. /// The criteria to use to filter. This value can be null. @@ -404,7 +404,7 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the media with . + /// Retrieves the media with the . /// /// The criteria to use to filter. This value can be null. /// The containing the results. @@ -450,12 +450,12 @@ namespace Tizen.Content.MediaContent } /// - /// Deletes a media from the database. + /// Deletes the media from the database. /// /// http://tizen.org/privilege/content.write - /// The media id to delete. + /// The media ID to delete. /// true if the matched record was found and deleted, otherwise false. - /// or can be used instead. + /// The or the can be used instead. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -479,14 +479,14 @@ namespace Tizen.Content.MediaContent } /// - /// Adds media to the database. + /// Adds the media to the database. /// /// The file path to add. /// The instance that contains the record information in the database. /// - /// If the media already exists in the database, it returns existing information.\n + /// If the media already exists in the database, it returns the existing information.\n /// \n - /// or can be used instead.\n + /// The or the can be used instead.\n /// \n /// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage.\n /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage. @@ -589,7 +589,7 @@ namespace Tizen.Content.MediaContent /// /// contains null.\n /// -or-\n - /// contains invalid path.\n + /// contains the invalid path.\n /// -or-\n /// The number of is 300 or more items. /// @@ -646,7 +646,7 @@ namespace Tizen.Content.MediaContent /// /// contains null.\n /// -or-\n - /// contains invalid path.\n + /// contains the invalid path.\n /// -or-\n /// The number of is 300 or more items. /// @@ -702,13 +702,13 @@ namespace Tizen.Content.MediaContent } /// - /// Updates a media with the specified values. + /// Updates the media with the specified values. /// /// http://tizen.org/privilege/content.write - /// The media id to update. + /// The media ID to update. /// The values for update. /// true if the matched record was found and updated, otherwise false. - /// Only values set in are updated. + /// Only values set in the are updated. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -767,11 +767,11 @@ namespace Tizen.Content.MediaContent /// http://tizen.org/privilege/content.write /// http://tizen.org/privilege/mediastorage /// http://tizen.org/privilege/externalstorage - /// The media id to move. + /// The media ID to move. /// The path that the media has been moved to. /// true if the matched record was found and updated, otherwise false. /// - /// Usually, it is used after the media file is moved to another path.\n + /// Usually, it is used after the media file is moved to the another path.\n /// \n /// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage.\n /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage. @@ -836,11 +836,11 @@ namespace Tizen.Content.MediaContent #region CreateThumbnailAsync /// - /// Creates a thumbnail image for the given media. - /// If a thumbnail already exists for the given media, the existing path will be returned. + /// Creates the thumbnail image for the given media. + /// If the thumbnail already exists for the given media, the existing path will be returned. /// /// http://tizen.org/privilege/content.write - /// The media id to create thumbnail. + /// The media ID to create the thumbnail. /// A task that represents the asynchronous operation. The task result contains the thumbnail path. /// /// The is disconnected.\n @@ -856,9 +856,9 @@ namespace Tizen.Content.MediaContent /// /// The file of the media does not exists; moved or deleted. /// - /// Thumbnail is not available for the given media.\n + /// The thumbnail is not available for the given media.\n /// -or-\n - /// The media is in external usb storage( is ). + /// The media is in the external USB storage ( is ). /// public Task CreateThumbnailAsync(string mediaId) { @@ -866,11 +866,11 @@ namespace Tizen.Content.MediaContent } /// - /// Creates a thumbnail image for the given media. - /// If a thumbnail already exists for the given media, the existing path will be returned. + /// Creates the thumbnail image for the given media. + /// If the thumbnail already exists for the given media, the existing path will be returned. /// /// http://tizen.org/privilege/content.write - /// The media id to create thumbnail. + /// The media ID to create the thumbnail. /// The token to cancel the operation. /// A task that represents the asynchronous operation. The task result contains the thumbnail path. /// @@ -887,9 +887,9 @@ namespace Tizen.Content.MediaContent /// /// The file of the media does not exists; moved or deleted. /// - /// Thumbnail is not available for the given media.\n + /// The thumbnail is not available for the given media.\n /// -or-\n - /// The media is in external usb storage( is ). + /// The media is in the external USB storage ( is ). /// public Task CreateThumbnailAsync(string mediaId, CancellationToken cancellationToken) { @@ -976,11 +976,11 @@ namespace Tizen.Content.MediaContent #region DetectFaceAsync /// /// Detects faces from the given media. - /// If a thumbnail already exists for the given media, the existing path will be returned. + /// If the thumbnail already exists for the given media, the existing path will be returned. /// /// http://tizen.org/privilege/content.write /// http://tizen.org/feature/vision.face_recognition - /// The media id to create thumbnail. + /// The media ID to create the thumbnail. /// A task that represents the asynchronous add operation. The task result contains the number of faces detected. /// /// The is disconnected.\n @@ -995,7 +995,7 @@ namespace Tizen.Content.MediaContent /// is a zero-length string, contains only white space. /// /// The file of the media does not exists; moved or deleted. - /// Feace detection is not available for the given media. + /// Face detection is not available for the given media. /// The required feature is not supported. /// The caller has no required privilege. public Task DetectFaceAsync(string mediaId) @@ -1004,15 +1004,15 @@ namespace Tizen.Content.MediaContent } /// - /// Creates a thumbnail image for the given media. - /// If a thumbnail already exists for the given media, the existing path will be returned. + /// Creates the thumbnail image for the given media. + /// If the thumbnail already exists for the given media, the existing path will be returned. /// /// - /// Media in external storage is not supported, with the exception of MMC. + /// Media in the external storage is not supported, with the exception of MMC. /// /// http://tizen.org/privilege/content.write /// http://tizen.org/feature/vision.face_recognition - /// The media id to create thumbnail. + /// The media ID to create the thumbnail. /// The token to cancel the operation. /// A task that represents the asynchronous operation. The task result contains the number of faces detected. /// @@ -1031,7 +1031,7 @@ namespace Tizen.Content.MediaContent /// /// Face detection is not available for the given media.\n /// -or-\n - /// The media is in external usb storage( is ). + /// The media is in the external USB storage ( is ). /// /// The required feature is not supported. public Task DetectFaceAsync(string mediaId, CancellationToken cancellationToken) diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoUpdateValues.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoUpdateValues.cs index 9947f38..38a528a 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoUpdateValues.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoUpdateValues.cs @@ -28,28 +28,28 @@ namespace Tizen.Content.MediaContent public class MediaInfoUpdateValues { /// - /// Gets or sets the weather information for update. + /// Gets or sets the weather information for an update. /// /// If the value is null, the update operation will have no effect on the field. /// A string for weather; the field will not be updated if null. public string Weather { get; set; } /// - /// Gets or sets the favorite status for update. + /// Gets or sets the favorite status for an update. /// /// If the value is null, the update operation will have no effect on the field. /// A value indicating whether the media is favorite; the field will not be updated if null. public bool? IsFavorite { get; set; } /// - /// Gets or sets the provider information for update. + /// Gets or sets the provider information for an update. /// /// If the value is null, the update operation will have no effect on the field. /// A string for provider; the field will not be updated if null. public string Provider { get; set; } /// - /// Gets or sets the category information for update. + /// Gets or sets the category information for an update. /// /// If the value is null, the update operation will have no effect on the field. /// A string for category; the field will not be updated if null. @@ -57,14 +57,14 @@ namespace Tizen.Content.MediaContent /// - /// Gets or sets the location tag for update. + /// Gets or sets the location tag for an update. /// /// If the value is null, the update operation will have no effect on the field. /// A string for location tag; the field will not be updated if null. public string LocationTag { get; set; } /// - /// Gets or sets the age rating information for update. + /// Gets or sets the age rating information for an update. /// /// If the value is null, the update operation will have no effect on the field. /// A string for age rating; the field will not be updated if null. diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/NamespaceDoc.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/NamespaceDoc.cs index 7df929a..817c9b7 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/NamespaceDoc.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/NamespaceDoc.cs @@ -16,11 +16,11 @@ /// /// 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 +/// The information about media items (i.e. image, audio, and video) are managed in the content database /// and operations that involve database require an active connection with the media content service. -/// During media scanning, Media content service extracts media information automatically. Media information -/// includes basic file info like path, size, modified time etc and some metadata like ID3 tag, EXIF, -/// thumbnail, etc. (thumbnail extracted only in Internal and SD card storage. +/// During media scanning, the media content service extracts the media information automatically. The media information +/// includes basic file information like path, size, modified time, etc. and some metadata like ID3 tag, EXIF, +/// thumbnail, etc. (thumbnail extracted only in the internal and the SD card storage. /// -/// Media content service does not manage hidden files. +/// The media content service does not manage hidden files. namespace Tizen.Content.MediaContent { } \ No newline at end of file diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlayList.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlayList.cs index beabf44..ccc3ec2 100755 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlayList.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlayList.cs @@ -19,7 +19,7 @@ using System; namespace Tizen.Content.MediaContent { /// - /// Represents a playlist that is a group of media(usually songs). + /// Represents the playlist that is a group of media (usually songs). /// public class Playlist { @@ -36,7 +36,7 @@ namespace Tizen.Content.MediaContent /// /// Gets the ID of the playlist. /// - /// The unique id of the playlist. + /// The unique ID of the playlist. public int Id { get; } /// @@ -65,33 +65,33 @@ namespace Tizen.Content.MediaContent /// /// The values only set in the object will be affected to the update command. /// - /// + /// public class PlaylistUpdateValues { /// - /// Gets or sets the name of playlist for update. + /// Gets or sets the name of the playlist for an update. /// /// 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. public string Name { get; set; } /// - /// Gets or sets the thumbnail path of playlist for update. + /// Gets or sets the thumbnail path of the playlist for an update. /// /// If the value is null, the update operation will have no effect on the field. - /// A string for thumbnail path; the field will not be updated if null. + /// A string for the thumbnail path; the field will not be updated if null. public string ThumbnailPath { get; set; } } /// - /// Represents an order of a member of a playlist. + /// Represents an order of a member of the playlist. /// public class PlayOrder { /// - /// Initializes a new instance of the class with the specified member id and order value. + /// Initializes a new instance of the class with the specified member ID and the order value. /// - /// The id of member. + /// The ID of the member. /// The order value. /// /// is less than or equal to zero.\n @@ -107,9 +107,9 @@ namespace Tizen.Content.MediaContent private int _memberId; /// - /// Gets or sets the member id. + /// Gets or sets the member ID. /// - /// The member id. + /// The member ID. /// /// is less than or equal to zero. /// @@ -130,9 +130,9 @@ namespace Tizen.Content.MediaContent private int _value; /// - /// Gets or sets the value indicating the order of the member in a playlist. + /// Gets or sets the value indicating the order of the member in the playlist. /// - /// A integer value indicating the order of the member in a playlist. + /// An integer value indicating the order of the member in the playlist. /// /// is less than zero. /// diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistCommand.cs index 94d90b0..51b2de8 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistCommand.cs @@ -22,7 +22,7 @@ using System.Linq; namespace Tizen.Content.MediaContent { /// - /// Provides commands to manage playlists in the database. + /// Provides the commands to manage playlists in the database. /// /// public class PlaylistCommand : MediaCommand @@ -50,7 +50,7 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of playlists with . + /// Retrieves the number of playlists with the . /// /// The criteria to use to filter. This value can be null. /// The number of playlists. @@ -67,8 +67,8 @@ namespace Tizen.Content.MediaContent /// /// Retrieves the play order of the member. /// - /// The playlist id. - /// The member id of the playlist. + /// The playlist ID. + /// The member ID of the playlist. /// The containing the results. /// The is disconnected. /// The has already been disposed of. @@ -103,7 +103,7 @@ namespace Tizen.Content.MediaContent /// Deletes a playlist from the database. /// /// http://tizen.org/privilege/content.write - /// The playlist id to delete. + /// The playlist ID to delete. /// true if the matched record was found and deleted, otherwise false. /// The is disconnected. /// The has already been disposed of. @@ -130,17 +130,17 @@ namespace Tizen.Content.MediaContent } /// - /// Inserts a playlist into the database from the specified m3u file. + /// Inserts the playlist into the database from the specified M3U file. /// /// - /// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage.\n - /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage. + /// If you want to access an internal storage, you should add privilege http://tizen.org/privilege/mediastorage.\n + /// If you want to access an external storage, you should add privilege http://tizen.org/privilege/externalstorage. /// /// http://tizen.org/privilege/content.write /// http://tizen.org/privilege/mediastorage /// http://tizen.org/privilege/externalstorage - /// The name of playlist. - /// The path to a m3u file to import. + /// The name of the playlist. + /// The path to a M3U file to import. /// The instance that contains the record information inserted. /// The is disconnected. /// The has already been disposed of. @@ -194,18 +194,18 @@ namespace Tizen.Content.MediaContent } } /// - /// Exports a playlist to a m3u file. + /// Exports the playlist to a M3U file. /// /// /// If the file already exists in the file system, then it will be overwritten.\n /// \n - /// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage.\n - /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage. + /// If you want to access an internal storage, you should add privilege http://tizen.org/privilege/mediastorage.\n + /// If you want to access an external storage, you should add privilege http://tizen.org/privilege/externalstorage. /// /// http://tizen.org/privilege/mediastorage /// http://tizen.org/privilege/externalstorage - /// The playlist id to export. - /// The path to a m3u file. + /// The playlist ID to export. + /// The path to a M3U file. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -248,10 +248,10 @@ namespace Tizen.Content.MediaContent } /// - /// Inserts a playlist into the database with the specified name. + /// Inserts the playlist into the database with the specified name. /// /// http://tizen.org/privilege/content.write - /// The name of playlist. + /// The name of the playlist. /// The instance that contains the record information inserted. /// The is disconnected. /// The has already been disposed of. @@ -265,11 +265,11 @@ namespace Tizen.Content.MediaContent } /// - /// Inserts a playlist into the database with the specified name and thumbnail path. + /// Inserts the playlist into the database with the specified name and the thumbnail path. /// /// http://tizen.org/privilege/content.write - /// The name of playlist. - /// The path of thumbnail for playlist. This value can be null. + /// The name of the playlist. + /// The path of the thumbnail for the playlist. This value can be null. /// The instance that contains the record information inserted. /// The is disconnected. /// The has already been disposed of. @@ -328,7 +328,7 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the playlists with . + /// Retrieves the playlists with the . /// /// The criteria to use to filter. This value can be null. /// The containing the results. @@ -344,9 +344,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the playlist with the specified playlist id. + /// Retrieves the playlist with the specified playlist ID. /// - /// The playlist id to select. + /// The playlist ID to select. /// The instance if the matched record was found in the database, otherwise null. /// The is disconnected. /// The has already been disposed of. @@ -385,10 +385,10 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of media info of the playlist. + /// Retrieves the number of media information of the playlist. /// - /// The playlist id to count media added to the playlist. - /// The number of media info. + /// The playlist ID to count media added to the playlist. + /// The number of media information. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -399,11 +399,11 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of media info of the playlist with . + /// Retrieves the number of media information of the playlist with the . /// - /// The playlist id to count media added to the playlist. + /// The playlist ID to count the media added to the playlist. /// The criteria to use to filter. This value can be null. - /// The number of media info. + /// The number of media information. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -454,11 +454,11 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the member id of the media in the playlist. + /// Retrieves the member ID of the media in the playlist. /// - /// The playlist id. - /// The media id. - /// The member id if the member was found in the playlist, otherwise -1. + /// The playlist ID. + /// The media ID. + /// The member ID if the member was found in the playlist, otherwise -1. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -487,9 +487,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the media info of the playlist. + /// Retrieves the media information of the playlist. /// - /// The playlist id to query with. + /// The playlist ID to query with. /// The containing the results. /// The is disconnected. /// The has already been disposed of. @@ -501,9 +501,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the media info of the playlist with . + /// Retrieves the media information of the playlist with the . /// - /// The playlist id to query with. + /// The playlist ID to query with. /// The criteria to use to filter. This value can be null. /// The containing the results. /// The is disconnected. @@ -524,13 +524,13 @@ namespace Tizen.Content.MediaContent } /// - /// Updates a playlist with the specified values. + /// Updates the playlist with the specified values. /// /// http://tizen.org/privilege/content.write - /// The playlist id to update. - /// The values for update. + /// The playlist ID to update. + /// The values for the update. /// true if the matched record was found and updated, otherwise false. - /// Only values set in are updated. + /// Only values set in the are updated. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -585,12 +585,12 @@ namespace Tizen.Content.MediaContent } /// - /// Adds media to a playlist. + /// Adds the media to the playlist. /// - /// The playlist id that the media will be added to. - /// The media id to add to the playlist. + /// The playlist ID that the media will be added to. + /// The media ID to add to the playlist. /// true if the matched record was found and updated, otherwise false. - /// The invalid media id will be ignored. + /// The invalid media ID will be ignored. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -605,12 +605,12 @@ namespace Tizen.Content.MediaContent } /// - /// Adds a media set to a playlist. + /// Adds the media set to the playlist. /// - /// The playlist id that the media will be added to. - /// The collection of media id to add to the playlist. + /// The playlist ID that the media will be added to. + /// The collection of media ID to add to the playlist. /// true if the matched record was found and updated, otherwise false. - /// The invalid media ids will be ignored. + /// The invalid media IDs will be ignored. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -682,12 +682,12 @@ namespace Tizen.Content.MediaContent } /// - /// Removes a member from a playlist. + /// Removes a member from the playlist. /// - /// The playlist id. - /// The member id to be removed. + /// The playlist ID. + /// The member ID to be removed. /// true if the matched record was found and updated, otherwise false. - /// The invalid id will be ignored. + /// The invalid ID will be ignored. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -708,12 +708,12 @@ namespace Tizen.Content.MediaContent } /// - /// Removes a media set from a playlist. + /// Removes a media set from the playlist. /// - /// The playlist id. - /// The collection of member id to remove from to the playlist. + /// The playlist ID. + /// The collection of member ID to remove from to the playlist. /// true if the matched record was found and updated, otherwise false. - /// The invalid ids will be ignored. + /// The invalid IDs will be ignored. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -779,9 +779,9 @@ namespace Tizen.Content.MediaContent } /// - /// Updates a play order of a playlist. + /// Updates a play order of the playlist. /// - /// The playlist id. + /// The playlist ID. /// The to apply. /// true if the matched record was found and updated, otherwise false. /// The that is invalid will be ignored. @@ -800,10 +800,10 @@ namespace Tizen.Content.MediaContent } /// - /// Updates play orders of a playlist. + /// Updates play orders of the playlist. /// - /// The playlist id. - /// The collection of to apply. + /// The playlist ID. + /// The collection of the to apply. /// true if the matched record was found and updated, otherwise false. /// The that is invalid will be ignored. /// The is disconnected. diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistMember.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistMember.cs index e0d047c..9d93dbd 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistMember.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/PlaylistMember.cs @@ -17,18 +17,18 @@ namespace Tizen.Content.MediaContent { /// - /// Represents a member of . + /// Represents a member of the . /// public class PlaylistMember { /// - /// Gets the member id. + /// Gets the member ID. /// - /// The member id of playlist. + /// The member ID of the playlist. public int MemberId { get; } /// - /// Gets the media info of the member. + /// Gets the media information of the member. /// /// The of the member. public MediaInfo MediaInfo { get; } diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/QueryArguments.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/QueryArguments.cs index b249158..d7272a6 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/QueryArguments.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/QueryArguments.cs @@ -21,11 +21,11 @@ using FilterHandle = Interop.FilterHandle; namespace Tizen.Content.MediaContent { /// - /// Base class for query arguments. + /// The Base class for query arguments. /// /// - /// A filter is required for filtering information associated with Album, Folder, Tag, Bookmark, Playlist - /// and MediaInfo on basis of details like limit, order and condition. + /// A filter is required for filtering information associated with Album, Folder, Tag, Bookmark, Playlist, + /// and MediaInfo on the basis of details like limit, order, and condition. /// public class QueryArguments { @@ -58,12 +58,12 @@ namespace Tizen.Content.MediaContent /// expression1 AND expression2 OR expression3 ... /// /// - /// Note that if you want to set quotation(" ' " or " " ") as value of LIKE operator, you should use two times.(" '' " or " "" "). + /// Note that if you want to set quotation (" ' " or " " ") as value of LIKE operator, you should use two times. (" '' " or " "" "). /// And the optional ESCAPE clause is supported. Both percent symbol("%") and underscore symbol("_") are used in the LIKE pattern. - /// If these characters are used as value of LIKE operation, then the expression following the ESCAPE clause of sqlite will be ignored.\n + /// If these characters are used as values of the LIKE operation, then the expression following the ESCAPE clause of sqlite will be ignored.\n /// \n /// For example,\n - /// - column LIKE('#%') ESCAPE('#') - "#" is escape character, it will be ignored. + /// - column LIKE ('#%') ESCAPE ('#') - "#" is an escape character, it will be ignored. /// /// is a zero-length string, contains only white space. /// @@ -90,10 +90,10 @@ namespace Tizen.Content.MediaContent private string _storageId; /// - /// Gets or sets the storage id for the given filter. + /// Gets or sets the storage ID for the given filter. /// You can use this property when you want to search items only in the specific storage. /// - /// The storage id to restrict storage to search, or null for all storages. + /// The storage ID to restrict storage to search, or null for all storages. /// is a zero-length string, contains only white space. public string StorageId { @@ -168,7 +168,7 @@ namespace Tizen.Content.MediaContent /// Provides the ability to filter the result of a Select command. /// /// - /// A filter is required for filtering information associated with Album, Folder, Tag, Bookmark, Playlist + /// A filter is required for filtering information associated with Album, Folder, Tag, Bookmark, Playlist, /// and MediaInfo. /// public class SelectArguments : QueryArguments @@ -176,7 +176,7 @@ namespace Tizen.Content.MediaContent private int _startRowIndex; /// - /// Gets or sets the starting row position of a query(starting from zero). + /// Gets or sets the starting row position of a query (starting from zero). /// /// An integer value that indicates the starting row position of a query. /// is less than zero.\n @@ -270,10 +270,10 @@ namespace Tizen.Content.MediaContent } /// - /// Provides the ability to filter the result of a Count command. + /// Provides the ability to filter the result of the Count command. /// /// - /// A filter is required for filtering information associated with Album, Folder, Tag, Bookmark, Playlist + /// A filter is required for filtering information associated with Album, Folder, Tag, Bookmark, Playlist, /// and MediaInfo. /// public class CountArguments : QueryArguments diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Rectangle.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Rectangle.cs index 29d437b..822a689 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Rectangle.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Rectangle.cs @@ -19,18 +19,18 @@ using System; namespace Tizen.Content.MediaContent { /// - /// Represents location of the object bounded by rectangle defined by - /// coordinates of top left corner, width and height. + /// Represents the location of the object bounded by the rectangle defined by + /// coordinates of top left corner, width, and height. /// public struct Rectangle { /// - /// Initializes a new instance of the Rectangle with the specified values. + /// Initializes a new instance of the rectangle with the specified values. /// /// The x-coordinate of the upper-left corner of the rectangle. /// The y-coordinate of the upper-left corner of the rectangle. - /// The Width of the rectangle. - /// The Height of the rectangle. + /// The width of the rectangle. + /// The height of the rectangle. public Rectangle(int x, int y, int width, int height) { X = x; @@ -95,36 +95,36 @@ namespace Tizen.Content.MediaContent $"X={X.ToString()}, Y={Y.ToString()}, Width={Width.ToString()}, Height={Height.ToString()}"; /// - /// Returns the hash code for this Rectangle structure. + /// Returns the hash code for this rectangle structure. /// /// An integer that represents the hash code for this rectangle. public override int GetHashCode() => new { X, Y, Width, Height }.GetHashCode(); /// - /// Tests whether obj is a Rectangle structure with the same location and size of this Rectangle structure. + /// Tests whether object is a rectangle structure with the same location and size of this rectangle structure. /// - /// A to compare. + /// The to compare. /// - /// true if obj is a Rectangle structure and its X, Y, Width and Height properties are - /// equal to the corresponding properties of this Rectangle structure; otherwise, false. + /// true if object is a rectangle structure and its x, y, width, and height properties are + /// equal to the corresponding properties of this rectangle structure; otherwise, false. /// public override bool Equals(object obj) => obj is Rectangle && this == (Rectangle)obj; /// - /// Tests whether two Rectangle structures have equal location and size. + /// Tests whether two rectangle structures have equal location and size. /// - /// A to compare. - /// A to compare. - /// true if the two Rectangle structures have equal X, Y, Width, and Height properties; otherwise, false. + /// The to compare. + /// The to compare. + /// true if the two rectangle structures have equal x, y, width, and height properties; otherwise, false. public static bool operator ==(Rectangle rect1, Rectangle rect2) => rect1.X == rect2.X && rect1.Y == rect2.Y && rect1.Width == rect2.Width && rect1.Height == rect2.Height; /// - /// Tests whether two Rectangle structures differ in location or size. + /// Tests whether two rectangle structures differ in location or size. /// - /// A to compare. - /// A to compare. - /// true if any of the X, Y, Width or Height properties of the two Rectangle structures are unequal; otherwise false. + /// The to compare. + /// The to compare. + /// true if any of the x, y, width, or height properties of the two rectangle structures are unequal; otherwise false. public static bool operator !=(Rectangle rect1, Rectangle rect2) => !(rect1 == rect2); } } diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Storage.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Storage.cs index 840d673..0db0876 100755 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Storage.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Storage.cs @@ -22,8 +22,8 @@ namespace Tizen.Content.MediaContent /// Represents the storage information for media. /// /// - /// The system generates the storage id when the external storage is added. and manages the media information - /// in each of the storage by using storage id. + /// The system generates the storage ID when the external storage is added and manages the media information + /// in each of the storage by using the storage ID. /// public class Storage { @@ -37,9 +37,9 @@ namespace Tizen.Content.MediaContent internal static Storage FromHandle(IntPtr handle) => new Storage(handle); /// - /// Gets the id of the storage. + /// Gets the ID of the storage. /// - /// The unique id of the storage. + /// The unique ID of the storage. public string Id { get; } /// diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/StorageCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/StorageCommand.cs index 6975660..7cda0ec 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/StorageCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/StorageCommand.cs @@ -19,10 +19,10 @@ using System; namespace Tizen.Content.MediaContent { /// - /// Provides commands to manage external storages in the database. + /// Provides the commands to manage external storages in the database. /// /// - /// Internal storage is not managed. + /// The internal storage is not managed. /// /// public class StorageCommand : MediaCommand @@ -30,7 +30,7 @@ namespace Tizen.Content.MediaContent /// /// Initializes a new instance of the class with the specified . /// - /// A that the commands run on. + /// The that the commands run on. /// is null. /// has already been disposed of. public StorageCommand(MediaDatabase database) : base(database) @@ -47,7 +47,7 @@ namespace Tizen.Content.MediaContent public int Count() => Count(arguments: null); /// - /// Retrieves the number of storages with . + /// Retrieves the number of storages with the . /// /// The criteria to use to filter. This value can be null. /// The number of storages filtered. @@ -62,9 +62,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the storage with the specified id. + /// Retrieves the storage with the specified ID. /// - /// The storage id to select. + /// The storage ID to select. /// The instance if the matched record was found in the database, otherwise null. /// The is disconnected. /// The has already been disposed of. @@ -104,7 +104,7 @@ namespace Tizen.Content.MediaContent public MediaDataReader Select() => Select(arguments: null); /// - /// Retrieves the storages with . + /// Retrieves the storages with the . /// /// The criteria to use to filter. This value can be null. /// The containing the results. @@ -128,10 +128,10 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of media info of the storage. + /// Retrieves the number of media information of the storage. /// - /// The storage id. - /// The number of media info. + /// The storage ID. + /// The number of media information. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -140,11 +140,11 @@ namespace Tizen.Content.MediaContent public int CountMedia(string storageId) => CountMedia(storageId, null); /// - /// Retrieves the number of media info of the storage with . + /// Retrieves the number of media information of the storage with the . /// - /// The storage id to query with. + /// The storage ID to query with. /// The criteria to use to filter. This value can be null. - /// The number of media info. + /// The number of media information. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -161,9 +161,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the media info of the storage. + /// Retrieves the media information of the storage. /// - /// The storage id. + /// The storage ID. /// The containing the results. /// The is disconnected. /// The has already been disposed of. @@ -173,9 +173,9 @@ namespace Tizen.Content.MediaContent public MediaDataReader SelectMedia(string storageId) => SelectMedia(storageId, null); /// - /// Retrieves the media info of the storage with . + /// Retrieves the media information of the storage with the . /// - /// The storage id. + /// The storage ID. /// The criteria to use to filter. This value can be null. /// The containing the results. /// The is disconnected. diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Tag.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Tag.cs index 43dd24e..e3ea3cd 100755 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Tag.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Tag.cs @@ -19,7 +19,7 @@ using System; namespace Tizen.Content.MediaContent { /// - /// Represents a special piece of information that may be associated with media.\n + /// Represents a special piece of information that may be associated with media. /// Tagging allows a user to organize large number of items into logical groups providing /// a simplified and faster way of accessing media items. /// @@ -32,9 +32,9 @@ namespace Tizen.Content.MediaContent } /// - /// Gets the id of the tag. + /// Gets the ID of the tag. /// - /// The unique id of the tag. + /// The unique ID of the tag. public int Id { get; } /// diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/TagCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/TagCommand.cs index 37730ec..3f11554 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/TagCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/TagCommand.cs @@ -21,7 +21,7 @@ using System.Linq; namespace Tizen.Content.MediaContent { /// - /// Provides commands to manage tags in the database. + /// Provides the commands to manage tags in the database. /// /// public class TagCommand : MediaCommand @@ -29,7 +29,7 @@ namespace Tizen.Content.MediaContent /// /// Initializes a new instance of the class with the specified . /// - /// A that the commands run on. + /// The that the commands run on. /// is null. /// has already been disposed of. public TagCommand(MediaDatabase database) : base(database) @@ -49,7 +49,7 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of tags with . + /// Retrieves the number of tags with the . /// /// The criteria to use to filter. This value can be null. /// The number of tags filtered. @@ -68,7 +68,7 @@ namespace Tizen.Content.MediaContent /// Deletes a tag from the database. /// /// http://tizen.org/privilege/content.write - /// The tag id to delete. + /// The tag ID to delete. /// true if the matched record was found and deleted, otherwise false. /// The is disconnected. /// The has already been disposed of. @@ -136,7 +136,7 @@ namespace Tizen.Content.MediaContent /// Updates a tag with the specified name. /// /// http://tizen.org/privilege/content.write - /// The tag id to update. + /// The tag ID to update. /// The new name. /// true if the matched record was found and updated, otherwise false. /// The is disconnected. @@ -181,9 +181,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the tag with the specified id. + /// Retrieves the tag with the specified ID. /// - /// The tag id to select. + /// The tag ID to select. /// The instance if the matched record was found in the database, otherwise null. /// The is disconnected. /// The has already been disposed of. @@ -234,7 +234,7 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the tags with . + /// Retrieves the tags with the . /// /// The criteria to use to filter. This value can be null. /// The containing the results. @@ -251,8 +251,8 @@ namespace Tizen.Content.MediaContent /// /// Retrieves the number of media info of the tag. /// - /// The tag id. - /// The number of media info. + /// The tag ID. + /// The number of the media information. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -263,11 +263,11 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the number of media info of the tag with . + /// Retrieves the number of the media information of the tag with the . /// - /// The tag id to query with. + /// The tag ID to query with. /// The criteria to use to filter. This value can be null. - /// The number of media info. + /// The number of the media information. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -286,9 +286,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the media info of the tag. + /// Retrieves the media information of the tag. /// - /// The tag id. + /// The tag ID. /// The containing the results. /// The is disconnected. /// The has already been disposed of. @@ -300,9 +300,9 @@ namespace Tizen.Content.MediaContent } /// - /// Retrieves the media info of the tag with . + /// Retrieves the media information of the tag with the . /// - /// The tag id. + /// The tag ID. /// The criteria to use to filter. This value can be null. /// The containing the results. /// The is disconnected. @@ -381,12 +381,12 @@ namespace Tizen.Content.MediaContent } /// - /// Adds media to a tag. + /// Adds the media to a tag. /// - /// The tag id that the media will be added to. - /// The media id to add to the tag. + /// The tag ID that the media will be added to. + /// The media ID to add to the tag. /// true if the matched record was found and updated, otherwise false. - /// The invalid media id will be ignored. + /// The invalid media ID will be ignored. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -401,12 +401,12 @@ namespace Tizen.Content.MediaContent } /// - /// Adds a media set to a tag. + /// Adds the media set to a tag. /// - /// The tag id that the media will be added to. - /// The media id to add to the tag. + /// The tag ID that the media will be added to. + /// The media ID to add to the tag. /// true if the matched record was found and updated, otherwise false. - /// The invalid media ids will be ignored. + /// The invalid media IDs will be ignored. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -425,12 +425,12 @@ namespace Tizen.Content.MediaContent } /// - /// Removes media from a tag. + /// Removes the media from a tag. /// - /// The tag id. - /// The media id to remove from the tag. + /// The tag ID. + /// The media ID to remove from the tag. /// true if the matched record was found and updated, otherwise false. - /// The invalid media id will be ignored. + /// The invalid media ID will be ignored. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. @@ -445,12 +445,12 @@ namespace Tizen.Content.MediaContent } /// - /// Removes a media set from a tag. + /// Removes the media set from a tag. /// - /// The tag id. - /// The collection of media id to remove from the tag. + /// The tag ID. + /// The collection of media ID to remove from the tag. /// true if the matched record was found and updated, otherwise false. - /// The invalid ids will be ignored. + /// The invalid IDs will be ignored. /// The is disconnected. /// The has already been disposed of. /// An error occurred while executing the command. diff --git a/src/Tizen.Location/Interop/Interop.Location.cs b/src/Tizen.Location/Interop/Interop.Location.cs index ad4466c..dd9e568 100755 --- a/src/Tizen.Location/Interop/Interop.Location.cs +++ b/src/Tizen.Location/Interop/Interop.Location.cs @@ -70,6 +70,9 @@ internal static partial class Interop [DllImport(Libraries.Location, EntryPoint = "location_manager_is_enabled_method")] internal static extern int IsEnabled(int locationMethod, out bool status); + [DllImport(Libraries.Location, EntryPoint = "location_manager_enable_method")] + internal static extern int EnableType(int locationMethod, bool status); + [DllImport(Libraries.Location, EntryPoint = "location_manager_is_supported_method")] internal static extern bool IsSupported(int locationMethod); } diff --git a/src/Tizen.Location/Tizen.Location/Locator.cs b/src/Tizen.Location/Tizen.Location/Locator.cs index 9bae3ae..137e161 100755 --- a/src/Tizen.Location/Tizen.Location/Locator.cs +++ b/src/Tizen.Location/Tizen.Location/Locator.cs @@ -28,7 +28,7 @@ namespace Tizen.Location } /// - /// This class contains the functionality for obtaining the geographical infomation and setting the boundary condition. + /// This class contains the functionality for obtaining the geographical information and setting the boundary condition. /// Notifications on events like service becoming enabled or disabled, new position data being available, /// and others can also be acquired. /// @@ -68,7 +68,8 @@ namespace Tizen.Location /// /// 3 /// The back-end positioning method to be used for LBS. - /// http://tizen.org/feature/location + /// http://tizen.org/feature/location.gps + /// http://tizen.org/feature/location.wps /// Thrown when the operation is invalid for the current state. /// Thrown when an invalid argument is used. /// Thrown when the location is not supported. @@ -488,7 +489,7 @@ namespace Tizen.Location int ret = Interop.Locator.GetLocation(_handle, out altitude, out latitude, out longitude, out climb, out direction, out speed, out level, out accuracy, out vertical, out timestamp); if (((LocationError)ret != LocationError.None)) { - Log.Error(Globals.LogTag, "Error in get current location infomation," + (LocationError)ret); + Log.Error(Globals.LogTag, "Error in get current location information," + (LocationError)ret); throw LocationErrorFactory.ThrowLocationException(ret); } } diff --git a/src/Tizen.Location/Tizen.Location/LocatorHelper.cs b/src/Tizen.Location/Tizen.Location/LocatorHelper.cs index 37de8c9..4bb7a7f 100755 --- a/src/Tizen.Location/Tizen.Location/LocatorHelper.cs +++ b/src/Tizen.Location/Tizen.Location/LocatorHelper.cs @@ -18,6 +18,10 @@ using System; namespace Tizen.Location { + /// + /// This class contains the functionality for obtaining the geographical positioning type. + /// + /// 3 public static class LocatorHelper { /// @@ -25,7 +29,11 @@ namespace Tizen.Location /// /// 3 /// The back-end positioning method to be used for LBS. + /// http://tizen.org/feature/location.gps + /// http://tizen.org/feature/location.wps /// Returns a boolean value indicating whether or not the specified method is supported. + /// Thrown when an invalid argument is used. + /// Thrown when the location is not supported. public static bool IsSupportedType(LocationType locationType) { bool status = Interop.LocatorHelper.IsSupported((int)locationType); @@ -38,6 +46,8 @@ namespace Tizen.Location /// /// 3 /// The back-end positioning method to be used for LBS. + /// http://tizen.org/feature/location.gps + /// http://tizen.org/feature/location.wps /// Returns a boolean value indicating whether or not the specified method is supported. /// Thrown when the operation is invalid for the current state. /// Thrown when an invalid argument is used. @@ -54,5 +64,29 @@ namespace Tizen.Location } return status; } + + /// + /// Sets the specified geographical positioning type. + /// + /// 3 + /// http://tizen.org/privilege/location.enable + /// platform + /// The back-end positioning method to be used for LBS. + /// The location setting value. + /// http://tizen.org/feature/location.gps + /// http://tizen.org/feature/location.wps + /// Thrown when the operation is invalid for the current state. + /// Thrown when an invalid argument is used. + /// Thrown when the location is not supported. + public static void EnableType(LocationType locationType, bool status) + { + Log.Info(Globals.LogTag, "Sets the location setting status"); + int ret = Interop.LocatorHelper.EnableType((int)locationType, status); + if (((LocationError)ret != LocationError.None)) + { + Log.Error(Globals.LogTag, "Error Sets the Location type," + (LocationError)ret); + throw LocationErrorFactory.ThrowLocationException(ret); + } + } } } diff --git a/src/Tizen.Location/Tizen.Location/ServiceStateChangedEventArgs.cs b/src/Tizen.Location/Tizen.Location/ServiceStateChangedEventArgs.cs index 5cfbff7..7059849 100755 --- a/src/Tizen.Location/Tizen.Location/ServiceStateChangedEventArgs.cs +++ b/src/Tizen.Location/Tizen.Location/ServiceStateChangedEventArgs.cs @@ -27,7 +27,7 @@ namespace Tizen.Location /// The class constructor for the ServiceStateChangedEventArgs class. /// /// 3 - /// An enumeration of type LocationServiceState. + /// An enumeration of type LocationServiceState. public ServiceStateChangedEventArgs(ServiceState state) { ServiceState = state; diff --git a/src/Tizen.Location/Tizen.Location/ZoneChangedEventArgs.cs b/src/Tizen.Location/Tizen.Location/ZoneChangedEventArgs.cs index 7e4e91d..81a45d7 100755 --- a/src/Tizen.Location/Tizen.Location/ZoneChangedEventArgs.cs +++ b/src/Tizen.Location/Tizen.Location/ZoneChangedEventArgs.cs @@ -27,8 +27,8 @@ namespace Tizen.Location /// An enumeration of type BoundaryState. /// The latitude value [-90.0 ~ 90.0] (degrees). /// The longitude value [-180.0 ~ 180.0] (degrees). - /// The altitude value. - /// The timestamp value. + /// The altitude value. + /// The timestamp value. public ZoneChangedEventArgs(BoundaryState state, double latitude, double longitude, double altitude, DateTime timestamp) { BoundState = state; -- 2.7.4