public class

UniversalViewerBatchTest

extends Object
implements PDFViewCtrl.UniversalDocumentConversionListener
java.lang.Object
   ↳ com.pdftron.pdf.utils.UniversalViewerBatchTest

Class Overview

Universal viewer batch test

Note: This utility class is for universal conversion DEBUG testing purpose ONLY. This is not meant to be used in release build.
WARNING: This batch test will cause unexpected visual effects on the PDFViewCtrl. This is expected.

Summary

Public Constructors
UniversalViewerBatchTest(Context context, PDFViewCtrl pdfViewCtrl, PDFViewCtrl.UniversalDocumentConversionListener originalConversionListener)
Public Methods
void onConversionEvent(PDFViewCtrl.ConversionState state, int totalPagesConverted)
Called when an update is available.
void run()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pdftron.pdf.PDFViewCtrl.UniversalDocumentConversionListener

Public Constructors

public UniversalViewerBatchTest (Context context, PDFViewCtrl pdfViewCtrl, PDFViewCtrl.UniversalDocumentConversionListener originalConversionListener)

Public Methods

public void onConversionEvent (PDFViewCtrl.ConversionState state, int totalPagesConverted)

Called when an update is available.

Note that the DocumentConversion passed in as a parameter might be ahead of the PDFViewCtrl in terms of how many pages are converted. This event reports how many pages the PDFViewCtrl is currently aware of.

Parameters
state - the state of update.
totalPagesConverted The total number of pages converted so far. Only relevant for the @link #CONVERSION_PROGRESS type. Note that pages can be processed in batches, and so the number might not always increase by just 1.

public void run ()