}
/// <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>
}
/// <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>
}
/// <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>
}
/// <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>
}
/// <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>
}
/// <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>
}
/// <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>
}
/// <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.
/// <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)
/// <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)