[Tizen.System.Storage] Update the description of APIs
authorUnsung Lee <unsung.lee@samsung.com>
Tue, 24 Sep 2024 06:31:56 +0000 (15:31 +0900)
committerChanwoo Choi <chanwoo@kernel.org>
Mon, 30 Sep 2024 05:30:51 +0000 (14:30 +0900)
Update the description of Tizen.System.Storage APIs

Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/Tizen.System.Storage/Storage/Storage.cs
src/Tizen.System.Storage/Storage/StorageManager.cs

index d02665216ccf2fa065273ca505d7ee0438bb358b..65170976c37ae2efa5089c1e6d6689946bbcf456 100644 (file)
@@ -157,32 +157,32 @@ namespace Tizen.System
         }
 
         /// <summary>
-        /// The storage ID.
+        /// The storage ID. It is the identifier used to determine whether the corresponding storage is internal or external.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         /// <feature> http://tizen.org/feature/storage.external </feature>
         public int Id { get; }
         /// <summary>
-        /// The type of storage.
+        /// The type of storage. It has one of three values: internal, external or extended internal. 
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         /// <feature> http://tizen.org/feature/storage.external </feature>
         public StorageArea StorageType { get { return (StorageArea)_storagetype; } }
         /// <summary>
-        /// The root directory for the storage.
+        /// The root directory for the storage. It generally has an absolute path.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         /// <feature> http://tizen.org/feature/storage.external </feature>
         public string RootDirectory { get; }
         /// <summary>
-        /// The total storage size in bytes.
+        /// The total storage space in bytes. The type of value is ulong.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         /// <feature> http://tizen.org/feature/storage.external </feature>
         public ulong TotalSpace { get { return _totalSpace; } }
 
         /// <summary>
-        /// The StorageState.
+        /// The StorageState. It contains information about the mounted state of the storage.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         /// <feature> http://tizen.org/feature/storage.external </feature>
@@ -203,7 +203,7 @@ namespace Tizen.System
         }
 
         /// <summary>
-        /// The StorageDevice.
+        /// The StorageDevice. It indicates information such as sdcard or USB storage.
         /// </summary>
         /// <since_tizen> 5 </since_tizen>
         /// <feature> http://tizen.org/feature/storage.external </feature>
@@ -222,7 +222,7 @@ namespace Tizen.System
         }
 
         /// <summary>
-        /// The type of file system.
+        /// The type of file system. For example, it can be ext3 or ext4.
         /// </summary>
         /// <since_tizen> 5 </since_tizen>
         /// <feature> http://tizen.org/feature/storage.external </feature>
@@ -241,7 +241,7 @@ namespace Tizen.System
         }
 
         /// <summary>
-        /// The UUID of the file system.
+        /// The UUID of the file system. It is a unique value that serves as immutable identifier.
         /// </summary>
         /// <since_tizen> 5 </since_tizen>
         /// <feature> http://tizen.org/feature/storage.external </feature>
@@ -260,7 +260,7 @@ namespace Tizen.System
         }
 
         /// <summary>
-        /// Information whether this is a primary partition.
+        /// Information whether this is a primary partition or not.
         /// </summary>
         /// <since_tizen> 5 </since_tizen>
         /// <feature> http://tizen.org/feature/storage.external </feature>
@@ -279,7 +279,7 @@ namespace Tizen.System
         }
 
         /// <summary>
-        /// The flags for the storage status.
+        /// The flags for the storage status. It is a piece of information representing storage.
         /// </summary>
         /// <since_tizen> 5 </since_tizen>
         /// <feature> http://tizen.org/feature/storage.external </feature>
@@ -320,7 +320,7 @@ namespace Tizen.System
         }
 
         /// <summary>
-        /// The available storage size in bytes.
+        /// The available storage size in bytes. The type of value is ulong.
         /// </summary>
         /// <since_tizen> 5 </since_tizen>
         /// <feature> http://tizen.org/feature/storage.external </feature>
@@ -340,7 +340,7 @@ namespace Tizen.System
         }
 
         /// <summary>
-        /// Absolute path for a given directory type in the storage.
+        /// Gets the absolute path to the root directory of the given storage.
         /// </summary>
         /// <remarks>
         /// The returned directory path may not exist, so you must make sure that it exists before using it.
index 5bf91578bb8ae8655fa730062710fff955345f8e..71bb5e1698e224314a2bd1297966266727a19148 100644 (file)
@@ -109,6 +109,19 @@ namespace Tizen.System
         /// <since_tizen> 5 </since_tizen>
         /// <feature> http://tizen.org/feature/storage.external </feature>
         /// <exception cref="NotSupportedException">Thrown when the storage is not supported.</exception>
+        /// <seealso cref="UnSetChangedEvent(StorageArea, EventHandler)"/>
+        /// <example>
+        /// <code>
+        /// EventHandler callback = (s, e) =>
+        /// {
+        ///   var storage = s as Storage;
+        ///   if (storage == null) return;
+        /// };
+        ///
+        /// StorageManager.SetChangedEvent(StorageArea.External, callback);
+        /// StorageManager.UnSetChangedEvent(StorageArea.External, callback);
+        /// </code>
+        /// </example>
         public static void SetChangedEvent(StorageArea type, EventHandler handler)
         {
             if (type == StorageArea.Internal)
@@ -138,6 +151,7 @@ namespace Tizen.System
         /// <since_tizen> 5 </since_tizen>
         /// <feature> http://tizen.org/feature/storage.external </feature>
         /// <exception cref="NotSupportedException">Thrown when the storage is not supported.</exception>
+        /// <seealso cref="SetChangedEvent(StorageArea, EventHandler)"/>
         public static void UnsetChangedEvent(StorageArea type, EventHandler handler)
         {
             if (type == StorageArea.Internal)