That's the thing. There are no APIs, which include events. We never get any events that indicate that a swipe up gesture has been performed, so we can't capture it.
---Spends time in #blackberrydev on freenode (IRC)---- Three simple rules: 1. Please use the search bar before making new posts. 2. "Like" posts that you find helpful. 3. If a solution has been found for your post, mark it as solved. --I code too much. Well, too bad.
What rcmaniac25 says is true, we can't directly see swipe up or side-swipe bezel gestures.
What we can do, however, is listen for changes in our window state and some related things, so it's possible to infer that your app has been minimized or that the user swiped to another app.
I don't know offhand where those are in the NDK, but look for events relating to "window state" and maybe "power mode", and/or "active" and "inactive" and maybe standby states.
You don't know for sure what's happened when you get those... for example if the user uses the "peek" gesture in the top left/right corners, it's very likely the same events that your app will get as an indirect result as it would if the user did a bottom swipe.
And then there's the problem of not being able to do anything to prevent it.
Note how an app like Angry Birds will immediately pause itself if you minimize it or "peek". It's watching for those events.