Display

interface Display

显示设备接口,代表一个具体的显示设备

提供获取设备信息、配置、控制器以及执行截图、销毁等操作的方法

Author

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

Functions

Link copied to clipboard
abstract fun destroy()

销毁显示设备,释放相关资源

Link copied to clipboard
abstract fun getConfig(): Config

获取显示设备的配置对象

Link copied to clipboard
abstract fun getController(): Controller

获取显示设备的控制器

Link copied to clipboard
abstract fun getDensity(): Int

获取显示密度

Link copied to clipboard
abstract fun getHeight(): Int

获取显示高度

Link copied to clipboard
abstract fun getId(): Int

获取显示设备ID

Link copied to clipboard
abstract fun getWidth(): Int

获取显示宽度

Link copied to clipboard
abstract fun isDecodingEnabled(): Boolean

检查显示设备的解码功能是否启用

Link copied to clipboard
abstract fun isDestroyed(): Boolean

检查显示设备是否已销毁

Link copied to clipboard
abstract fun screenshot(file: File): Boolean

对显示设备进行截图并保存到指定文件

Link copied to clipboard
abstract fun setDecodingEnabled(enabled: Boolean)

设置是否启用显示设备的解码功能