How can capture event application pause

I make an app for android, I need to do some thing when the app pause ( user minimize, or kills app ) how can I get this event. ?
P/S This is like OnApplicationPause of unity.

I can ask Engineering. What version of Cocos Creator are you using?

I use cocos creator 3.1.2
Thanks for your reply !

You can use 'game.on(Game.EVENT_HIDE, ()=>{ }) ’ to get app pause event.

Thank you for your information !

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.