screenshotty
screenshotty copied to clipboard
onActivityResult is deprecated
How to implement this with a new way?
you could try
private val activityResult =
registerForActivityResult(ActivityResultContracts.StartActivityForResult()) {
screenshotManager.onActivityResult(REQUEST_CODE, it.resultCode, it.data)
}
then launch it like this
activityResult.launch(intent)
Isma3ilMohamed
What is the intent?
current activity intent