This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.os.SystemClock; | |
import android.view.View; | |
import android.view.View.OnClickListener; | |
/** | |
* A simple double-click listener | |
* Usage: | |
* // Scenario 1: Setting double click listener for myView | |
* myView.setOnClickListener(new DoubleClickListener() { | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Classifier { | |
fun recognizeImage(bitmap: Bitmap): Result | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class Result(val result: String, val confidence: Float) |