mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added an option to execute JUCEApplication's suspend() method on an iOS background task to give you extra time to save your app's state
This commit is contained in:
parent
a839fa24b3
commit
2bec815bb3
2 changed files with 42 additions and 2 deletions
|
|
@ -57,6 +57,15 @@
|
|||
|
||||
#include <juce_core/juce_core.h>
|
||||
|
||||
//==============================================================================
|
||||
/** Config: JUCE_EXECUTE_APP_SUSPEND_ON_IOS_BACKGROUND_TASK
|
||||
Will execute your application's suspend method on an iOS background task, giving
|
||||
you extra time to save your applications state.
|
||||
*/
|
||||
#ifndef JUCE_EXECUTE_APP_SUSPEND_ON_BACKGROUND_TASK
|
||||
#define JUCE_EXECUTE_APP_SUSPEND_ON_BACKGROUND_TASK 0
|
||||
#endif
|
||||
|
||||
#if JUCE_EVENTS_INCLUDE_WINRT_WRAPPER && JUCE_WINDOWS
|
||||
#include <hstring.h>
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue