Submiting epub preferences to NavigatorFragment #464
-
Hi. How can I submit preferences in epubNavigatorFragment and make fragment update when settigns are changed. Should I use preferences editor? Wil it and epubNavigatorFragment linked to each other?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Did you take a look at the Navigator preferences user guide? You can observe |
Beta Was this translation helpful? Give feedback.
Did you take a look at the Navigator preferences user guide?
You can observe
EpubNavigatorFragment.settings
, which is aStateFlow<EpubSettings>
. However, you usually don't need to do that. Since you store and submit the preferences when they change, you already know the latest state of the preferences and when the UI needs to be refreshed. In other words, the preferences persistence store is the source of truth for preferences, not the navigator settings.