A wrapper around SettingsPersistenceInterface and cached macOS state.
More...
#include <src/macos/include/display_device/macos/persistent_state.h>
A wrapper around SettingsPersistenceInterface and cached macOS state.
◆ MacPersistentState()
| display_device::MacPersistentState::MacPersistentState |
( |
std::shared_ptr< SettingsPersistenceInterface > | settings_persistence_api, |
|
|
bool | throw_on_load_error = false ) |
|
explicit |
Default constructor for the class.
- Parameters
-
| settings_persistence_api | Optional settings persistence interface. |
| throw_on_load_error | Specify whether to throw in constructor if settings fail to load. |
◆ getSettingsPersistenceApi()
Get the settings persistence API.
- Returns
- Settings persistence API.
◆ getState()
Get cached state.
- Returns
- Cached state.
◆ persistState()
Store the new state via the interface and cache it.
- Parameters
-
- Returns
- True if the state was successfully updated, false otherwise.
The documentation for this class was generated from the following files: