Detect blue status light in ios software

When google map uses a location service and we go to the background, one status bar appears with a blue flashing background with the information that "google map is using your location".

enter image description here

Now when I open an app (or any other app) you always see a blue flashing bar.

My question is, can I detect that the status bar with blue flashing information is active now or not programmatically?

+3


source to share


1 answer


UIApplicationDelegate has these 2 methods

- (void)application:(UIApplication *)application willChangeStatusBarFrame:(CGRect)newStatusBarFrame;   // in screen coordinates
- (void)application:(UIApplication *)application didChangeStatusBarFrame:(CGRect)oldStatusBarFrame;

      

You can refer to this link for more details.



Detect if user has a call / Any activity status bar

Hope this helps you.
Thank.

+2


source







All Articles