Is there any way to detect where a carplay app is coming from background to foreground?

I just need to know how to detect when a openend Carplay app, is back from background to reload data.

Is there any way to detect it, like in iOS apps?

Thanks in advance ;)

I thing using the associated SceneDelegate life cycle methods. for example     **func sceneWillEnterForeground(_ scene: UIScene) **,     **func sceneDidBecomeActive(_ scene: UIScene) ** and others

Thank's a lot ;), using your idea works perfect

    func sceneWillEnterForeground(_ templateApplicationScene: UIScene) { // execute code     }

Is there any way to detect where a carplay app is coming from background to foreground?
 
 
Q