Skip to content

//readium-navigator/org.readium.r2.navigator.epub/fromLegacyEpubSettings

fromLegacyEpubSettings

[androidJvm]\ fun <Error class: unknown class>.fromLegacyEpubSettings(context: Context, sharedPreferencesName: String = "org.readium.r2.settings", fontFamilies: List<String> = listOf( "Original", "PT Serif", "Roboto", "Source Sans Pro", "Vollkorn", "OpenDyslexic", "AccessibleDfA", "IA Writer Duospace" )): EpubPreferences

Loads the preferences from the legacy EPUB settings stored in the SharedPreferences with given sharedPreferencesName.

This can be used to migrate the legacy settings to the new EpubPreferences format.

If you changed the fontFamilyValues in the original Test App UserSettings, pass it to fontFamilies to migrate the font family properly.