155 virtual void shutdown() = 0;
238 static StringArray JUCE_CALLTYPE getCommandLineParameterArray();
243 static String JUCE_CALLTYPE getCommandLineParameters();
298 int appReturnValue = 0;
299 bool stillInitialising =
true;
301 struct MultipleInstanceHandler;
302 std::unique_ptr<MultipleInstanceHandler> multipleInstanceHandler;
309#if JUCE_CATCH_UNHANDLED_EXCEPTIONS || defined (DOXYGEN)
321 #define JUCE_CATCH_EXCEPTION \
322 catch (const std::exception& e) { juce::JUCEApplicationBase::sendUnhandledException (&e, __FILE__, __LINE__); } \
323 catch (...) { juce::JUCEApplicationBase::sendUnhandledException (nullptr, __FILE__, __LINE__); }
327 #define JUCE_CATCH_EXCEPTION
Holds a resizable array of primitive or copy-by-value objects.
Abstract base class for application classes.
bool isInitialising() const noexcept
Returns true if the application hasn't yet completed its initialise() method and entered the main eve...
virtual void systemRequestedQuit()=0
Called when the operating system is trying to close the application.
virtual void initialise(const String &commandLineParameters)=0
Called when the application starts.
virtual const String getApplicationName()=0
Returns the application's name.
virtual void memoryWarningReceived()
Called by the operating system to indicate that you should reduce your memory footprint.
virtual void suspended()=0
This method is called when the application is being put into background mode by the operating system.
virtual void resumed()=0
This method is called when the application is being woken from background mode by the operating syste...
virtual void anotherInstanceStarted(const String &commandLine)=0
Indicates that the user has tried to start up another instance of the app.
static JUCEApplicationBase * getInstance() noexcept
Returns the global instance of the application object that's running.
virtual const String getApplicationVersion()=0
Returns the application's version number.
static bool isStandaloneApp() noexcept
Returns true if this executable is running as an app (as opposed to being a plugin or other kind of s...
virtual void unhandledException(const std::exception *, const String &sourceFilename, int lineNumber)=0
If any unhandled exceptions make it through to the message dispatch loop, this callback will be trigg...
virtual bool moreThanOneInstanceAllowed()=0
Checks whether multiple instances of the app are allowed.
virtual void backButtonPressed()
Override this method to be informed when the back button is pressed on a device.
int getApplicationReturnValue() const noexcept
Returns the value that has been set as the application's exit code.
A special array for holding a list of strings.
#define JUCE_API
This macro is added to all JUCE public class declarations.