public static class

DocumentSharingDialogConfiguration.Builder

extends Object
java.lang.Object
   ↳ com.pspdfkit.ui.dialog.DocumentSharingDialogConfiguration.Builder

Class Overview

Builder used to construct DocumentSharingDialogConfiguration instance.

Summary

Public Constructors
Builder(Context context)
Creates a builder for the document sharing dialog configuration.
Builder(Context context, PdfDocument document, int currentPage)
Creates a builder for the document sharing dialog configuration.
Builder(Context context, ShareAction shareAction, PdfDocument document, int currentPage)
Creates a builder for the document sharing dialog configuration.
Public Methods
DocumentSharingDialogConfiguration build()
Creates a DocumentSharingDialogConfiguration with the arguments supplied to this builder.
DocumentSharingDialogConfiguration.Builder currentPage(int currentPage)
Sets currently displayed page.
DocumentSharingDialogConfiguration.Builder dialogTitle(String dialogTitle)
Sets the dialog title.
DocumentSharingDialogConfiguration.Builder documentPages(int documentPages)
Sets loaded document pages count.
DocumentSharingDialogConfiguration.Builder initialDocumentName(String initialDocumentName)
Sets the initial document name shown in dialog.
DocumentSharingDialogConfiguration.Builder positiveButtonText(String positiveButtonText)
Sets the positive button text.
DocumentSharingDialogConfiguration.Builder setInitialPagesSpinnerAllPages(boolean allPages)
Sets the initial position for the pages spinner to 'All pages'.
DocumentSharingDialogConfiguration.Builder setSavingFlow(boolean savingFlow, Context context)
Sets proper layout changes for saving flow.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder (Context context)

Creates a builder for the document sharing dialog configuration.

Parameters
context Context of the calling component.

public Builder (Context context, PdfDocument document, int currentPage)

Creates a builder for the document sharing dialog configuration.

Parameters
context Context of the calling component.
document Document that is going to be shared.
currentPage Currently displayed page.

public Builder (Context context, ShareAction shareAction, PdfDocument document, int currentPage)

Creates a builder for the document sharing dialog configuration.

Parameters
context Context of the calling component.
shareAction Share action that governs dialog title and buttons.
document Document that is going to be shared.
currentPage Currently displayed page.

Public Methods

public DocumentSharingDialogConfiguration build ()

Creates a DocumentSharingDialogConfiguration with the arguments supplied to this builder.

Returns
  • The document sharing dialog configuration.

public DocumentSharingDialogConfiguration.Builder currentPage (int currentPage)

Sets currently displayed page.

Parameters
currentPage Page number of the page to be displayed.

public DocumentSharingDialogConfiguration.Builder dialogTitle (String dialogTitle)

Sets the dialog title.

Parameters
dialogTitle A title for the dialog.

public DocumentSharingDialogConfiguration.Builder documentPages (int documentPages)

Sets loaded document pages count.

Parameters
documentPages Number of pages in the loaded document.

public DocumentSharingDialogConfiguration.Builder initialDocumentName (String initialDocumentName)

Sets the initial document name shown in dialog.

Parameters
initialDocumentName A name set to the document initially.

public DocumentSharingDialogConfiguration.Builder positiveButtonText (String positiveButtonText)

Sets the positive button text.

Parameters
positiveButtonText A text to be displayed on the positive dialog button.

public DocumentSharingDialogConfiguration.Builder setInitialPagesSpinnerAllPages (boolean allPages)

Sets the initial position for the pages spinner to 'All pages'.

Parameters
allPages true to set the initial position to 'All pages'.

public DocumentSharingDialogConfiguration.Builder setSavingFlow (boolean savingFlow, Context context)

Sets proper layout changes for saving flow.

Parameters
savingFlow true to enable the saving flow, false otherwise.
context Context of the calling component.