-
- All Implemented Interfaces:
-
java.lang.Runnable
public class APDownloaderThread extends Thread
-
-
Constructor Summary
Constructors Constructor Description APDownloaderThread(Context context, String url, ImageView imageView, int imageViewWidth, int imageViewHeight, boolean preDownload)APDownloaderThread(Context context, String url, ImageView imageView, int imageViewWidth, int imageViewHeight, APDownloader.APDownloadCallback callback, boolean useBitmapOptions)APDownloaderThread(Context context, String url)
-
Method Summary
Modifier and Type Method Description voidsetDonwloadedDrawable(APDownloader.DownloadedDrawable dd)voidrun()voidcancel(boolean flag)voidsendResult(Bitmap bitmap)BitmapdownloadBitmap(String urls, int imageViewWidth, int imageViewHeight, boolean useBitmapOptions)voiddownloadVideo(String urls)-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, start, stop, suspend, toString, yield -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
APDownloaderThread
APDownloaderThread(Context context, String url, ImageView imageView, int imageViewWidth, int imageViewHeight, boolean preDownload)
-
APDownloaderThread
APDownloaderThread(Context context, String url, ImageView imageView, int imageViewWidth, int imageViewHeight, APDownloader.APDownloadCallback callback, boolean useBitmapOptions)
-
-
Method Detail
-
setDonwloadedDrawable
void setDonwloadedDrawable(APDownloader.DownloadedDrawable dd)
-
run
void run()
-
cancel
void cancel(boolean flag)
-
sendResult
void sendResult(Bitmap bitmap)
-
downloadBitmap
Bitmap downloadBitmap(String urls, int imageViewWidth, int imageViewHeight, boolean useBitmapOptions)
-
downloadVideo
void downloadVideo(String urls)
-
-
-
-