Search code examples
androidhaxeopenfl

How to exit android app?


In OpenFL, I need to exit my Android app. Is there a way to do so using openFL APIs?

I've found an old thread here http://www.openfl.org/archive/community/general-discussion/exit-an-app/

but it seems Lib.exit(); is no more there? As I didn't find exit method in Lib

Any idea?


Solution

  • The preferred method now (as of OpenFL 3) is:

    openfl.system.System.exit(0);