public class

SettingsModePicker

extends CardView
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ androidx.cardview.widget.CardView
           ↳ com.pspdfkit.ui.settings.SettingsModePicker

Class Overview

Mode picker view used to control application settings.

Summary

Nested Classes
interface SettingsModePicker.OnModeChangedListener On mode changed listener implemented by PdfUiImpl for reflecting the changes to page scroll, page layout, scroll direction, theme and screen timeout. 
[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
SettingsModePicker(Context context)
SettingsModePicker(Context context, AttributeSet attrs)
SettingsModePicker(Context context, AttributeSet attrs, int defStyleAttr)
Public Methods
void setItemsVisibility(EnumSet<SettingsMenuItemType> settingsMenuItemShown)
Sets visible menu items dictated by getSettingsMenuItemShown().
void setOnModeChangedListener(SettingsModePicker.OnModeChangedListener listener)
Sets a listener for changing settings.
void setPageLayoutMode(PageLayoutMode layout)
Sets used page layout mode.
void setScreenTimeoutMode(long screenTimeoutMillis)
Sets screen timeout mode or hide the switch in case of a custom timeout.
void setScrollMode(PageScrollDirection scroll)
Sets used page scroll direction mode.
void setThemeMode(ThemeMode theme)
Sets used theme mode.
void setTransitionMode(PageScrollMode transition)
Sets used transition mode.
[Expand]
Inherited Methods
From class androidx.cardview.widget.CardView
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public SettingsModePicker (Context context)

public SettingsModePicker (Context context, AttributeSet attrs)

public SettingsModePicker (Context context, AttributeSet attrs, int defStyleAttr)

Public Methods

public void setItemsVisibility (EnumSet<SettingsMenuItemType> settingsMenuItemShown)

Sets visible menu items dictated by getSettingsMenuItemShown().

Parameters
settingsMenuItemShown Visible menu items.

public void setOnModeChangedListener (SettingsModePicker.OnModeChangedListener listener)

Sets a listener for changing settings. Calling this method will replace any previously set listener. You may provide null to clear the listener.

Parameters
listener SettingsModePicker.OnModeChangedListener that should be notified, or null to clear the listener.

public void setPageLayoutMode (PageLayoutMode layout)

Sets used page layout mode.

Parameters
layout Page layout.

public void setScreenTimeoutMode (long screenTimeoutMillis)

Sets screen timeout mode or hide the switch in case of a custom timeout.

Parameters
screenTimeoutMillis can be a positive number, TIMEOUT_DEFAULT or TIMEOUT_INFINITE. Switch will be set to true in case of TIMEOUT_INFINITE, false in case of TIMEOUT_DEFAULT and hidden for any other positive number.

public void setScrollMode (PageScrollDirection scroll)

Sets used page scroll direction mode.

Parameters
scroll Page scroll direction.

public void setThemeMode (ThemeMode theme)

Sets used theme mode.

Parameters
theme Theme used.

public void setTransitionMode (PageScrollMode transition)

Sets used transition mode.

Parameters
transition Page scroll transition.