CaptureModel

object CaptureModel

Data model that stores all relevant information about the last capture process.

Accessed through CaptureModel.

Functions

clear
Link copied to clipboard
fun clear()

Resets all properties to null. Called at the start of a new capture process.

getCameraImage
Link copied to clipboard
fun getCameraImage(): Bitmap?
getCroppedScreenshot
Link copied to clipboard
fun getCroppedScreenshot(): Bitmap?
getFullScreenshot
Link copied to clipboard
fun getFullScreenshot(): Bitmap?
getMatchID
Link copied to clipboard
fun getMatchID(): String?
getServerURL
Link copied to clipboard
fun getServerURL(): String?
setCameraImage
Link copied to clipboard
fun setCameraImage(cameraImage: Bitmap): Bitmap?
setCroppedScreenshot
Link copied to clipboard
fun setCroppedScreenshot(croppedScreenshot: Bitmap?): Bitmap?
setFullScreenshot
Link copied to clipboard
fun setFullScreenshot(fullScreenshot: Bitmap?): Bitmap?
setMatchID
Link copied to clipboard
fun setMatchID(matchID: String): String?
setServerURL
Link copied to clipboard
fun setServerURL(serverURL: String): String?

Properties

cameraImage
Link copied to clipboard
private var cameraImage: Bitmap? = null

The photo taken by the camera, sent to the server for matching.

croppedScreenshot
Link copied to clipboard
private var croppedScreenshot: Bitmap? = null

The cropped screenshot returned by the server as a result of the matching process.

fullScreenshot
Link copied to clipboard
private var fullScreenshot: Bitmap? = null

The full screenshot returned by the server as a result of the matching process. This is null until the user requests the full screenshot in the ResultsActivity.

matchID
Link copied to clipboard
private var matchID: String? = null

The ID of the matching process, as returned by the server.

serverURL
Link copied to clipboard
private var serverURL: String? = null

The server url, where the cameraImage has been sent to.