-
public class DownloadedBitmapFactoryFactory class for creating instances of DownloadedBitmap.
-
-
Field Summary
Fields Modifier and Type Field Description public final static DownloadedBitmapFactoryINSTANCE
-
Method Summary
Modifier and Type Method Description final DownloadedBitmapnullBitmapWithStatus(DownloadedBitmap.Status status)Creates a DownloadedBitmap instance with a null bitmap and the provided status. final DownloadedBitmapsuccessBitmap(Bitmap bitmap, Long downloadTime, ByteArray data)Creates a DownloadedBitmap object with the specified bitmap, success status, and download time. final DownloadedBitmapsuccessBytes(Long downloadTime, ByteArray data)-
-
Method Detail
-
nullBitmapWithStatus
final DownloadedBitmap nullBitmapWithStatus(DownloadedBitmap.Status status)
Creates a DownloadedBitmap instance with a null bitmap and the provided status.
- Parameters:
status- The status indicating the result of the download operation.
-
successBitmap
final DownloadedBitmap successBitmap(Bitmap bitmap, Long downloadTime, ByteArray data)
Creates a DownloadedBitmap object with the specified bitmap, success status, and download time.
- Parameters:
bitmap- The downloaded bitmap.downloadTime- The time taken for the download operation in millis.
-
successBytes
final DownloadedBitmap successBytes(Long downloadTime, ByteArray data)
-
-
-
-