YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.util.image.IconDownloadTask Class Reference

AsyncTask fpr retrieving icons while browsing. More...

Inheritance diagram for de.yaacc.util.image.IconDownloadTask:
Inheritance graph
Collaboration diagram for de.yaacc.util.image.IconDownloadTask:
Collaboration graph

Classes

interface  Listener
 Tells the owner of the row that the load is over, on the main thread, whether it delivered, failed or was cancelled (a cancelled task never reaches onPostExecute), so the owner can forget the task. More...
 

Public Member Functions

 IconDownloadTask (ImageView imageView)
 
 IconDownloadTask (ImageView imageView, String deviceId)
 
 IconDownloadTask (ImageView imageView, int width, int height)
 
 IconDownloadTask (ImageView imageView, String requestKey, int width, int height, Listener listener)
 For a recycled row: the bitmap is only set while the view's tag still equals requestKey (the row was not bound to something else meanwhile), and listener is told when the task ends, however it ends.
 

Protected Member Functions

Bitmap doInBackground (Uri... uri)
 Download image and convert it to icon.
 
void onPostExecute (Bitmap result)
 Replaces the icon in the list with the recently loaded icon.
 
void onCancelled (Bitmap result)
 

Detailed Description

AsyncTask fpr retrieving icons while browsing.

Author
Christoph Hähnel (eyeless)

Member Function Documentation

◆ doInBackground()

Bitmap de.yaacc.util.image.IconDownloadTask.doInBackground ( Uri... uri)
protected

Download image and convert it to icon.

Parameters
uriuri of resource
Returns
icon
Here is the call graph for this function:

◆ onPostExecute()

void de.yaacc.util.image.IconDownloadTask.onPostExecute ( Bitmap result)
protected

Replaces the icon in the list with the recently loaded icon.

Parameters
resultdownloaded icon
Here is the call graph for this function:

The documentation for this class was generated from the following file: