Acr.Settings
3.0.0
See the version list below for details.
dotnet add package Acr.Settings --version 3.0.0
NuGet\Install-Package Acr.Settings -Version 3.0.0
<PackageReference Include="Acr.Settings" Version="3.0.0" />
paket add Acr.Settings --version 3.0.0
#r "nuget: Acr.Settings, 3.0.0"
// Install Acr.Settings as a Cake Addin
#addin nuget:?package=Acr.Settings&version=3.0.0
// Install Acr.Settings as a Cake Tool
#tool nuget:?package=Acr.Settings&version=3.0.0
#ACR Xplat Settings Plugin for Xamarin and Windows
##To use, simply call:
var int1 = Settings.Instance.Get<int>("Key");
var int2 = Settings.Instance.Get<int?>("Key");
Settings.Instance.Set("Key", AnyObject); // converts to JSON
var obj = Settings.Instance.Get<AnyObject>("Key");
##To supply your own implementation:
Settings.Instance = new YourImplementationInheritingISettings();
##Monitor setting changes:
Settings.Changed += (sender, args) => {
Console.WriteLine(args.Action);
Console.WriteLine(args.Key);
Console.WriteLine(args.Value);
};
###In your platform project (NOT YOUR PCL)
####For DI:
container.RegisterSingleton<ISettings, SettingsImpl>();
####For MvvmCross:
Mvx.RegisterSingleton<ISettings, SettingsImpl>();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid10 is compatible. |
Xamarin.iOS | xamarinios10 is compatible. |
-
- Newtonsoft.Json (>= 6.0.8 && < 7.0.0)
GitHub repositories
This package is not used by any popular GitHub repositories.
3.0.0
Vastly new underlying design and API
Moving to bait and switch design
2.1.1
Fix iOS Settings issue
2.1
Better structure to observable dictionary of settings
FIX: bug with resync calling clear event which removes some necessary iOS settings
2.0
Now works as an observable observable dictionary
New extension methods for supporting several other data types
1.0
Initial Release