Created
May 1, 2021 20:23
-
-
Save k0siara/93c2c480ad3ff759e275136669ea81ef to your computer and use it in GitHub Desktop.
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
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