java.lang.Object | |
↳ | com.android.contacts.ContactPhotoLoader |
Asynchronously loads contact photos and maintains cache of photos. The class is mostly single-threaded. The only two methods accessed by the loader thread are #cacheBitmap and #obtainPhotoIdsToLoad. Those methods access concurrent hash maps shared with the main thread.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Processes requests on the main thread.
| |||||||||||
Load photo into the supplied image view.
| |||||||||||
Temporarily stops loading photos from the database.
| |||||||||||
Resumes loading photos from the database.
| |||||||||||
Stops loading images, kills the image loader thread and clears all caches.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Handler.Callback
|
Constructor.
context | content context |
---|---|
defaultResourceId | the image resource ID to be used when there is no photo for a contact |
Load photo into the supplied image view. If the photo is already cached, it is displayed immediately. Otherwise a request is sent to load the photo from the database.
Temporarily stops loading photos from the database.
Resumes loading photos from the database.
Stops loading images, kills the image loader thread and clears all caches.