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 ImageSourceType
type
private String
filePath
-
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 ImageSourceType
getType()
Source type from which the ImageRef was created. final Unit
setType(ImageSourceType type)
Source type from which the ImageRef was created. final String
getFilePath()
File from which the ImageRef was created. final Unit
setFilePath(String filePath)
File from which the ImageRef was created. final JSONObject
toJson(ToJsonConfiguration config)
final ImageSource
clone()
-
-
-
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()
-
-