How to detect if status bar open?

i want to make an app to detect if the status bar is open by the user

Try Like This

Since you are asking for exam purpose, you can use it in clock component.

Set clock to timer always and set interval for 5sec(5000)

When clock timer
Add the above code and design the block according to your needs

it’s just not working

Show us what hat have you tried

i want when the user slides his hand to the status bar then kodular will detect it