public class

HtmlPostProcessColorTask

extends CustomAsyncTask<Params, Progress, Result>
java.lang.Object
   ↳ android.os.AsyncTask<Params, Progress, Result>
     ↳ com.pdftron.pdf.utils.CustomAsyncTask<Params, Progress, Result>
       ↳ com.pdftron.pdf.asynctask.HtmlPostProcessColorTask

Class Overview

A class that asynchronously generates an html file from the specified html where all its colors are changed based on the given post processor

Summary

Nested Classes
interface HtmlPostProcessColorTask.Callback Callback interface invoked when post-processing the color of the specified html is finished. 
[Expand]
Inherited Fields
From class android.os.AsyncTask
Public Constructors
HtmlPostProcessColorTask(Context context, String htmlFilename)
Class constructor
Public Methods
void setCallback(HtmlPostProcessColorTask.Callback callback)
Sets the callback listener.
void setOnPostProcessColorListener(ReflowControl.OnPostProcessColorListener listener)
Sets the OnPostProcessColorListener listener.
[Expand]
Inherited Methods
From class android.os.AsyncTask
From class java.lang.Object

Public Constructors

public HtmlPostProcessColorTask (Context context, String htmlFilename)

Class constructor

Parameters
context The context
htmlFilename The input html filename

Public Methods

public void setCallback (HtmlPostProcessColorTask.Callback callback)

Sets the callback listener.

Sets the callback to null when the task is cancelled.

Parameters
callback The callback when the task is finished

public void setOnPostProcessColorListener (ReflowControl.OnPostProcessColorListener listener)

Sets the OnPostProcessColorListener listener.

Sets the listener to null when the task is cancelled.

Parameters
listener The listener that post-processes the given color