mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed broken back button behaviour on Android and updated JUCEApplicationBase::backButtonPressed() to return a bool indicating whether the back event has been handled or not to override this behaviour
This commit is contained in:
parent
f1d3ac227f
commit
937991cc83
5 changed files with 54 additions and 5 deletions
|
|
@ -206,10 +206,17 @@ public:
|
|||
virtual void memoryWarningReceived() { jassertfalse; }
|
||||
|
||||
//==============================================================================
|
||||
/** Override this method to be informed when the back button is pressed on a device.
|
||||
/** This will be called when the back button on a device is pressed. The return value
|
||||
should be used to indicate whether the back button event has been handled by
|
||||
the application, for example if you want to implement custom navigation instead
|
||||
of the standard behaviour on Android.
|
||||
|
||||
This is currently only implemented on Android devices.
|
||||
|
||||
@returns true if the event has been handled, or false if the default OS
|
||||
behaviour should happen
|
||||
*/
|
||||
virtual void backButtonPressed() {}
|
||||
virtual bool backButtonPressed() { return false; }
|
||||
|
||||
//==============================================================================
|
||||
/** Signals that the main message loop should stop and the application should terminate.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue