Xam.Plugins.Settings 3.1.1

Settings Plugin Readme

See more at: https://github.com/jamesmontemagno/SettingsPlugin/blob/master/CHANGELOG.md

News

-New changes in Settings API: GetValueOrDefault and AddOrUpdateValue are no longer generic and you must pass in only supported types.

Important

Ensure that you install NuGet into ALL projects.

Create a new file called Settings.cs or whatever you want and copy this code in to get started:

// Helpers/Settings.cs using Plugin.Settings; using Plugin.Settings.Abstractions;

namespace \(rootnamespace\).Helpers { ///

/// 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. /// 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(SettingsKey, SettingsDefault);
  }
  set
  {
    AppSettings.AddOrUpdateValue(SettingsKey, value);
  }
}

} }

No packages depend on Xam.Plugins.Settings.

See Changelog: https://github.com/jamesmontemagno/SettingsPlugin/blob/master/CHANGELOG.md

.NET Framework 0.0

  • No dependencies.

Xamarin.WatchOS 0.0

  • No dependencies.

Xamarin.TVOS 0.0

  • No dependencies.

UAP 0.0

  • No dependencies.

.NETPortable 0.0

  • No dependencies.

Xamarin.Mac 2.0

  • No dependencies.

.NETPlatform 5.0

  • No dependencies.

MonoAndroid 1.0

  • No dependencies.

.NET Standard 1.0

WindowsPhoneApp 0.0

  • No dependencies.

WindowsPhone 0.0

  • No dependencies.

Windows 0.0

  • No dependencies.

Xamarin.iOS 1.0

  • No dependencies.

Version Downloads Last updated
5.0.0-beta 46 02/13/2024
4.1.0-beta 26 02/13/2024
4.0.0.10-beta 30 02/13/2024
4.0.0.9-beta 22 02/13/2024
4.0.0.8-beta 23 02/13/2024
4.0.0.3-beta 22 02/13/2024
4.0.0.2-beta 29 02/13/2024
4.0.0.1-beta 31 02/13/2024
3.2.0.130-beta 20 02/13/2024
3.1.1 38 09/24/2020
3.1.0-beta103 33 02/13/2024
3.0.1 42 02/13/2024
3.0.0.73-beta 43 02/13/2024
3.0.0.72-beta 22 02/13/2024
3.0.0.71-beta 38 02/13/2024
3.0.0.70-beta 38 02/13/2024
3.0.0.69-beta 41 02/13/2024
3.0.0.66-beta 31 02/13/2024
3.0.0.64-beta 22 02/13/2024
2.6.0.12-beta 20 02/13/2024
2.5.8 27 02/13/2024
2.5.4 23 02/13/2024
2.5.3 30 02/13/2024
2.5.2.1 38 02/13/2024
2.5.1 23 02/13/2024
2.5.0 38 02/13/2024
2.1.0 34 02/13/2024
2.0.0 28 02/13/2024
1.5.2 37 02/13/2024
1.5.1 29 02/13/2024
1.5.0 38 02/13/2024
1.4.0.1 20 02/13/2024
1.4.0 40 02/13/2024
1.3.0 35 02/13/2024
1.2.0.3 38 02/13/2024
1.2.0.2 34 02/13/2024
1.0.0 35 02/13/2024