Is there a way to check the visibility of the status bar?

后端 未结 4 1126
鱼传尺愫
鱼传尺愫 2020-12-29 13:25

I have a service that should check periodically visibility of status bar, when some top activity is (or not) in fullscreen mode. Is it possible?

4条回答
  •  渐次进展
    2020-12-29 14:03

    Not really. If it is your activity in the foreground, your activity could tell the service if it is using a theme that hides the status bar. You have no way of determining this independently from the service though, let alone for third-party activities rather than your own.

提交回复
热议问题