/// <summary>
/// Enumeration of the storage directory types.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public enum DirectoryType
{
/// <summary>
/// Image directory
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Images = Interop.Storage.DirectoryType.Images,
/// <summary>
/// Sounds directory
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Sounds = Interop.Storage.DirectoryType.Sounds,
/// <summary>
/// Videos directory
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Videos = Interop.Storage.DirectoryType.Videos,
/// <summary>
/// Camera directory
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Camera = Interop.Storage.DirectoryType.Camera,
/// <summary>
/// Downloads directory
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Downloads = Interop.Storage.DirectoryType.Downloads,
/// <summary>
/// Music directory
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Music = Interop.Storage.DirectoryType.Music,
/// <summary>
/// Documents directory
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Documents = Interop.Storage.DirectoryType.Documents,
/// <summary>
/// Others directory
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Others = Interop.Storage.DirectoryType.Others,
/// <summary>
/// System ringtones directory. Only available for internal storage.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Ringtones = Interop.Storage.DirectoryType.Ringtones,
}
}
/// <remarks>
/// Storage state will be updated before calling event handler.
/// </remarks>
+ /// <since_tizen> 3 </since_tizen>
/// <example>
/// <code>
/// myStorage.StorageStateChanged += (s, e) =>
/// <summary>
/// Storage ID
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int Id { get; }
/// <summary>
/// Type of the storage
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public StorageArea StorageType { get; }
/// <summary>
/// Root directory for the storage
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string RootDirectory { get; }
/// <summary>
/// Total storage size in bytes
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ulong TotalSpace { get { return _totalSpace; } }
/// <summary>
/// Storage state
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public StorageState State
{
get
/// <summary>
/// Available storage size in bytes
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ulong AvaliableSpace
{
get
/// For accessing Ringtones directory, app should have http://tizen.org/privilege/systemsettings privilege.
/// For accessing external storage, app should have http://tizen.org/privilege/externalstorage privilege.
/// </remarks>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="dirType">Directory type</param>
/// <returns>Absolute path for given directory type in storage</returns>
/// <exception cref="ArgumentException">Thrown when failed because of a invalid arguament</exception>
/// <summary>
/// Enumeration for storage area types.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public enum StorageArea
{
/// <summary>
/// Internal device storage (built-in storage in a device, non-removable)
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Internal = Interop.Storage.StorageArea.Internal,
/// <summary>
/// External storage
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
External = Interop.Storage.StorageArea.External,
}
}
/// <summary>
/// List of all storage in the device
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static IEnumerable<Storage> Storages
{
get
/// <summary>
/// Enumeration for the state of storage devices.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public enum StorageState
{
/// <summary>
/// Storage is present but cannot be mounted. Typically it happens if the file system of the storage is corrupted
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Unmountable = Interop.Storage.StorageState.Unmountable,
/// <summary>
/// Storage is not present or removed
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Removed = Interop.Storage.StorageState.Removed,
/// <summary>
/// Storage is mounted with read/write access
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Mounted = Interop.Storage.StorageState.Mounted,
/// <summary>
/// Storage is mounted with read only access
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
MountedReadOnly = Interop.Storage.StorageState.MountedReadOnly,
}
}