Skip to content

Instantly share code, notes, and snippets.

@AliAzaz
Last active September 14, 2019 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AliAzaz/5314d6cc4697701d9e6bdc321ca23f74 to your computer and use it in GitHub Desktop.
Save AliAzaz/5314d6cc4697701d9e6bdc321ca23f74 to your computer and use it in GitHub Desktop.
View class of text recognizer and label in image using Firebase ML Kit
interface MainView {
interface UIView {
fun setTextView(analyzedText: String)
fun setBitmapOnImageView(bitmap: Bitmap)
fun setToast(message: String)
fun showDialog()
fun dismissDialog()
}
interface PresenterView {
fun grantPermission(): Boolean
fun onGettingBitmapForImageView(bitmap: Bitmap)
fun onCaptureClicked(CAMERA_REQUEST: Int)
fun onGettingBitmapURIForCrop(bitmapURI: Uri)
}
interface ModelView
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment