Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Detect home button

Author
Message
7RS
11
Years of Service
User Offline
Joined: 10th May 2012
Location:
Posted: 5th Jan 2013 11:25
When the home button is pressed there is an event generated ? The game need to moved to pause screen if the home button is pressed, how to detect it ? There is a callback ?

http://www.7ravenstudios.com
https://www.facebook.com/pages/7-Raven-Studios/102567824318?ref=hl
https://www.facebook.com/groups/391126020940838/
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 5th Jan 2013 17:35
No event is generated that is capturable and there is no callback. Your app simply goes to the background.

You use the GetResumed() command to determine if you've just come back from being sent to the background. The command works fine in Android since v1076. It works in iOS since v1083 and I added the tweak for iOS for v1076.

The check needs to be done as the very first thing in the app::Loop method so that you can restore anything that needs restoring.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master

Login to post a reply

Server time is: 2024-05-06 21:54:46
Your offset time is: 2024-05-06 21:54:46