Skip to content

判断 Activity 上是否有 Dialog、PopWindow 等悬浮窗

Notifications You must be signed in to change notification settings

MRwangqi/FloatingWindow

Repository files navigation

判断 Activity 上面是否有浮窗(Dialog、PopWindow、系统弹窗 等)

使用

1、判断 Activity 上面是否有浮窗

 val hasFloatingWindow = FloatingWindowManager.hasFloatWindowByToken(this)

2、获取 Activity 上所有的浮窗 view

 val views = FloatingWindowManager.getFloatWindowViewByToken(this)

About

判断 Activity 上是否有 Dialog、PopWindow 等悬浮窗

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages