Skip to content

Read and Write Settings Plugin for Xamarin and Windows

License

Notifications You must be signed in to change notification settings

djanri/SettingsPlugin

 
 

Repository files navigation

Settings Plugin for Xamarin And Windows

Create and access settings from shared code across all of your apps!

Documentation

Get started by reading through the Settings Plugin documentation.

NuGet

Build:

Platform Support

Platform Version
Xamarin.iOS iOS 7+
Xamarin.Android API 15+
Windows 10 UWP 10+
Xamarin.Mac All
Xamarin.tvOS All
Xamarin.watchOS All
.NET 4.5+
.NET Core 2.0+

Settings Plugin or Xamarin.Forms App.Properties

I get this question a lot, so here it is from a recent issue opened up. This plugin saves specific properties directly to each platforms native settings APIs (NSUserDefaults, SharedPreferences, etc). This ensures the fastest, most secure, and reliable creation and editing settings per application. Additionally, it works with any Xamarin application, not just Xamarin.Forms.

App.Current.Properties actually serializes and deserializes items to disk as you can see in the implementation.

To me that isn't as reliable as saving direct to the native platforms settings.

Contribution

Thanks you for your interest in contributing to Settings plugin! In this section we'll outline what you need to know about contributing and how to get started.

Bug Fixes

Please browse open issues, if you're looking to fix something, it's possible that someone already reported it. Additionally you select any up-for-grabs items

Pull requests

Please fill out the pull request template when you send one. Run tests to make sure your changes don't break any unit tests. Follow these instructions to run tests -

iOS

  • Navigate to tests/Plugin.Settings.NUnitTest.iOS
  • Execute make run-simulator-tests

Android

Execute ./build.sh --target RunDroidTests from the project root

License

The MIT License (MIT) see License file

Want To Support This Project?

All I have ever asked is to be active by submitting bugs, features, and sending those pull requests down! Want to go further? Make sure to subscribe to my weekly development podcast Merge Conflict, where I talk all about awesome Xamarin goodies and you can optionally support the show by becoming a supporter on Patreon.

About

Read and Write Settings Plugin for Xamarin and Windows

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 92.6%
  • PowerShell 4.0%
  • Shell 1.7%
  • Other 1.7%