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  
Constants
int MODE_UUID
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 tryLoadImage(int position, String identifier, String iconPath, ImageViewTopCrop imageView, int mode)
void tryLoadImageFromFilter(int position, String identifier, String uriStr)
void tryLoadImageWithPath(int position, String filePath, String iconPath, ImageViewTopCrop imageView)
void tryLoadImageWithUuid(int position, String filename, String identifier, String iconPath, ImageViewTopCrop imageView)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pdftron.pdf.PreviewHandler.PreviewHandlerCallback

Constants

public static final int MODE_UUID

Constant Value: 1 (0x00000001)

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 tryLoadImage (int position, String identifier, String iconPath, ImageViewTopCrop imageView, int mode)

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 filename, String identifier, String iconPath, ImageViewTopCrop imageView)