mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-24 16:16:27 +01:00
27 lines
807 B
C#
27 lines
807 B
C#
|
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);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|