Skip to main content
Acr.Settings package icon

Acr.Settings

#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>();

Total Downloads
209.2K
209,236
Published
Feb 5, 2015
Latest stable version

Install

.NET CLI
dotnet add package Acr.Settings --version 3.0.0
Package Manager Console
Install-Package Acr.Settings -Version 3.0.0
PackageReference
<PackageReference Include="Acr.Settings" Version="3.0.0" />

Frameworks

No framework metadata available.

Dependencies

[6.0.8, 7.0.0)

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.