8 [DefaultImplementation(typeof(SettingsService))]
130 Task<T?>
RestoreState<T>(
string Key, T? DefaultValueIfNotFound =
default);
Handles common runtime settings that need to be persisted during sessions.
Task< long > RestoreLongState(string Key, long DefaultValueIfNotFound=default)
Restores State for the specified key.
Task SaveState(string Key, double State)
Saves State with the given key.
Task< string?> RestoreStringState(string Key, string? DefaultValueIfNotFound=default)
Restores State for the specified key.
Task SaveState(string Key, bool State)
Saves State with the given key.
Task SaveState(string Key, string State)
Saves State with the given key.
Task SaveState(string Key, TimeSpan State)
Saves State with the given key.
Task< DateTime > RestoreDateTimeState(string Key, DateTime DefaultValueIfNotFound=default)
Restores State for the specified key.
Task< TimeSpan > RestoreTimeSpanState(string Key, TimeSpan DefaultValueIfNotFound=default)
Restores State for the specified key.
Task< bool > WaitInitDone()
Waits for initialization of the storage service to be completed.
Task RemoveState(string Key)
Removes a given State.
Task< Enum?> RestoreEnumState(string Key, Enum? DefaultValueIfNotFound=default)
Restores State for the specified key.
Task SaveState(string Key, Enum State)
Saves State with the given key.
Task SaveState(string Key, long State)
Saves State with the given key.
Task< T?> RestoreState< T >(string Key, T? DefaultValueIfNotFound=default)
Restores State for the specified key.
Task< double > RestoreDoubleState(string Key, double DefaultValueIfNotFound=default)
Restores State for the specified key.
Task SaveState(string Key, DateTime State)
Saves State with the given key.
Task SaveState(string Key, object State)
Saves State with the given key.
Task< bool > RestoreBoolState(string Key, bool DefaultValueIfNotFound=default)
Restores State for the specified key.