QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • Home
  • QIdea
  • QTrack
Home Carbon Ads Intel XDK Copy to Clipboard

Intel XDK Copy to Clipboard

This post is a part 11 of Intel XDK Complete Tutorial post series.

Text can be programmatically copied into clipboard by just one line of code

intel.xdk.device.copyToClipboard("This is the text in clipboard");

This function only works inside event handlers. So you can’t just call it whenever you like to. For example:

document.addEventListener("intel.xdk.device.ready",function(){
    intel.xdk.device.copyToClipboard("This is the text in clipboard");
},false);

Make sure you have also added Intel XDK Device plugin in your app.

Nov 6, 2014Narayan Prusty
Facebook Timeline AlgorithmLaunch Default Browser using Intel XDK
Comments: 1
  1. a2z
    7 years ago

    PLEASE help me with this i m trying this but not working

    copyToClipboard

    i added device plugin & paste this but not working…please help

    ReplyCancel

Leave a Reply Cancel reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

Narayan Prusty

I am a software engineer specialising in Blockchain, DevOps and Go/JavaScript. This is my personal blog where I write about things that I learn and feel interesting to share.

8 years ago 1 Comment Cordova
Share this
0
GooglePlus
0
Facebook
0
Twitter
0
Linkedin
Related Articles
  • Launch Default Browser using Intel XDK
  • Vibrating Phone using Intel XDK
  • Preventing Device From Sleeping Using Intel XDK
  • Sending SMS using Intel XDK
  • Launch Browser Inside Intel XDK App
Our Sponsor
My Books

2014 - 2015 © QNimate
All tutorials MIT license