Comments (6)
Okay that works flawlessly. Thanks!! :)
from glfm.
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.
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.
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.
ah awesome! :) will try that :) then this probably closes the "issue" :) thx for an awesome library, it's so easy to use! :)
from glfm.
will close it once i got it to work!
from glfm.
Related Issues (20)
- Error `The C compiler identification is unknown`.
- Readme improvement suggestions HOT 1
- Android: Fix issue with chrome insets when rotating
- iOS: Add mouse hover support (iPadOS 13.4)
- Using glfm on Android with AIDE app HOT 1
- Keyboard Input HOT 2
- iOS: Add support for GCKeyboard on iOS 14 HOT 1
- Web: Add support for sensors (via Emscripten)
- Build the GLFM examples with Android Studio 4 HOT 1
- how about MacOS HOT 5
- iOS: Consider macOS Catalyst support
- Glfm
- Support something like UIImpactFeedbackGenerator (Device Vibrations) HOT 4
- Context/Edit Menu Support HOT 2
- Dotnet 6.0 ( wasm tool ) glfm on Webassembly
- Background flickers first few moments of the app HOT 1
- Add Support For Visual Studio
- GLFMDepthFormat24 is a confusing name for Metal HOT 1
- sorry...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glfm.