Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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