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

24 lines
No EOL
648 B
C#

using ShareeBike.Model.Device;
using Xamarin.Forms;
namespace ShareeBike.Model.Device
{
public class SpecialFolder : ISpecialFolder
{
/// <summary>
/// Get the folder name of external folder to write to.
/// </summary>
/// <returns></returns>
public string GetExternalFilesDir()
{
return DependencyService.Get<ISpecialFolder>().GetExternalFilesDir();
}
/// <summary> Gets the folder name of the personal data folder dir on internal storage. </summary>
/// <returns>Directory name.</returns>
public string GetInternalPersonalDir()
{
return DependencyService.Get<ISpecialFolder>().GetInternalPersonalDir();
}
}
}