Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Contributor
Grahamfluet
Posts: 12
Registered: ‎10-26-2010
My Device: Not Specified

Application Bezel gestures?

So, flicking left/right on the sides of the bezel switches applications, and flicking upfrom the bottom brings up the home screen.

 

Can we include a application gesture, so flicking down from the top will bring up a web browser's url field/etc?

Please use plain text.
Developer
taylortbb
Posts: 137
Registered: ‎10-26-2010
My Device: Bold 9900 + PlayBook
My Carrier: Rogers

Re: Application Bezel gestures?

The class qnx.system.QNXApplication has a swipeStart event you can add a handler for. This event is received for swipes from the top bezel.

--------
Taylor Byrnes
Please use plain text.
BlackBerry Development Advisor (Retired)
pbhattacherjee
Posts: 33
Registered: ‎08-07-2009
My Device: Not Specified

Re: Application Bezel gestures?

Here's an example of how to do:

 

 

  var app:QNXApplication = QNXApplication.qnxApplication;
  app.addEventListener(QNXApplicationEvent.SWIPE_DOWN, swipeDown);
}
private function swipeDown(event:QNXApplicationEvent):void{
//put in your code here

 

}

Please use plain text.
BlackBerry Technical Advisor (Retired)
sylvester
Posts: 5
Registered: ‎11-17-2010
My Device: Not Specified

Re: Application Bezel gestures?

Any other qnx gesture events supported in this current release Prosanta? Didn't have much luck so far with in-application gestures like pinch-zoom, rotate, pan, swipe using AS3's TransformGestureEvent.GESTURE_ZOOM, _ROTATE, _PAN, _SWIPE

Please use plain text.
BlackBerry Development Advisor (Retired)
pbhattacherjee
Posts: 33
Registered: ‎08-07-2009
My Device: Not Specified

Re: Application Bezel gestures?

Not yet in this build, but they are coming, the ones that we will have in the device include:

 

  • Swipe
  • Rotate
  • Pinch and Zoom
  • Pan
  • Press and Tap
And these will follow the standard AIR API's for gestures.
Prosanta
Please use plain text.