GithubHelp home page GithubHelp logo

Leave app? about glfm HOT 6 CLOSED

brackeen avatar brackeen commented on August 26, 2024
Leave app?

from glfm.

Comments (6)

marcakafoddex avatar marcakafoddex commented on August 26, 2024 1

Okay that works flawlessly. Thanks!! :)

from glfm.

brackeen avatar brackeen commented on August 26, 2024

AFAIK there is no clean way to do this on either iOS or Android. Calling exit(0) might be possible. Generally though, I think the guidelines state that only users should be the ones that exit apps.

from glfm.

marcakafoddex avatar marcakafoddex commented on August 26, 2024

thx for the quick reply! maybe my question was ill formed :) i mean when the user hits BACK on Android, nothing happens in my glfm based app, which makes me assume I have to listen to it myself and "exit" the app (not necessarily terminate it, but go back to the Android main screen). Is that possible?

edit: maybe "minimize" the app is a better term for what I mean :)

from glfm.

brackeen avatar brackeen commented on August 26, 2024

Ah! ok. Perhaps this isn't documented well. Are you working with key input? If so, you will need a special case for the back button, like:

if (keyCode == GLFMKeyNavBack) {
    // Android: Return `false` (key not handled) to let the app exit
    return false;
}

from glfm.

marcakafoddex avatar marcakafoddex commented on August 26, 2024

ah awesome! :) will try that :) then this probably closes the "issue" :) thx for an awesome library, it's so easy to use! :)

from glfm.

marcakafoddex avatar marcakafoddex commented on August 26, 2024

will close it once i got it to work!

from glfm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.