public class

PresetBarViewModel

extends AndroidViewModel
java.lang.Object
   ↳ AndroidViewModel
     ↳ com.pdftron.pdf.widget.preset.component.PresetBarViewModel

Class Overview

View Model that manages the preset bar state

Summary

Public Constructors
PresetBarViewModel(Application application)
Public Methods
void dismissStyleDialog()
void generatePreview(int toolbarButtonType, String stampId)
PresetBarState getPresetBarState()
boolean hasCountMeasurementPresets()
void hidePresetBar()
void observePresetState(LifecycleOwner owner, observer)
void observeSinglePresetImageFile(LifecycleOwner owner, observer)
void openStyleDialog()
void reloadPreset(Context context, int annotType)
void reloadSignaturePreset(Context context, int annotType, String toolbarStyleId, int index)
void reloadStampPreset(Context context, int annotType, String toolbarStyleId, int index)
void saveCountMeasurementPreset(String label, AnnotStyle annotStyle, String toolbarStyleId, int index)
void saveStampPreset(Context context, int annotType, String stampId, String toolbarStyleId, int index)
void saveStampPreset(int annotType, String stampId)
void selectPreset(int index)
void setPresetBarState(PresetBarState presetStateList)
void showPresetBar()
void updateAnnotStyles(ArrayList<AnnotStyle> annotStyles, int index)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PresetBarViewModel (Application application)

Public Methods

public void dismissStyleDialog ()

public void generatePreview (int toolbarButtonType, String stampId)

public PresetBarState getPresetBarState ()

public boolean hasCountMeasurementPresets ()

public void hidePresetBar ()

public void observePresetState (LifecycleOwner owner, observer)

public void observeSinglePresetImageFile (LifecycleOwner owner, observer)

public void openStyleDialog ()

public void reloadPreset (Context context, int annotType)

public void reloadSignaturePreset (Context context, int annotType, String toolbarStyleId, int index)

public void reloadStampPreset (Context context, int annotType, String toolbarStyleId, int index)

public void saveCountMeasurementPreset (String label, AnnotStyle annotStyle, String toolbarStyleId, int index)

public void saveStampPreset (Context context, int annotType, String stampId, String toolbarStyleId, int index)

public void saveStampPreset (int annotType, String stampId)

public void selectPreset (int index)

public void setPresetBarState (PresetBarState presetStateList)

public void showPresetBar ()

public void updateAnnotStyles (ArrayList<AnnotStyle> annotStyles, int index)