2016-09-27 02:35:45 +02:00
2016-07-20 12:33:16 +02:00
// Helpers/Settings.cs This file was automatically added when you installed the Settings Plugin. If you are not using a PCL then comment this file back in to use it.
using Plugin.Settings ;
using Plugin.Settings.Abstractions ;
2017-01-26 13:00:31 +01:00
namespace ZicMoove.Droid.Helpers
2016-07-20 12:33:16 +02:00
{
/// <summary>
/// This is the Settings static class that can be used in your Core solution or in any
/// of your client applications. All settings are laid out the same exact way with getters
/// and setters.
/// </summary>
public static class Settings
{
private static ISettings AppSettings
{
get
{
return CrossSettings . Current ;
}
}
#region Setting Constants
private const string SettingsKey = "settings_key" ;
private static readonly string SettingsDefault = string . Empty ;
#endregion
public static string GeneralSettings
{
get
{
return AppSettings . GetValueOrDefault < string > ( SettingsKey , SettingsDefault ) ;
}
set
{
AppSettings . AddOrUpdateValue < string > ( SettingsKey , value ) ;
}
}
}
2016-09-27 02:35:45 +02:00
}