29 lines
625 B
C#
Raw Normal View History

2021-03-30 20:54:53 +02:00
using Borepin.Service;
using System.Threading.Tasks;
using Xamarin.Essentials;
namespace Borepin.Droid.Services
{
public class SecretService : ISecretService
{
public Task<string> GetAsync(string key)
{
return SecureStorage.GetAsync(key);
}
public bool Remove(string key)
{
return SecureStorage.Remove(key);
}
public void RemoveAll()
{
SecureStorage.RemoveAll();
}
public Task SetAsync(string key, string value)
{
return SecureStorage.SetAsync(key, value);
}
}
}