sharee.bike-App/TINK/TINK.iOS/Device/SpecialFolder.cs

27 lines
807 B
C#
Raw Normal View History

2021-05-13 20:16:41 +02:00
using System;
using TINK.Model.Device;
using Xamarin.Forms;
[assembly: Dependency(typeof(TINK.iOS.Device.SpecialFolder))]
namespace TINK.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);
}
}
}