I've been trying to research for days now on how I can develop an Android application written in Kotlin that will take a screenshot of anything that is on the device's screen that is external from the application that I am developing. The only stuff I can find are tutorials and libraries that will take a screenshot of the application activity. That's not what I want. So, basically the screenshot from my app should have the same result as if the user pressed and held down the power and volume down buttons to take a screenshot. My idea with this is to have my application create a local notification channel, and then the user can pull down their notification panel, and press the action button "Take Screenshot" on my app's notification to take a picture/scan whatever is on their device's screen. Maybe I am not using the right keywords when researching the internet. What keywords should I be using to look this up? I appreciate the help! Thanks!
Added Note: I am not interested in rooting my device to accomplish this task.