Package io.scanbot.sdk.core
Class ImageSource
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ImageSource implements Parcelable
Description of source from which the ImageRef was created.
-
-
Field Summary
Fields Modifier and Type Field Description private ImageSourceTypetypeprivate StringfilePath
-
Constructor Summary
Constructors Constructor Description ImageSource(Map<String, Object> source)ImageSource(JSONObject json)ImageSource(ImageSourceType type, String filePath)
-
Method Summary
Modifier and Type Method Description final ImageSourceTypegetType()Source type from which the ImageRef was created. final UnitsetType(ImageSourceType type)Source type from which the ImageRef was created. final StringgetFilePath()File from which the ImageRef was created. final UnitsetFilePath(String filePath)File from which the ImageRef was created. final JSONObjecttoJson(ToJsonConfiguration config)final ImageSourceclone()-
-
Constructor Detail
-
ImageSource
ImageSource(JSONObject json)
-
ImageSource
ImageSource(ImageSourceType type, String filePath)
-
-
Method Detail
-
getType
final ImageSourceType getType()
Source type from which the ImageRef was created.
-
setType
final Unit setType(ImageSourceType type)
Source type from which the ImageRef was created.
-
getFilePath
final String getFilePath()
File from which the ImageRef was created. Non-null only if the image ref was created from file.
-
setFilePath
final Unit setFilePath(String filePath)
File from which the ImageRef was created. Non-null only if the image ref was created from file.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final ImageSource clone()
-
-
-
-