sharee.bike-App/LastenradBayern/ShareeBike.iOS/Device/SpecialFolder.cs

27 lines
726 B
C#
Raw Normal View History

2021-05-13 20:16:41 +02:00
using System;
2024-04-09 12:53:23 +02:00
using ShareeBike.Model.Device;
2021-05-13 20:16:41 +02:00
using Xamarin.Forms;
2024-04-09 12:53:23 +02:00
[assembly: Dependency(typeof(ShareeBike.iOS.Device.SpecialFolder))]
namespace ShareeBike.iOS.Device
2021-05-13 20:16:41 +02:00
{
2022-09-06 16:08:19 +02:00
public class SpecialFolder : ISpecialFolder
{
/// <summary>
/// Get the folder name of external folder to write to.
/// </summary>
/// <returns></returns>
public string GetExternalFilesDir()
{
return Environment.GetFolderPath(Environment.SpecialFolder.Personal);
}
2021-05-13 20:16:41 +02:00
2022-09-06 16:08:19 +02:00
/// <summary> Gets the folder name of the personal data folder dir on internal storage. </summary>
/// <returns>Directory name.</returns>
public string GetInternalPersonalDir()
{
return Environment.GetFolderPath(Environment.SpecialFolder.Personal);
}
2021-05-13 20:16:41 +02:00
2022-09-06 16:08:19 +02:00
}
2021-05-13 20:16:41 +02:00
}