{"id":13692737,"url":"https://github.com/aritchie/settings","last_synced_at":"2025-05-02T19:32:36.169Z","repository":{"id":25484062,"uuid":"28914944","full_name":"aritchie/settings","owner":"aritchie","description":"A cross platform settings plugin for Xamarin and Windows. Unlike other setting libraries in the wild, this library provides several unique features.  Store almost any object, monitor change events, iOS app groups, iCloud Provider, and Old school windows settings","archived":true,"fork":false,"pushed_at":"2019-05-12T15:39:07.000Z","size":9263,"stargazers_count":71,"open_issues_count":0,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-09T14:09:09.560Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aritchie.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-07T13:11:49.000Z","updated_at":"2024-07-02T18:17:45.000Z","dependencies_parsed_at":"2022-08-23T07:50:11.296Z","dependency_job_id":null,"html_url":"https://github.com/aritchie/settings","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aritchie%2Fsettings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aritchie%2Fsettings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aritchie%2Fsettings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aritchie%2Fsettings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aritchie","download_url":"https://codeload.github.com/aritchie/settings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252095427,"owners_count":21693915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T17:01:01.542Z","updated_at":"2025-05-02T19:32:34.436Z","avatar_url":"https://github.com/aritchie.png","language":"C#","funding_links":[],"categories":["Database"],"sub_categories":[],"readme":"# UPDATE - This library has now moved to the Shiny Framework at https://github.com/shinyorg/shiny\n\n## ACR Settings Plugin for Xamarin and Windows\nA cross platform settings plugin for Xamarin and Windows.  Unlike other setting libraries in the wild, this library provides several unique features\n\n### [SUPPORT THIS PROJECT](https://github.com/aritchie/home)\n\n\n[Change Log - April 12, 2018](changelog.md)\n\n[![NuGet](https://img.shields.io/nuget/v/Acr.Settings.svg?maxAge=2592000)](https://www.nuget.org/packages/Acr.Settings/)\n[![Build status](https://dev.azure.com/allanritchie/Plugins/_apis/build/status/Settings)](https://dev.azure.com/allanritchie/Plugins/_build/latest?definitionId=11)\n\n\n## Features\n* You can store/retrieve just about any type of object (thanks to Newtonsoft.Json)\n* You can monitor for changes using the Changed event\n* iCloud Settings Provider\n* You can use roaming profiles which is useful for:\n    * iOS app groups\n    * iOS extensions\n    * iWatch\n    * Android Wear\n\n## To use, simply call:\n\n    var int1 = CrossSettings.Current.Get\u003cint\u003e(\"Key\");\n    var int2 = CrossSettings.Current.Get\u003cint?\u003e(\"Key\");\n\n    CrossSettings.Current.Set(\"Key\", AnyObject); // converts to JSON\n    var obj = CrossSettings.Current.Get\u003cAnyObject\u003e(\"Key\");\n\n## Strongly Typed Binding (works with all platforms - no fancy reflection that breaks on iOS)\n\n    var myInpcObj = CrossSettings.Current.Bind\u003cMyInpcObject\u003e(); // Your object must implement INotifyPropertyChanged\n    myInpcObj.SomeProperty = \"Hi\"; // everything is automatically synchronized to settings right here\n\n    //From your viewmodel\n    CrossSettings.Current.Bind(this);\n\n    // make sure to unbind when your model is done\n    CrossSettings.Current.UnBind(obj);\n\n## To supply your own implementation:\n\n    CrossSettings.Current = new YourImplementationInheritingISettings();\n\n\n## Monitor setting changes:\n\n    CrossSettings.Current.Changed += (sender, args) =\u003e {\n        Console.WriteLine(args.Action);\n        Console.WriteLine(args.Key);\n        Console.WriteLine(args.Value);\n    };\n\n### Dependency Injection:\n\n*Autofac*\n\n        containerBuilder.Register(x =\u003e CrossSettings.Current).As\u003cISettings\u003e().SingleInstance();\n        \n        OR for strongly typed\n\n        containerBuilder.Register(_ =\u003e CrossSettings.Current.Bind\u003cYouAppSettings\u003e()).AsSelf().SingleInstance();\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faritchie%2Fsettings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faritchie%2Fsettings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faritchie%2Fsettings/lists"}