更新时间:2023-09-10 12:39:46
在Android 5.0+上,使用媒体投影API获取设备屏幕的屏幕截图。请参阅此示例应用,因为此过程涉及到某种程度。
On Android 5.0+, use the media projection APIs to take a screenshot of the device screen. See this sample app, as the process is somewhat involved.
在较旧的Android设备上,不支持设备屏幕的程序化屏幕截图。
On older Android devices, there is no support for programmatic screenshots of the device screen.