public class

ThumbnailWorker

extends Object
implements PreviewHandler.PreviewHandlerCallback
java.lang.Object
   ↳ com.pdftron.demo.utils.ThumbnailWorker

Class Overview

A utility class for easy bitmap handling when using DocumentPreviewCache. fresco is used for managing bitmap memory.

Summary

Nested Classes
interface ThumbnailWorker.ThumbnailWorkerListener  
Fields
public ThumbnailWorker.ThumbnailWorkerListener mListener
Public Constructors
ThumbnailWorker(Context context, int min_x_size, int min_y_size, Bitmap loading_bitmap)
Public Methods
void PreviewHandlerProc(int result, String iconPath, Object data)
void abortCancelTask()
void cancelAllThumbRequests()
void cancelThumbRequests(int firstPosition, int lastPosition)
void cleanupResources()
void evictFromMemoryCache(String uuid)
int getMinXSize()
int getMinYSize()
void removePreviewHandler()
void setListener(ThumbnailWorker.ThumbnailWorkerListener listener)
void setLoadingBitmap(Bitmap loadingBitmap)
void setMinXSize(int minXSize)
void setMinYSize(int minYSize)
void tryLoadImageFromFilter(int position, String identifier, String uriStr)
void tryLoadImageWithPath(int position, String filePath, String iconPath, ImageViewTopCrop imageView)
void tryLoadImageWithUuid(int position, String identifier, String iconPath, ImageViewTopCrop imageView)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pdftron.pdf.PreviewHandler.PreviewHandlerCallback

Fields

Public Constructors

public ThumbnailWorker (Context context, int min_x_size, int min_y_size, Bitmap loading_bitmap)

Public Methods

public void PreviewHandlerProc (int result, String iconPath, Object data)

public void abortCancelTask ()

public void cancelAllThumbRequests ()

public void cancelThumbRequests (int firstPosition, int lastPosition)

public void cleanupResources ()

public void evictFromMemoryCache (String uuid)

public int getMinXSize ()

public int getMinYSize ()

public void removePreviewHandler ()

public void setListener (ThumbnailWorker.ThumbnailWorkerListener listener)

public void setLoadingBitmap (Bitmap loadingBitmap)

public void setMinXSize (int minXSize)

public void setMinYSize (int minYSize)

public void tryLoadImageFromFilter (int position, String identifier, String uriStr)

public void tryLoadImageWithPath (int position, String filePath, String iconPath, ImageViewTopCrop imageView)

public void tryLoadImageWithUuid (int position, String identifier, String iconPath, ImageViewTopCrop imageView)