/NativeAppStore

in .net build Native App,you may want to save some data in local, so you can use this package to save data in local.

Primary LanguageC#MIT LicenseMIT

NativeAppStore

GitHub license GitHub Stars GitHub Issues

Introduction

in .net build Native App,you may want to save some data in local, so you can use this package to save data in local.

Nuget Packages

Name Version Download
NativeAppStore NativeAppStore NativeAppStore

Guide

in many ui framework, exit hooks many cannot must be invoke (like anrdoid),so you may need give the save decision to user,or global exception catcher to save stores.

or if you have any ideas,Welcome to create this rep Issues

Usage

  1. Add Package Reference NativeAppStore
  2. Add Services
services.AddStores(GetType().Assembly, opt => { opt.EnabledCreatorStoreLoad = true; });
  1. Create Store
public class MainWindowStore : StoreBase
{
  
}
  1. To Save Store On App Exit Or Global Exception Catch
// that will save all stores
StoreSaveExecutor.SaveAllStores();

// or invoke store save
store.SaveStore();

Framework Tests

Avalonia

  • Desktop
    • Windows
    • Mac
    • Linux
  • Mobile
    • Android
    • iOS
  • WebAssembly

Maui

  • Desktop
    • Windows
    • Mac
    • Windows
  • Mobile
    • Android
    • iOS

Others

  • WPF
  • Winform

Author

Zyknow

License

You can check out the full license here

This project is licensed under the terms of the MIT license.