-
public final class BitmapLoadingWorkerJob.Result
-
-
Field Summary
Fields Modifier and Type Field Description private final UriuriContentprivate final Bitmapbitmapprivate final IntegerloadSampleSizeprivate final IntegerdegreesRotatedprivate BooleanflipHorizontallyprivate BooleanflipVerticallyprivate final Exceptionerror
-
Method Summary
Modifier and Type Method Description final UrigetUriContent()The Android URI of the image to load. final BitmapgetBitmap()The loaded bitmap final IntegergetLoadSampleSize()The sample size used to load the given bitmap final IntegergetDegreesRotated()The degrees the image was rotated final BooleangetFlipHorizontally()If the image was flipped horizontally final UnitsetFlipHorizontally(Boolean flipHorizontally)If the image was flipped horizontally final BooleangetFlipVertically()If the image was flipped vertically final UnitsetFlipVertically(Boolean flipVertically)If the image was flipped vertically final ExceptiongetError()The error that occurred during async bitmap loading. final StringgetUriFilePath(Context context, Boolean uniqueName)The file path of the image to load -
-
Method Detail
-
getUriContent
final Uri getUriContent()
The Android URI of the image to load. NOT a file path, for it use getUriFilePath
-
getLoadSampleSize
final Integer getLoadSampleSize()
The sample size used to load the given bitmap
-
getDegreesRotated
final Integer getDegreesRotated()
The degrees the image was rotated
-
getFlipHorizontally
final Boolean getFlipHorizontally()
If the image was flipped horizontally
-
setFlipHorizontally
final Unit setFlipHorizontally(Boolean flipHorizontally)
If the image was flipped horizontally
-
getFlipVertically
final Boolean getFlipVertically()
If the image was flipped vertically
-
setFlipVertically
final Unit setFlipVertically(Boolean flipVertically)
If the image was flipped vertically
-
getUriFilePath
final String getUriFilePath(Context context, Boolean uniqueName)
The file path of the image to load
- Parameters:
context- used to access Android APIs, like content resolve, it is your activity/fragment/widget.uniqueName- If true, make each image cropped have a different file name, this could cause memory issues, use wisely.
-
-
-
-