Package-level declarations

Types

Link copied to clipboard
open class SettingsOptions @JvmOverloads constructor(var scrollDirection: PageScrollDirection, var scrollMode: PageScrollMode, var layoutMode: PageLayoutMode, var themeMode: ThemeMode, var screenTimeoutMillis: Long, val visibleItems: EnumSet<SettingsMenuItemType>, var sepia: Boolean = false) : Serializable

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.

Properties

Link copied to clipboard
const val TIMEOUT_DEFAULT: Long = 0

Parameter for .setScreenTimeout used for restoring screen timeout to its default system value.

Link copied to clipboard

Parameter for .setScreenTimeout used for disabling screen timeout.

Functions

Link copied to clipboard
fun NutrientSettingsView(options: SettingsOptions, onOptionsChanged: (SettingsOptions) -> Unit, modifier: Modifier = Modifier, title: @Composable () -> Unit = { SettingsTitle() }, settingsItem: @Composable (type: SettingsMenuItemType, default: @Composable () -> Unit) -> Unit = { _, default -> default() })

The settings content the SDK's own settings sheet renders, as a composable you can place yourself.