Skip to content

Instantly share code, notes, and snippets.

@k0siara
Created May 1, 2021 20:23
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 k0siara/93c2c480ad3ff759e275136669ea81ef to your computer and use it in GitHub Desktop.
Save k0siara/93c2c480ad3ff759e275136669ea81ef to your computer and use it in GitHub Desktop.
class MyScreenCaptureProcessor : BasicScreenCaptureProcessor() {
init {
this.mDefaultScreenshotPath = File(
File(
getExternalStoragePublicDirectory(DIRECTORY_PICTURES),
"${BuildConfig.APPLICATION_ID}/${BuildConfig.BUILD_TYPE}"
).absolutePath,
SCREENSHOTS_FOLDER_NAME
)
}
override fun getFilename(prefix: String): String = prefix
companion object {
const val SCREENSHOTS_FOLDER_NAME = "screenshots"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment