Package io.scanbot.sdk.core
Class ImageProfile
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ImageProfile implements Parcelable
ImageRef profile part specific to image information.
-
-
Field Summary
Fields Modifier and Type Field Description private Integer
bitmapMemoryConsumption
private Integer
hibernationMemoryConsumption
-
Constructor Summary
Constructors Constructor Description ImageProfile(Map<String, Object> source)
ImageProfile(JSONObject json)
ImageProfile(Integer bitmapMemoryConsumption, Integer hibernationMemoryConsumption)
-
Method Summary
Modifier and Type Method Description final Integer
getBitmapMemoryConsumption()
Memory consumption of a memory-backed bitmap. final Unit
setBitmapMemoryConsumption(Integer bitmapMemoryConsumption)
Memory consumption of a memory-backed bitmap. final Integer
getHibernationMemoryConsumption()
Memory consumption of the hibernation buffer. final Unit
setHibernationMemoryConsumption(Integer hibernationMemoryConsumption)
Memory consumption of the hibernation buffer. final JSONObject
toJson(ToJsonConfiguration config)
final ImageProfile
clone()
final static ImageProfile
default()
-
-
-
Method Detail
-
getBitmapMemoryConsumption
final Integer getBitmapMemoryConsumption()
Memory consumption of a memory-backed bitmap. Zero, if the image is hibernating.
Default is 0
-
setBitmapMemoryConsumption
final Unit setBitmapMemoryConsumption(Integer bitmapMemoryConsumption)
Memory consumption of a memory-backed bitmap. Zero, if the image is hibernating.
Default is 0
-
getHibernationMemoryConsumption
final Integer getHibernationMemoryConsumption()
Memory consumption of the hibernation buffer. Zero, if the image is not hibernating, or is hibernated to a file.
Default is 0
-
setHibernationMemoryConsumption
final Unit setHibernationMemoryConsumption(Integer hibernationMemoryConsumption)
Memory consumption of the hibernation buffer. Zero, if the image is not hibernating, or is hibernated to a file.
Default is 0
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final ImageProfile clone()
-
default
final static ImageProfile default()
-
-