Package com.pubmatic.sdk.common.network
Class POBImageRequest
-
- All Implemented Interfaces:
-
java.lang.Cloneable
public class POBImageRequest extends POBHttpRequest
A data class responsible for storing the details of the request for loading Image
-
-
Field Summary
Fields Modifier and Type Field Description public intmaxWidthpublic intmaxHeightpublic ImageView.ScaleTypescaleTypepublic Bitmap.ConfigdecodeConfigpublic intretryCountpublic floatretryBackoffMultiplierpublic Stringurlpublic StringpostDatapublic Map<String, String>headerspublic POBHttpRequest.HTTP_METHODrequestMethod
-
Constructor Summary
Constructors Constructor Description POBImageRequest()
-
Method Summary
Modifier and Type Method Description intgetMaxWidth()Returns the maximum width of an Image voidsetMaxWidth(int maxWidth)Sets the maximum width of an Image intgetMaxHeight()Returns the maximum height of an Image voidsetMaxHeight(int maxHeight)Sets the maximum height of an Image ImageView.ScaleTypegetScaleType()Returns the scale type voidsetScaleType(@Nullable() ImageView.ScaleType scaleType)Sets the scale type Bitmap.ConfiggetDecodeConfig()Returns the bitmap configuration describes how pixels are stored. voidsetDecodeConfig(@Nullable() Bitmap.Config decodeConfig)Sets the bitmap configuration describes how pixels are stored. -
Methods inherited from class com.pubmatic.sdk.common.network.POBHttpRequest
getHeaders, getPostData, getRequestMethod, getRequestTag, getRetryBackoffMultiplier, getRetryCount, getTimeout, getUrl, setHeaders, setPostData, setRequestMethod, setRequestTag, setRetryBackoffMultiplier, setRetryCount, setTimeout, setUrl, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMaxWidth
int getMaxWidth()
Returns the maximum width of an Image
- Returns:
maximum width of an Image
-
setMaxWidth
void setMaxWidth(int maxWidth)
Sets the maximum width of an Image
- Parameters:
maxWidth- maximum width of an Image
-
getMaxHeight
int getMaxHeight()
Returns the maximum height of an Image
- Returns:
maximum height of an Image
-
setMaxHeight
void setMaxHeight(int maxHeight)
Sets the maximum height of an Image
- Parameters:
maxHeight- maximum height of an Image
-
getScaleType
@Nullable() ImageView.ScaleType getScaleType()
Returns the scale type
- Returns:
scale type
-
setScaleType
void setScaleType(@Nullable() ImageView.ScaleType scaleType)
Sets the scale type
- Parameters:
scaleType- the scale type
-
getDecodeConfig
@Nullable() Bitmap.Config getDecodeConfig()
Returns the bitmap configuration describes how pixels are stored.
- Returns:
the bitmap configuration
-
setDecodeConfig
void setDecodeConfig(@Nullable() Bitmap.Config decodeConfig)
Sets the bitmap configuration describes how pixels are stored.
- Parameters:
decodeConfig- bitmap configuration
-
-
-
-