FloatingWindow
Introduction: 判断 Activity 上是否有 Dialog、PopWindow 等悬浮窗
Tags:
Save-Mac-使用
1、判断 Activity 上面是否有浮窗
val hasFloatingWindow = FloatingWindowManager.hasFloatWindowByToken(this)
2、获取 Activity 上所有的浮窗 view
val views = FloatingWindowManager.getFloatWindowViewByToken(this)