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: 49
Registered: ‎03-27-2013
My Device: z10
My Carrier: Banglalink
Accepted Solution

Long press gesture sample code BB10

Is there any sample code on long press gesture or any usefull reference?

 

Thanks in advance.

Highlighted
Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

Re: Long press gesture sample code BB10

Hi,

 

Check this - https://developer.blackberry.com/cascades/reference/bb__cascades__longpresshandler.html

 

Container {
    gestureHandlers: [
        LongPressHandler {
            onLongPressed: {
                console.log("LongPress at position " + event.x + ", " + event.y)
            }
        }
    ]
}
Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro