Skip to content

Instantly share code, notes, and snippets.

@yektasarioglu
Created November 30, 2020 12:03
Show Gist options
  • Select an option

  • Save yektasarioglu/541e09b2865e962ced815f6ff2f4efed to your computer and use it in GitHub Desktop.

Select an option

Save yektasarioglu/541e09b2865e962ced815f6ff2f4efed to your computer and use it in GitHub Desktop.
Releasing Analyzer resources
private fun releaseDetectionResources() {
if (analyzer != null) {
try {
analyzer!!.stop()
} catch (e: IOException) {
Log.e(TAG, "Exception is $e")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment