ScreenUtils

object ScreenUtils : CloseableUtils

屏幕相关工具类

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard

添加截屏权限状态改变监听

Link copied to clipboard
fun capture(destination: File): Result

截取屏幕保存到 destination 中, 不要在主线程中调用此方法

Link copied to clipboard

检查是否拥有屏幕截图权限

移除截屏权限状态改变监听器

Link copied to clipboard

请求截屏权限, 不要在主线程中调用此方法