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

Native Development

Reply
Developer
Posts: 243
Registered: ‎07-22-2011
My Device: BlackBerry Z10
My Carrier: AirTel

Need Touch swiping methods

Hi all,

 

I need swipe handlers in cascades to customise the operations, i mean in java we r using Touch.Gesture (swipe east ,swipe west,swipe north and swipe south) like that i have to override those methods.

 

I found below link about swipeDown but it is not working in my app i need same like swipeUp also, can any one know abt this please give me any link or sample code.

 

https://developer.blackberry.com/cascades/reference/libbb/application_swipedown.qml.html

 

Thanks inadvance,

 

 

Regards,

Lakshman K

----------------------------------------------------------
Feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Need Touch swiping methods

This signal is used to capture gesture which is used for showing Application menu. Swipe in opposite direction is used by the system for showing active apps list and I think it can't be captured.

 

Do you need to capture swipes at the middle of screen? This probably can be implemented by subscribing to touch events:

 

https://developer.blackberry.com/cascades/reference/bb__cascades__touchevent.html

 

Also there's GestureHandler class which can handle pinch gesture:

 

https://developer.blackberry.com/cascades/reference/bb__cascades__gesturehandler.html

 

 


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 243
Registered: ‎07-22-2011
My Device: BlackBerry Z10
My Carrier: AirTel

Re: Need Touch swiping methods

Hi,

Thanks for your reply, but what i need exactily, if some bunch of images loading  with some dynamic data(ex description  etc..), it means if i swipe left or top of one image then nex image will come with some updated data like that.

in my app i am using List view and i am not able to found that event.

Thanks in advance,

 

Regards,

Lakshman K

----------------------------------------------------------
Feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.