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

Web and WebWorks Development

Reply
Developer
Posts: 134
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C
Accepted Solution

How do I send texts to clipboard in webworks (blackberry 10)?

any API support or something I should invoke ? Thanks.
/*
WebWorks Developer
*/
Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: How do I send texts to clipboard in webworks (blackberry 10)?

There is no default JavaScript clipboard API provided by the web platform.

 

However, you could build your own custom WebWorks extension.  To do so, you would need to 

 

1) Follow the instructions in our template in Github for writing your own extension.

2) Expose methods from the Native C/C++ libclipboard API to your extension API.

3) Install your custom extension in the WebWorks SDK

4) Modify your config.xml and project to use your extension.

 

Good luck. If you do end up building something that works, please consider contributing it to the WebWorks-Community-APIs repo in Github.

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Developer
Posts: 134
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C

Re: How do I send texts to clipboard in webworks (blackberry 10)?

I'll try.
/*
WebWorks Developer
*/