Settings Options
Data class that represents the options to be shown in the com.pspdfkit.ui.settings.SettingsDialog. It is created automatically from the values of the active com.pspdfkit.configuration.PdfConfiguration, so you do not need to build one to use the built-in settings dialog.
You do need it if you replace the settings dialog with your own UI, because it is the carrier between that UI and the SDK. Read the current values into one, render whatever controls you like, and apply the result back through com.pspdfkit.configuration.PdfConfiguration, com.pspdfkit.ui.PdfUi.setScreenTimeout and com.pspdfkit.preferences.PSPDFKitPreferences. The catalog's Custom Settings, Info and Outline UI example does exactly that, using public API only.
Constructors
Properties
Continuous or paginated scrolling. See com.pspdfkit.configuration.PdfConfiguration.layoutMode
Specifies the duration that needs to pass without user interaction until the screen is turned off. Use com.pspdfkit.ui.PdfUi.TIMEOUT_DEFAULT for the system default timeout and com.pspdfkit.ui.PdfUi.TIMEOUT_INFINITE to deactivate automatic screen off. Please notice, that this setting only works out of the box only if you're using com.pspdfkit.ui.PdfActivity (or a derived class from it). In case you're using com.pspdfkit.ui.PdfUiFragment you can forward Activity.onUserInteraction from your activity class.
Set page scroll direction. See com.pspdfkit.configuration.PdfConfiguration.scrollDirection
Continuous or paginated scrolling. See com.pspdfkit.configuration.PdfConfiguration.scrollMode
Sepia page appearance. See com.pspdfkit.configuration.PdfConfiguration.isSepia
Default or night theme. See com.pspdfkit.configuration.PdfConfiguration.themeMode
Items that should be visible in the settings dialog. See com.pspdfkit.configuration.activity.PdfActivityConfiguration.settingsMenuItemShown. Providing an empty set results in the same behavior as calling com.pspdfkit.configuration.activity.PdfActivityConfiguration.Builder.settingsMenuEnabled with false and will remove the settings dialog item from the main options menu.