public class

ViewerBuilder

com.pdftron.pdf.config.ViewerBuilder

Class Overview

Builder to create a PdfViewCtrlTabHostFragment.

Summary

Fields
public static final Creator<ViewerBuilder> CREATOR
Public Methods
static ViewerBuilder withFile(File file)
Similar to {@link #withFile(File, String)), but without a specified password.
static ViewerBuilder withFile(File file, String password)
Similar to {@link #withUri(Uri, String)), but with a specified File object.
static ViewerBuilder withUri(Uri file)
static ViewerBuilder withUri(Uri file, String password)
Create a ViewerBuilder with the specified document and password if applicable.

Fields

public static final Creator<ViewerBuilder> CREATOR

Public Methods

public static ViewerBuilder withFile (File file)

Similar to {@link #withFile(File, String)), but without a specified password.

public static ViewerBuilder withFile (File file, String password)

Similar to {@link #withUri(Uri, String)), but with a specified File object.

public static ViewerBuilder withUri (Uri file)

public static ViewerBuilder withUri (Uri file, String password)

Create a ViewerBuilder with the specified document and password if applicable.

Parameters
file Uri that specifies the location of the document
password used to open the document if needed, null otherwise
Returns
  • builder with the specified document and password