public final class Request
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Request.Builder
Builder for creating
Request instances. |
Modifier and Type | Field and Description |
---|---|
boolean |
centerCrop
True if the final image should use the 'centerCrop' scale technique.
|
int |
centerCropGravity
If centerCrop is set, controls alignment of centered image
|
boolean |
centerInside
True if the final image should use the 'centerInside' scale technique.
|
android.graphics.Bitmap.Config |
config
Target image config for decoding.
|
boolean |
hasRotationPivot
Whether or not
rotationPivotX and rotationPivotY are set. |
boolean |
onlyScaleDown |
Picasso.Priority |
priority
The priority of this request.
|
boolean |
purgeable
True if image should be decoded with inPurgeable and inInputShareable.
|
int |
resourceId
The image resource ID.
|
float |
rotationDegrees
Amount to rotate the image in degrees.
|
float |
rotationPivotX
Rotation pivot on the X axis.
|
float |
rotationPivotY
Rotation pivot on the Y axis.
|
java.lang.String |
stableKey
Optional stable key for this request to be used instead of the URI or resource ID when
caching.
|
int |
targetHeight
Target image height for resizing.
|
int |
targetWidth
Target image width for resizing.
|
java.util.List<Transformation> |
transformations
List of custom transformations to be applied after the built-in transformations.
|
android.net.Uri |
uri
The image URI.
|
Modifier and Type | Method and Description |
---|---|
Request.Builder |
buildUpon() |
boolean |
hasSize() |
java.lang.String |
toString() |
public final android.net.Uri uri
This is mutually exclusive with resourceId
.
public final int resourceId
This is mutually exclusive with uri
.
public final java.lang.String stableKey
public final java.util.List<Transformation> transformations
public final int targetWidth
public final int targetHeight
public final boolean centerCrop
This is mutually exclusive with centerInside
.
public final int centerCropGravity
public final boolean centerInside
This is mutually exclusive with centerCrop
.
public final boolean onlyScaleDown
public final float rotationDegrees
public final float rotationPivotX
public final float rotationPivotY
public final boolean hasRotationPivot
rotationPivotX
and rotationPivotY
are set.public final boolean purgeable
public final android.graphics.Bitmap.Config config
public final Picasso.Priority priority
public java.lang.String toString()
toString
in class java.lang.Object
public boolean hasSize()
public Request.Builder buildUpon()