public
static
abstract
class
ImageDecoder.Source
extends Object
Source of encoded image data.
References the data that will be used to decode a Drawable
or Bitmap in decodeDrawable or
decodeBitmap. Constructing a Source (with
one of the overloads of createSource) can be done on any thread
because the construction simply captures values. The real work is done
in decodeDrawable or decodeBitmap.
A Source object can be reused to create multiple versions of the
same image. For example, to decode a full size image and its thumbnail,
the same Source can be used once with no
OnHeaderDecodedListener and once with an
implementation of onHeaderDecoded
that calls ImageDecoder.setTargetSize(int, int) with smaller dimensions. One Source
can even be used simultaneously in multiple threads.
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-02-08 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]