Class DocumentSharingDialogConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public abstract class DocumentSharingDialogConfiguration implements Parcelable
Configuration for document sharing dialog.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
DocumentSharingDialogConfiguration.Builder
Builder used to construct DocumentSharingDialogConfiguration instance.
-
Constructor Summary
Constructors Constructor Description DocumentSharingDialogConfiguration()
-
Method Summary
Modifier and Type Method Description abstract String
getDialogTitle()
Title of the sharing dialog. abstract String
getPositiveButtonText()
The text to display in the positive button of the sharing dialog. abstract int
getCurrentPage()
Currently displayed page in the shared document. abstract int
getDocumentPages()
Pages in the shared document. abstract String
getInitialDocumentName()
Default name displayed in the sharing dialog. abstract boolean
isInitialPagesSpinnerAllPages()
Returns true
if the initial position for Pages spinner is set to 'All pages',false
otherwise.abstract boolean
isSavingFlow()
Returns true
if saving flow is enabled, and the layout will reflect the change accordingly.-
-
Method Detail
-
getDialogTitle
@NonNull() abstract String getDialogTitle()
Title of the sharing dialog.
- Returns:
Sharing dialog title.
-
getPositiveButtonText
@NonNull() abstract String getPositiveButtonText()
The text to display in the positive button of the sharing dialog.
- Returns:
Positive button text.
-
getCurrentPage
@IntRange(from = 0) abstract int getCurrentPage()
Currently displayed page in the shared document. Used to pre-fill page range picker.
- Returns:
Currently displayed page.
-
getDocumentPages
@IntRange(from = 0) abstract int getDocumentPages()
Pages in the shared document. Used to pre-fill page range picker.
- Returns:
Document pages.
-
getInitialDocumentName
@NonNull() abstract String getInitialDocumentName()
Default name displayed in the sharing dialog.
- Returns:
Initial document name or empty if name should be generated from document metadata.
-
isInitialPagesSpinnerAllPages
abstract boolean isInitialPagesSpinnerAllPages()
Returns
true
if the initial position for Pages spinner is set to 'All pages',false
otherwise.- Returns:
true
if the initial position for Pages spinner is set to 'All pages'.
-
isSavingFlow
abstract boolean isSavingFlow()
Returns
true
if saving flow is enabled, and the layout will reflect the change accordingly.- Returns:
true
if saving flow is enabled,false
otherwise.
-
-
-
-