setDisplayId

abstract fun setDisplayId(displayId: Int)

设置窗口显示的虚拟屏幕ID

用于指定悬浮窗口在哪个虚拟屏幕上显示

Parameters

displayId

虚拟屏幕的ID标识