01-18-2012 08:22 AM
I am trying to program a lock screen application for playbook os 2.0. For that, I need a way to stop swipe up to register since it turns my window from fullscreen to thumbnail.
I have been reading the api referance pages. The most relevant header in blackberry platform services seems to be "navigator.h" but although it has controls for swipe down event, there is no function for swipe up.
I have also studied the "screen.h", "event.h" and "bps.h" but no luck.
Input events library and gestures library references are both unhelpful too.
I am sure there is a way for this, since it already have a lockscreen, that has the functions I seek. I just can not find how it has been done.
Anybody has an idea?
Solved! Go to Solution.
01-18-2012 09:45 AM
You cannot stop swipe up and swipe left/right (i.e. you cannot prevent your app going to tumbnail at this point)
01-18-2012 09:46 AM
01-18-2012 10:35 AM
enginmanap wrote:I am sure there is a way for this, since it already have a lockscreen, that has the functions I seek. I just can not find how it has been done.
You're reaching the wrong conclusion, unfortunately. It has a lock screen, but the lock screen is likely implemented by the same thing that is monitoring the bezel gestures (the sys.navigator app) so just because it has the ability doesn't mean there's any API available to apps in general.
RIM has to provide an API to support this.
It would be a very nice feature for a number of use cases, but does have some security risks... Imagine if an app surreptitiously put up a screen that simulated the system lock screen, and a user were to unwittingly enter their password into it. Boom.... (It could be done now, probably, but a user would at least be able to do a bottom-swipe and realize that it was a fake lock screen... but not if you could lock out bezel gestures.)
Kids' games would also benefit from the ability to temporarily lock out bezel gestures, since the young ones are often a bit wild with their swiping.
I could see it being available but as a restricted permission, so the user would first have to grant the ability to the app to do this. Maybe we'll see it in future. Want to create a feature request ticket for it in Jira?
01-18-2012 03:54 PM
peter9477 wrote:I could see it being available but as a restricted permission, so the user would first have to grant the ability to the app to do this. Maybe we'll see it in future. Want to create a feature request ticket for it in Jira?
I have opened an new feature request as you suggested:
https://www.blackberry.com/jira/browse/TABLET-432
thanks.
01-18-2012 05:51 PM
I could imagine it being used as a kiosk- or party-mode. Hand ound the PB to show some photo's but stop people from nosing in your files. Or perhaps a app-lock-mode that - when you swipe up - it goes to the lock screen and you have to enter your password...
Better still would just be a Guest account with adjustable privs.