sharee.bike-App/LastenradBayern/ShareeBike.iOS/Device/SpecialFolder.cs
2024-04-09 12:53:23 +02:00

27 lines
No EOL
726 B
C#

using System;
using ShareeBike.Model.Device;
using Xamarin.Forms;
[assembly: Dependency(typeof(ShareeBike.iOS.Device.SpecialFolder))]
namespace ShareeBike.iOS.Device
{
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);
}
/// <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);
}
}
}