public class

PreviewHandler

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.PreviewHandler

Class Overview

PreviewHandler is an interface for a custom handler that can be passed into DocumentPreviewCache GetBitmap.

Summary

Nested Classes
interface PreviewHandler.PreviewHandlerCallback  
Constants
int DOCUMENT_PREVIEW_RESULT_CANCEL The request was cancelled before it was processed.
int DOCUMENT_PREVIEW_RESULT_FAILURE The thumbnail could not be retrieved.
int DOCUMENT_PREVIEW_RESULT_NOT_FOUNT
int DOCUMENT_PREVIEW_RESULT_PACKAGE_ERROR Failure due to encountering a PDF package
int DOCUMENT_PREVIEW_RESULT_POSTPONED The request was a duplicate of another finished request
int DOCUMENT_PREVIEW_RESULT_PREVIOUS_CRASH Abort this render because we've crashed on this file previously
int DOCUMENT_PREVIEW_RESULT_SECURITY_ERROR Failure due to password restriction.
int DOCUMENT_PREVIEW_RESULT_SUCCESS Successful retrieval of the thumbnail.
Public Constructors
PreviewHandler(PreviewHandler.PreviewHandlerCallback listener)
Public Methods
void removeListener()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int DOCUMENT_PREVIEW_RESULT_CANCEL

The request was cancelled before it was processed.

Constant Value: 3 (0x00000003)

public static final int DOCUMENT_PREVIEW_RESULT_FAILURE

The thumbnail could not be retrieved.

Constant Value: 0 (0x00000000)

public static final int DOCUMENT_PREVIEW_RESULT_NOT_FOUNT

Constant Value: 6 (0x00000006)

public static final int DOCUMENT_PREVIEW_RESULT_PACKAGE_ERROR

Failure due to encountering a PDF package

Constant Value: 4 (0x00000004)

public static final int DOCUMENT_PREVIEW_RESULT_POSTPONED

The request was a duplicate of another finished request

Constant Value: 9 (0x00000009)

public static final int DOCUMENT_PREVIEW_RESULT_PREVIOUS_CRASH

Abort this render because we've crashed on this file previously

Constant Value: 5 (0x00000005)

public static final int DOCUMENT_PREVIEW_RESULT_SECURITY_ERROR

Failure due to password restriction.

Constant Value: 2 (0x00000002)

public static final int DOCUMENT_PREVIEW_RESULT_SUCCESS

Successful retrieval of the thumbnail.

Constant Value: 1 (0x00000001)

Public Constructors

public PreviewHandler (PreviewHandler.PreviewHandlerCallback listener)

Public Methods

public void removeListener ()