OLD | NEW |
1 <div id="pageData-name" class="pageData">Connect Apps with Web Intents</div> | 1 <h1>Connect Apps with Web Intents</h1> |
2 <div id="pageData-showTOC" class="pageData">true</div> | 2 |
3 | 3 |
4 <p> | 4 <p> |
5 <a href="http://webintents.org/">Web Intents</a> | 5 <a href="http://webintents.org/">Web Intents</a> |
6 allow your application to quickly communicate | 6 allow your application to quickly communicate |
7 with other applications on the user's system and inside their browser. | 7 with other applications on the user's system and inside their browser. |
8 Your application can register to handle specific user actions | 8 Your application can register to handle specific user actions |
9 such as editing images via the <code>manifest.json</code>; | 9 such as editing images via the <code>manifest.json</code>; |
10 your application can also invoke actions to be handled by other applications. | 10 your application can also invoke actions to be handled by other applications. |
11 </p> | 11 </p> |
12 | 12 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 // App Launched | 215 // App Launched |
216 console.log(intent.action); | 216 console.log(intent.action); |
217 console.log(intent.type); | 217 console.log(intent.type); |
218 var data = intent.data; | 218 var data = intent.data; |
219 // Do something with the data; | 219 // Do something with the data; |
220 | 220 |
221 intent.postResult(newData); | 221 intent.postResult(newData); |
222 }); | 222 }); |
223 </pre> | 223 </pre> |
224 | 224 |
225 <p class="backtotop"><a href="#top">Back to top</a></p> | 225 <p class="backtotop"><a href="#top">Back to top</a></p> |
OLD | NEW |