From e83b0b29a18e14fb715ec85dab9ff1a26fb18aca Mon Sep 17 00:00:00 2001 From: Unsung Lee Date: Tue, 24 Sep 2024 15:31:56 +0900 Subject: [PATCH] [Tizen.System.Storage] Update the description of APIs Update the description of Tizen.System.Storage APIs Signed-off-by: Unsung Lee --- src/Tizen.System.Storage/Storage/Storage.cs | 24 +++++++++---------- .../Storage/StorageManager.cs | 14 +++++++++++ 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/src/Tizen.System.Storage/Storage/Storage.cs b/src/Tizen.System.Storage/Storage/Storage.cs index d02665216cc..65170976c37 100644 --- a/src/Tizen.System.Storage/Storage/Storage.cs +++ b/src/Tizen.System.Storage/Storage/Storage.cs @@ -157,32 +157,32 @@ public event EventHandler StorageStateChanged } /// - /// The storage ID. + /// The storage ID. It is the identifier used to determine whether the corresponding storage is internal or external. /// /// 3 /// http://tizen.org/feature/storage.external public int Id { get; } /// - /// The type of storage. + /// The type of storage. It has one of three values: internal, external or extended internal. /// /// 3 /// http://tizen.org/feature/storage.external public StorageArea StorageType { get { return (StorageArea)_storagetype; } } /// - /// The root directory for the storage. + /// The root directory for the storage. It generally has an absolute path. /// /// 3 /// http://tizen.org/feature/storage.external public string RootDirectory { get; } /// - /// The total storage size in bytes. + /// The total storage space in bytes. The type of value is ulong. /// /// 3 /// http://tizen.org/feature/storage.external public ulong TotalSpace { get { return _totalSpace; } } /// - /// The StorageState. + /// The StorageState. It contains information about the mounted state of the storage. /// /// 3 /// http://tizen.org/feature/storage.external @@ -203,7 +203,7 @@ public StorageState State } /// - /// The StorageDevice. + /// The StorageDevice. It indicates information such as sdcard or USB storage. /// /// 5 /// http://tizen.org/feature/storage.external @@ -222,7 +222,7 @@ public StorageDevice DeviceType } /// - /// The type of file system. + /// The type of file system. For example, it can be ext3 or ext4. /// /// 5 /// http://tizen.org/feature/storage.external @@ -241,7 +241,7 @@ public string Fstype } /// - /// The UUID of the file system. + /// The UUID of the file system. It is a unique value that serves as immutable identifier. /// /// 5 /// http://tizen.org/feature/storage.external @@ -260,7 +260,7 @@ public string Fsuuid } /// - /// Information whether this is a primary partition. + /// Information whether this is a primary partition or not. /// /// 5 /// http://tizen.org/feature/storage.external @@ -279,7 +279,7 @@ public bool Primary } /// - /// The flags for the storage status. + /// The flags for the storage status. It is a piece of information representing storage. /// /// 5 /// http://tizen.org/feature/storage.external @@ -320,7 +320,7 @@ public ulong AvaliableSpace } /// - /// The available storage size in bytes. + /// The available storage size in bytes. The type of value is ulong. /// /// 5 /// http://tizen.org/feature/storage.external @@ -340,7 +340,7 @@ public ulong AvailableSpace } /// - /// Absolute path for a given directory type in the storage. + /// Gets the absolute path to the root directory of the given storage. /// /// /// The returned directory path may not exist, so you must make sure that it exists before using it. diff --git a/src/Tizen.System.Storage/Storage/StorageManager.cs b/src/Tizen.System.Storage/Storage/StorageManager.cs index 5bf91578bb8..71bb5e1698e 100644 --- a/src/Tizen.System.Storage/Storage/StorageManager.cs +++ b/src/Tizen.System.Storage/Storage/StorageManager.cs @@ -109,6 +109,19 @@ private static void UnregisterChangedEvent(StorageArea type) /// 5 /// http://tizen.org/feature/storage.external /// Thrown when the storage is not supported. + /// + /// + /// + /// EventHandler callback = (s, e) => + /// { + /// var storage = s as Storage; + /// if (storage == null) return; + /// }; + /// + /// StorageManager.SetChangedEvent(StorageArea.External, callback); + /// StorageManager.UnSetChangedEvent(StorageArea.External, callback); + /// + /// public static void SetChangedEvent(StorageArea type, EventHandler handler) { if (type == StorageArea.Internal) @@ -138,6 +151,7 @@ public static void SetChangedEvent(StorageArea type, EventHandler handler) /// 5 /// http://tizen.org/feature/storage.external /// Thrown when the storage is not supported. + /// public static void UnsetChangedEvent(StorageArea type, EventHandler handler) { if (type == StorageArea.Internal)