cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1745411 [14/26] - in /cordova/site/public: ./ announcements/2016/04/27/ blog/ docs/de/3.1.0/cordova/contacts/ContactField/ docs/de/3.1.0/cordova/media/ docs/de/3.1.0/cordova/notification/ docs/en/1.5.0/phonegap/contacts/ContactField/ docs/...
Date Tue, 24 May 2016 23:29:27 GMT
Modified: cordova/site/public/docs/en/dev/reference/cordova-plugin-inappbrowser/index.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/dev/reference/cordova-plugin-inappbrowser/index.html?rev=1745411&r1=1745410&r2=1745411&view=diff
==============================================================================
--- cordova/site/public/docs/en/dev/reference/cordova-plugin-inappbrowser/index.html (original)
+++ cordova/site/public/docs/en/dev/reference/cordova-plugin-inappbrowser/index.html Tue May 24 23:29:23 2016
@@ -6,12 +6,12 @@
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <meta name="format-detection" content="telephone=no">
     <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
-    <meta name="description" content="Open an in-app browser window. ">
+    <meta name="description" content=" ">
 
     <title>
         
             
-                Inappbrowser - Apache Cordova
+                cordova-plugin-inappbrowser - Apache Cordova
             
         
     </title>
@@ -732,7 +732,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-battery-status/index.html">
-                Battery Status
+                cordova-plugin-battery-status
             </a>
             
         
@@ -747,7 +747,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-camera/index.html">
-                Camera
+                cordova-plugin-camera
             </a>
             
         
@@ -762,7 +762,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-console/index.html">
-                Console
+                cordova-plugin-console
             </a>
             
         
@@ -777,7 +777,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-contacts/index.html">
-                Contacts
+                cordova-plugin-contacts
             </a>
             
         
@@ -792,7 +792,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-device/index.html">
-                Device
+                cordova-plugin-device
             </a>
             
         
@@ -807,7 +807,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-device-motion/index.html">
-                Device Motion
+                cordova-plugin-device-motion
             </a>
             
         
@@ -822,7 +822,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-device-orientation/index.html">
-                Device Orientation
+                cordova-plugin-device-orientation
             </a>
             
         
@@ -837,7 +837,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-dialogs/index.html">
-                Dialogs
+                cordova-plugin-dialogs
             </a>
             
         
@@ -852,7 +852,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-file/index.html">
-                File
+                cordova-plugin-file
             </a>
             
         
@@ -867,7 +867,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-file-transfer/index.html">
-                File Transfer
+                cordova-plugin-file-transfer
             </a>
             
         
@@ -882,7 +882,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-geolocation/index.html">
-                Geolocation
+                cordova-plugin-geolocation
             </a>
             
         
@@ -897,7 +897,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-globalization/index.html">
-                Globalization
+                cordova-plugin-globalization
             </a>
             
         
@@ -912,7 +912,7 @@
     <li>
         
             <a class="this-page" href="../../reference/cordova-plugin-inappbrowser/index.html">
-                Inappbrowser
+                cordova-plugin-inappbrowser
             </a>
             
                 <span class="entry-highlight"></span>
@@ -929,7 +929,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-media/index.html">
-                Media
+                cordova-plugin-media
             </a>
             
         
@@ -944,7 +944,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-media-capture/index.html">
-                Media Capture
+                cordova-plugin-media-capture
             </a>
             
         
@@ -959,7 +959,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-network-information/index.html">
-                Network Information
+                cordova-plugin-network-information
             </a>
             
         
@@ -974,7 +974,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-splashscreen/index.html">
-                Splashscreen
+                cordova-plugin-splashscreen
             </a>
             
         
@@ -989,7 +989,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-vibration/index.html">
-                Vibration
+                cordova-plugin-vibration
             </a>
             
         
@@ -1004,7 +1004,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-statusbar/index.html">
-                Statusbar
+                cordova-plugin-statusbar
             </a>
             
         
@@ -1019,7 +1019,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-whitelist/index.html">
-                Whitelist
+                cordova-plugin-whitelist
             </a>
             
         
@@ -1034,7 +1034,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-legacy-whitelist/index.html">
-                Legacy Whitelist
+                cordova-plugin-legacy-whitelist
             </a>
             
         
@@ -1388,7 +1388,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-battery-status/index.html">
-        Battery Status
+        cordova-plugin-battery-status
     </a>
 </li>
 
@@ -1397,7 +1397,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-camera/index.html">
-        Camera
+        cordova-plugin-camera
     </a>
 </li>
 
@@ -1406,7 +1406,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-console/index.html">
-        Console
+        cordova-plugin-console
     </a>
 </li>
 
@@ -1415,7 +1415,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-contacts/index.html">
-        Contacts
+        cordova-plugin-contacts
     </a>
 </li>
 
@@ -1424,7 +1424,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-device/index.html">
-        Device
+        cordova-plugin-device
     </a>
 </li>
 
@@ -1433,7 +1433,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-device-motion/index.html">
-        Device Motion
+        cordova-plugin-device-motion
     </a>
 </li>
 
@@ -1442,7 +1442,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-device-orientation/index.html">
-        Device Orientation
+        cordova-plugin-device-orientation
     </a>
 </li>
 
@@ -1451,7 +1451,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-dialogs/index.html">
-        Dialogs
+        cordova-plugin-dialogs
     </a>
 </li>
 
@@ -1460,7 +1460,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-file/index.html">
-        File
+        cordova-plugin-file
     </a>
 </li>
 
@@ -1469,7 +1469,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-file-transfer/index.html">
-        File Transfer
+        cordova-plugin-file-transfer
     </a>
 </li>
 
@@ -1478,7 +1478,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-geolocation/index.html">
-        Geolocation
+        cordova-plugin-geolocation
     </a>
 </li>
 
@@ -1487,7 +1487,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-globalization/index.html">
-        Globalization
+        cordova-plugin-globalization
     </a>
 </li>
 
@@ -1496,7 +1496,7 @@
 
 <li>
     <a class="this-page" href="../../reference/cordova-plugin-inappbrowser/index.html">
-        Inappbrowser
+        cordova-plugin-inappbrowser
     </a>
 </li>
 
@@ -1505,7 +1505,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-media/index.html">
-        Media
+        cordova-plugin-media
     </a>
 </li>
 
@@ -1514,7 +1514,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-media-capture/index.html">
-        Media Capture
+        cordova-plugin-media-capture
     </a>
 </li>
 
@@ -1523,7 +1523,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-network-information/index.html">
-        Network Information
+        cordova-plugin-network-information
     </a>
 </li>
 
@@ -1532,7 +1532,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-splashscreen/index.html">
-        Splashscreen
+        cordova-plugin-splashscreen
     </a>
 </li>
 
@@ -1541,7 +1541,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-vibration/index.html">
-        Vibration
+        cordova-plugin-vibration
     </a>
 </li>
 
@@ -1550,7 +1550,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-statusbar/index.html">
-        Statusbar
+        cordova-plugin-statusbar
     </a>
 </li>
 
@@ -1559,7 +1559,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-whitelist/index.html">
-        Whitelist
+        cordova-plugin-whitelist
     </a>
 </li>
 
@@ -1568,7 +1568,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-legacy-whitelist/index.html">
-        Legacy Whitelist
+        cordova-plugin-legacy-whitelist
     </a>
 </li>
 
@@ -2892,76 +2892,6 @@ opened with <code>target=&#39;_blank&#39
 <li><p><strong>callback</strong>: the function that executes when the event fires. The function is passed an <code>InAppBrowserEvent</code> object as a parameter.</p></li>
 </ul>
 
-<h2>Example</h2>
-<div class="highlight"><pre><code class="language-javascript" data-lang="javascript">
-<span class="kd">var</span> <span class="nx">inAppBrowserRef</span> <span class="o">=</span> <span class="kc">undefined</span><span class="p">;</span>
-
-<span class="kd">function</span> <span class="nx">showHelp</span><span class="p">(</span><span class="nx">url</span><span class="p">)</span> <span class="p">{</span>
-
-    <span class="kd">var</span> <span class="nx">target</span> <span class="o">=</span> <span class="s2">"_blank"</span><span class="p">;</span>
-
-    <span class="kd">var</span> <span class="nx">options</span> <span class="o">=</span> <span class="s2">"location=yes,hidden=yes"</span><span class="p">;</span>
-
-    <span class="nx">inAppBrowserRef</span> <span class="o">=</span> <span class="nx">cordova</span><span class="p">.</span><span class="nx">InAppBrowser</span><span class="p">.</span><span class="nx">open</span><span class="p">(</span><span class="nx">url</span><span class="p">,</span> <span class="nx">target</span><span class="p">,</span> <span class="nx">options</span><span class="p">);</span>
-
-    <span class="kd">with</span> <span class="p">(</span><span class="nx">inAppBrowserRef</span><span class="p">)</span> <span class="p">{</span>
-
-        <span class="nx">addEventListener</span><span class="p">(</span><span class="s1">'loadstart'</span><span class="p">,</span> <span class="nx">loadStartCallBack</span><span class="p">);</span>
-
-        <span class="nx">addEventListener</span><span class="p">(</span><span class="s1">'loadstop'</span><span class="p">,</span> <span class="nx">loadStopCallBack</span><span class="p">);</span>
-
-        <span class="nx">addEventListener</span><span class="p">(</span><span class="s1">'loaderror'</span><span class="p">,</span> <span class="nx">loadErrorCallBack</span><span class="p">);</span>
-    <span class="p">}</span>
-
-<span class="p">}</span>
-
-<span class="kd">function</span> <span class="nx">loadStartCallBack</span><span class="p">()</span> <span class="p">{</span>
-
-    <span class="nx">$</span><span class="p">(</span><span class="s1">'#status-message'</span><span class="p">).</span><span class="nx">text</span><span class="p">(</span><span class="s2">"loading please wait ..."</span><span class="p">);</span>
-
-<span class="p">}</span>
-
-<span class="kd">function</span> <span class="nx">loadStopCallBack</span><span class="p">()</span> <span class="p">{</span>
-
-    <span class="k">if</span> <span class="p">(</span><span class="nx">inAppBrowserRef</span> <span class="o">!=</span> <span class="kc">undefined</span><span class="p">)</span> <span class="p">{</span>
-
-        <span class="nx">inAppBrowserRef</span><span class="p">.</span><span class="nx">insertCSS</span><span class="p">({</span> <span class="na">code</span><span class="p">:</span> <span class="s2">"body{font-size: 25px;"</span> <span class="p">});</span>
-
-        <span class="nx">$</span><span class="p">(</span><span class="s1">'#status-message'</span><span class="p">).</span><span class="nx">text</span><span class="p">(</span><span class="s2">""</span><span class="p">);</span>
-
-        <span class="nx">inAppBrowserRef</span><span class="p">.</span><span class="nx">show</span><span class="p">();</span>
-    <span class="p">}</span>
-
-<span class="p">}</span>
-
-<span class="kd">function</span> <span class="nx">loadErrorCallBack</span><span class="p">(</span><span class="nx">params</span><span class="p">)</span> <span class="p">{</span>
-
-    <span class="nx">$</span><span class="p">(</span><span class="s1">'#status-message'</span><span class="p">).</span><span class="nx">text</span><span class="p">(</span><span class="s2">""</span><span class="p">);</span>
-
-    <span class="kd">var</span> <span class="nx">scriptErrorMesssage</span> <span class="o">=</span>
-       <span class="s2">"alert('Sorry we cannot open that page. Message from the server is : "</span>
-       <span class="o">+</span> <span class="nx">params</span><span class="p">.</span><span class="nx">message</span> <span class="o">+</span> <span class="s2">"');"</span>
-
-    <span class="nx">inAppBrowserRef</span><span class="p">.</span><span class="nx">executeScript</span><span class="p">({</span> <span class="na">code</span><span class="p">:</span> <span class="nx">scriptErrorMesssage</span> <span class="p">},</span> <span class="nx">executeScriptCallBack</span><span class="p">);</span>
-
-    <span class="nx">inAppBrowserRef</span><span class="p">.</span><span class="nx">close</span><span class="p">();</span>
-
-    <span class="nx">inAppBrowserRef</span> <span class="o">=</span> <span class="kc">undefined</span><span class="p">;</span>
-
-<span class="p">}</span>
-
-<span class="kd">function</span> <span class="nx">executeScriptCallBack</span><span class="p">(</span><span class="nx">params</span><span class="p">)</span> <span class="p">{</span>
-
-    <span class="k">if</span> <span class="p">(</span><span class="nx">params</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">==</span> <span class="kc">null</span><span class="p">)</span> <span class="p">{</span>
-
-        <span class="nx">$</span><span class="p">(</span><span class="s1">'#status-message'</span><span class="p">).</span><span class="nx">text</span><span class="p">(</span>
-           <span class="s2">"Sorry we couldn't open that page. Message from the server is : '"</span>
-           <span class="o">+</span> <span class="nx">params</span><span class="p">.</span><span class="nx">message</span> <span class="o">+</span> <span class="s2">"'"</span><span class="p">);</span>
-    <span class="p">}</span>
-
-<span class="p">}</span>
-
-</code></pre></div>
 <h3>InAppBrowserEvent Properties</h3>
 
 <ul>
@@ -3166,150 +3096,6 @@ ref.addEventListener('loadstop', functio
     ref.insertCSS({file: "mystyles.css"});
 });
 </code></pre></div>
-<p>__</p>
-
-<h2><a id="sample"></a>Sample: Show help pages with an InAppBrowser</h2>
-
-<p>You can use this plugin to show helpful documentation pages within your app. Users can view online help documents and then close them without leaving the app.</p>
-
-<p>Here&#39;s a few snippets that show how you do this.</p>
-
-<ul>
-<li><a href="#give">Give users a way to ask for help</a>.</li>
-<li><a href="#load">Load a help page</a>.</li>
-<li><a href="#let">Let users know that you&#39;re getting their page ready</a>.</li>
-<li><a href="#show">Show the help page</a>.</li>
-<li><a href="#handle">Handle page errors</a>.</li>
-</ul>
-
-<h3><a id="give"></a>Give users a way to ask for help</h3>
-
-<p>There&#39;s lots of ways to do this in your app. A drop down list is a simple way to do that.</p>
-<div class="highlight"><pre><code class="language-html" data-lang="html">
-<span class="nt">&lt;select</span> <span class="na">id=</span><span class="s">"help-select"</span><span class="nt">&gt;</span>
-    <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"default"</span><span class="nt">&gt;</span>Need help?<span class="nt">&lt;/option&gt;</span>
-    <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"article"</span><span class="nt">&gt;</span>Show me a helpful article<span class="nt">&lt;/option&gt;</span>
-    <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"video"</span><span class="nt">&gt;</span>Show me a helpful video<span class="nt">&lt;/option&gt;</span>
-    <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"search"</span><span class="nt">&gt;</span>Search for other topics<span class="nt">&lt;/option&gt;</span>
-<span class="nt">&lt;/select&gt;</span>
-
-</code></pre></div>
-<p>Gather the users choice in the <code>onDeviceReady</code> function of the page and then send an appropriate URL to a helper function in some shared library file. Our helper function is named <code>showHelp()</code> and we&#39;ll write that function next.</p>
-<div class="highlight"><pre><code class="language-javascript" data-lang="javascript">
-<span class="nx">$</span><span class="p">(</span><span class="s1">'#help-select'</span><span class="p">).</span><span class="nx">on</span><span class="p">(</span><span class="s1">'change'</span><span class="p">,</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>
-
-    <span class="kd">var</span> <span class="nx">url</span><span class="p">;</span>
-
-    <span class="k">switch</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
-
-        <span class="k">case</span> <span class="s2">"article"</span><span class="err">:</span>
-            <span class="nx">url</span> <span class="o">=</span> <span class="s2">"https://cordova.apache.org/docs/en/latest/"</span>
-                        <span class="o">+</span> <span class="s2">"reference/cordova-plugin-inappbrowser/index.html"</span><span class="p">;</span>
-            <span class="k">break</span><span class="p">;</span>
-
-        <span class="k">case</span> <span class="s2">"video"</span><span class="err">:</span>
-            <span class="nx">url</span> <span class="o">=</span> <span class="s2">"https://youtu.be/F-GlVrTaeH0"</span><span class="p">;</span>
-            <span class="k">break</span><span class="p">;</span>
-
-        <span class="k">case</span> <span class="s2">"search"</span><span class="err">:</span>
-            <span class="nx">url</span> <span class="o">=</span> <span class="s2">"https://www.google.com/#q=inAppBrowser+plugin"</span><span class="p">;</span>
-            <span class="k">break</span><span class="p">;</span>
-    <span class="p">}</span>
-
-    <span class="nx">showHelp</span><span class="p">(</span><span class="nx">url</span><span class="p">);</span>
-
-<span class="p">});</span>
-
-</code></pre></div>
-<h3><a id="load"></a>Load a help page</h3>
-
-<p>We&#39;ll use the <code>open</code> function to load the help page. We&#39;re setting the <code>hidden</code> property to <code>yes</code> so that we can show the browser only after the page content has loaded. That way, users don&#39;t see a blank browser while they wait for content to appear. When the <code>loadstop</code> event is raised, we&#39;ll know when the content has loaded. We&#39;ll handle that event shortly.</p>
-<div class="highlight"><pre><code class="language-javascript" data-lang="javascript">
-<span class="kd">function</span> <span class="nx">showHelp</span><span class="p">(</span><span class="nx">url</span><span class="p">)</span> <span class="p">{</span>
-
-    <span class="kd">var</span> <span class="nx">target</span> <span class="o">=</span> <span class="s2">"_blank"</span><span class="p">;</span>
-
-    <span class="kd">var</span> <span class="nx">options</span> <span class="o">=</span> <span class="s2">"location=yes,hidden=yes"</span><span class="p">;</span>
-
-    <span class="nx">inAppBrowserRef</span> <span class="o">=</span> <span class="nx">cordova</span><span class="p">.</span><span class="nx">InAppBrowser</span><span class="p">.</span><span class="nx">open</span><span class="p">(</span><span class="nx">url</span><span class="p">,</span> <span class="nx">target</span><span class="p">,</span> <span class="nx">options</span><span class="p">);</span>
-
-    <span class="kd">with</span> <span class="p">(</span><span class="nx">inAppBrowserRef</span><span class="p">)</span> <span class="p">{</span>
-
-        <span class="nx">addEventListener</span><span class="p">(</span><span class="s1">'loadstart'</span><span class="p">,</span> <span class="nx">loadStartCallBack</span><span class="p">);</span>
-
-        <span class="nx">addEventListener</span><span class="p">(</span><span class="s1">'loadstop'</span><span class="p">,</span> <span class="nx">loadStopCallBack</span><span class="p">);</span>
-
-        <span class="nx">addEventListener</span><span class="p">(</span><span class="s1">'loaderror'</span><span class="p">,</span> <span class="nx">loadErrorCallBack</span><span class="p">);</span>
-    <span class="p">}</span>
-
-<span class="p">}</span>
-
-</code></pre></div>
-<h3><a id="let"></a>Let users know that you&#39;re getting their page ready</h3>
-
-<p>Because the browser doesn&#39;t immediately appear, we can use the <code>loadstart</code> event to show a status message, progress bar, or other indicator. This assures users that content is on the way.</p>
-<div class="highlight"><pre><code class="language-javascript" data-lang="javascript">
-<span class="kd">function</span> <span class="nx">loadStartCallBack</span><span class="p">()</span> <span class="p">{</span>
-
-    <span class="nx">$</span><span class="p">(</span><span class="s1">'#status-message'</span><span class="p">).</span><span class="nx">text</span><span class="p">(</span><span class="s2">"loading please wait ..."</span><span class="p">);</span>
-
-<span class="p">}</span>
-
-</code></pre></div>
-<h3><a id="show"></a>Show the help page</h3>
-
-<p>When the <code>loadstopcallback</code> event is raised, we know that the content has loaded and we can make the browser visible. This sort of trick can create the impression of better performance. The truth is that whether you show the browser before content loads or not, the load times are exactly the same.</p>
-<div class="highlight"><pre><code class="language-javascript" data-lang="javascript">
-<span class="kd">function</span> <span class="nx">loadStopCallBack</span><span class="p">()</span> <span class="p">{</span>
-
-    <span class="k">if</span> <span class="p">(</span><span class="nx">inAppBrowserRef</span> <span class="o">!=</span> <span class="kc">undefined</span><span class="p">)</span> <span class="p">{</span>
-
-        <span class="nx">inAppBrowserRef</span><span class="p">.</span><span class="nx">insertCSS</span><span class="p">({</span> <span class="na">code</span><span class="p">:</span> <span class="s2">"body{font-size: 25px;"</span> <span class="p">});</span>
-
-        <span class="nx">$</span><span class="p">(</span><span class="s1">'#status-message'</span><span class="p">).</span><span class="nx">text</span><span class="p">(</span><span class="s2">""</span><span class="p">);</span>
-
-        <span class="nx">inAppBrowserRef</span><span class="p">.</span><span class="nx">show</span><span class="p">();</span>
-    <span class="p">}</span>
-
-<span class="p">}</span>
-
-</code></pre></div>
-<p>You might have noticed the call to the <code>insertCSS</code> function. This serves no particular purpose in our scenario. But it gives you an idea of why you might use it. In this case, we&#39;re just making sure that the font size of your pages have a certain size. You can use this function to insert any CSS style elements. You can even point to a CSS file in your project.</p>
-
-<h3><a id="handle"></a>Handle page errors</h3>
-
-<p>Sometimes a page no longer exists, a script error occurs, or a user lacks permission to view the resource. How or if you handle that situation is completely up to you and your design. You can let the browser show that message or you can present it in another way.</p>
-
-<p>We&#39;ll try to show that error in a message box. We can do that by injecting a script that calls the <code>alert</code> function. That said, this won&#39;t work in browsers on Windows devices so we&#39;ll have to look at the parameter of the <code>executeScript</code> callback function to see if our attempt worked. If it didn&#39;t work out for us, we&#39;ll just show the error message in a <code>&lt;div&gt;</code> on the page.</p>
-<div class="highlight"><pre><code class="language-javascript" data-lang="javascript">
-<span class="kd">function</span> <span class="nx">loadErrorCallBack</span><span class="p">(</span><span class="nx">params</span><span class="p">)</span> <span class="p">{</span>
-
-    <span class="nx">$</span><span class="p">(</span><span class="s1">'#status-message'</span><span class="p">).</span><span class="nx">text</span><span class="p">(</span><span class="s2">""</span><span class="p">);</span>
-
-    <span class="kd">var</span> <span class="nx">scriptErrorMesssage</span> <span class="o">=</span>
-       <span class="s2">"alert('Sorry we cannot open that page. Message from the server is : "</span>
-       <span class="o">+</span> <span class="nx">params</span><span class="p">.</span><span class="nx">message</span> <span class="o">+</span> <span class="s2">"');"</span>
-
-    <span class="nx">inAppBrowserRef</span><span class="p">.</span><span class="nx">executeScript</span><span class="p">({</span> <span class="na">code</span><span class="p">:</span> <span class="nx">scriptErrorMesssage</span> <span class="p">},</span> <span class="nx">executeScriptCallBack</span><span class="p">);</span>
-
-    <span class="nx">inAppBrowserRef</span><span class="p">.</span><span class="nx">close</span><span class="p">();</span>
-
-    <span class="nx">inAppBrowserRef</span> <span class="o">=</span> <span class="kc">undefined</span><span class="p">;</span>
-
-<span class="p">}</span>
-
-<span class="kd">function</span> <span class="nx">executeScriptCallBack</span><span class="p">(</span><span class="nx">params</span><span class="p">)</span> <span class="p">{</span>
-
-    <span class="k">if</span> <span class="p">(</span><span class="nx">params</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">==</span> <span class="kc">null</span><span class="p">)</span> <span class="p">{</span>
-
-        <span class="nx">$</span><span class="p">(</span><span class="s1">'#status-message'</span><span class="p">).</span><span class="nx">text</span><span class="p">(</span>
-           <span class="s2">"Sorry we couldn't open that page. Message from the server is : '"</span>
-           <span class="o">+</span> <span class="nx">params</span><span class="p">.</span><span class="nx">message</span> <span class="o">+</span> <span class="s2">"'"</span><span class="p">);</span>
-    <span class="p">}</span>
-
-<span class="p">}</span>
-
-</code></pre></div>
 
                 </div>
             </div>

Modified: cordova/site/public/docs/en/dev/reference/cordova-plugin-legacy-whitelist/index.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/dev/reference/cordova-plugin-legacy-whitelist/index.html?rev=1745411&r1=1745410&r2=1745411&view=diff
==============================================================================
--- cordova/site/public/docs/en/dev/reference/cordova-plugin-legacy-whitelist/index.html (original)
+++ cordova/site/public/docs/en/dev/reference/cordova-plugin-legacy-whitelist/index.html Tue May 24 23:29:23 2016
@@ -6,12 +6,12 @@
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <meta name="format-detection" content="telephone=no">
     <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
-    <meta name="description" content="Legacy implementation of the whitelist plugin. ">
+    <meta name="description" content=" ">
 
     <title>
         
             
-                Legacy Whitelist - Apache Cordova
+                cordova-plugin-legacy-whitelist - Apache Cordova
             
         
     </title>
@@ -732,7 +732,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-battery-status/index.html">
-                Battery Status
+                cordova-plugin-battery-status
             </a>
             
         
@@ -747,7 +747,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-camera/index.html">
-                Camera
+                cordova-plugin-camera
             </a>
             
         
@@ -762,7 +762,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-console/index.html">
-                Console
+                cordova-plugin-console
             </a>
             
         
@@ -777,7 +777,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-contacts/index.html">
-                Contacts
+                cordova-plugin-contacts
             </a>
             
         
@@ -792,7 +792,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-device/index.html">
-                Device
+                cordova-plugin-device
             </a>
             
         
@@ -807,7 +807,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-device-motion/index.html">
-                Device Motion
+                cordova-plugin-device-motion
             </a>
             
         
@@ -822,7 +822,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-device-orientation/index.html">
-                Device Orientation
+                cordova-plugin-device-orientation
             </a>
             
         
@@ -837,7 +837,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-dialogs/index.html">
-                Dialogs
+                cordova-plugin-dialogs
             </a>
             
         
@@ -852,7 +852,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-file/index.html">
-                File
+                cordova-plugin-file
             </a>
             
         
@@ -867,7 +867,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-file-transfer/index.html">
-                File Transfer
+                cordova-plugin-file-transfer
             </a>
             
         
@@ -882,7 +882,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-geolocation/index.html">
-                Geolocation
+                cordova-plugin-geolocation
             </a>
             
         
@@ -897,7 +897,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-globalization/index.html">
-                Globalization
+                cordova-plugin-globalization
             </a>
             
         
@@ -912,7 +912,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-inappbrowser/index.html">
-                Inappbrowser
+                cordova-plugin-inappbrowser
             </a>
             
         
@@ -927,7 +927,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-media/index.html">
-                Media
+                cordova-plugin-media
             </a>
             
         
@@ -942,7 +942,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-media-capture/index.html">
-                Media Capture
+                cordova-plugin-media-capture
             </a>
             
         
@@ -957,7 +957,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-network-information/index.html">
-                Network Information
+                cordova-plugin-network-information
             </a>
             
         
@@ -972,7 +972,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-splashscreen/index.html">
-                Splashscreen
+                cordova-plugin-splashscreen
             </a>
             
         
@@ -987,7 +987,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-vibration/index.html">
-                Vibration
+                cordova-plugin-vibration
             </a>
             
         
@@ -1002,7 +1002,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-statusbar/index.html">
-                Statusbar
+                cordova-plugin-statusbar
             </a>
             
         
@@ -1017,7 +1017,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-whitelist/index.html">
-                Whitelist
+                cordova-plugin-whitelist
             </a>
             
         
@@ -1032,7 +1032,7 @@
     <li>
         
             <a class="this-page" href="../../reference/cordova-plugin-legacy-whitelist/index.html">
-                Legacy Whitelist
+                cordova-plugin-legacy-whitelist
             </a>
             
                 <span class="entry-highlight"></span>
@@ -1388,7 +1388,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-battery-status/index.html">
-        Battery Status
+        cordova-plugin-battery-status
     </a>
 </li>
 
@@ -1397,7 +1397,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-camera/index.html">
-        Camera
+        cordova-plugin-camera
     </a>
 </li>
 
@@ -1406,7 +1406,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-console/index.html">
-        Console
+        cordova-plugin-console
     </a>
 </li>
 
@@ -1415,7 +1415,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-contacts/index.html">
-        Contacts
+        cordova-plugin-contacts
     </a>
 </li>
 
@@ -1424,7 +1424,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-device/index.html">
-        Device
+        cordova-plugin-device
     </a>
 </li>
 
@@ -1433,7 +1433,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-device-motion/index.html">
-        Device Motion
+        cordova-plugin-device-motion
     </a>
 </li>
 
@@ -1442,7 +1442,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-device-orientation/index.html">
-        Device Orientation
+        cordova-plugin-device-orientation
     </a>
 </li>
 
@@ -1451,7 +1451,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-dialogs/index.html">
-        Dialogs
+        cordova-plugin-dialogs
     </a>
 </li>
 
@@ -1460,7 +1460,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-file/index.html">
-        File
+        cordova-plugin-file
     </a>
 </li>
 
@@ -1469,7 +1469,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-file-transfer/index.html">
-        File Transfer
+        cordova-plugin-file-transfer
     </a>
 </li>
 
@@ -1478,7 +1478,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-geolocation/index.html">
-        Geolocation
+        cordova-plugin-geolocation
     </a>
 </li>
 
@@ -1487,7 +1487,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-globalization/index.html">
-        Globalization
+        cordova-plugin-globalization
     </a>
 </li>
 
@@ -1496,7 +1496,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-inappbrowser/index.html">
-        Inappbrowser
+        cordova-plugin-inappbrowser
     </a>
 </li>
 
@@ -1505,7 +1505,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-media/index.html">
-        Media
+        cordova-plugin-media
     </a>
 </li>
 
@@ -1514,7 +1514,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-media-capture/index.html">
-        Media Capture
+        cordova-plugin-media-capture
     </a>
 </li>
 
@@ -1523,7 +1523,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-network-information/index.html">
-        Network Information
+        cordova-plugin-network-information
     </a>
 </li>
 
@@ -1532,7 +1532,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-splashscreen/index.html">
-        Splashscreen
+        cordova-plugin-splashscreen
     </a>
 </li>
 
@@ -1541,7 +1541,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-vibration/index.html">
-        Vibration
+        cordova-plugin-vibration
     </a>
 </li>
 
@@ -1550,7 +1550,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-statusbar/index.html">
-        Statusbar
+        cordova-plugin-statusbar
     </a>
 </li>
 
@@ -1559,7 +1559,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-whitelist/index.html">
-        Whitelist
+        cordova-plugin-whitelist
     </a>
 </li>
 
@@ -1568,7 +1568,7 @@
 
 <li>
     <a class="this-page" href="../../reference/cordova-plugin-legacy-whitelist/index.html">
-        Legacy Whitelist
+        cordova-plugin-legacy-whitelist
     </a>
 </li>
 

Modified: cordova/site/public/docs/en/dev/reference/cordova-plugin-media-capture/index.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/dev/reference/cordova-plugin-media-capture/index.html?rev=1745411&r1=1745410&r2=1745411&view=diff
==============================================================================
--- cordova/site/public/docs/en/dev/reference/cordova-plugin-media-capture/index.html (original)
+++ cordova/site/public/docs/en/dev/reference/cordova-plugin-media-capture/index.html Tue May 24 23:29:23 2016
@@ -6,12 +6,12 @@
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <meta name="format-detection" content="telephone=no">
     <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
-    <meta name="description" content="Capture audio, video, and images. ">
+    <meta name="description" content=" ">
 
     <title>
         
             
-                Media Capture - Apache Cordova
+                cordova-plugin-media-capture - Apache Cordova
             
         
     </title>
@@ -732,7 +732,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-battery-status/index.html">
-                Battery Status
+                cordova-plugin-battery-status
             </a>
             
         
@@ -747,7 +747,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-camera/index.html">
-                Camera
+                cordova-plugin-camera
             </a>
             
         
@@ -762,7 +762,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-console/index.html">
-                Console
+                cordova-plugin-console
             </a>
             
         
@@ -777,7 +777,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-contacts/index.html">
-                Contacts
+                cordova-plugin-contacts
             </a>
             
         
@@ -792,7 +792,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-device/index.html">
-                Device
+                cordova-plugin-device
             </a>
             
         
@@ -807,7 +807,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-device-motion/index.html">
-                Device Motion
+                cordova-plugin-device-motion
             </a>
             
         
@@ -822,7 +822,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-device-orientation/index.html">
-                Device Orientation
+                cordova-plugin-device-orientation
             </a>
             
         
@@ -837,7 +837,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-dialogs/index.html">
-                Dialogs
+                cordova-plugin-dialogs
             </a>
             
         
@@ -852,7 +852,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-file/index.html">
-                File
+                cordova-plugin-file
             </a>
             
         
@@ -867,7 +867,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-file-transfer/index.html">
-                File Transfer
+                cordova-plugin-file-transfer
             </a>
             
         
@@ -882,7 +882,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-geolocation/index.html">
-                Geolocation
+                cordova-plugin-geolocation
             </a>
             
         
@@ -897,7 +897,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-globalization/index.html">
-                Globalization
+                cordova-plugin-globalization
             </a>
             
         
@@ -912,7 +912,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-inappbrowser/index.html">
-                Inappbrowser
+                cordova-plugin-inappbrowser
             </a>
             
         
@@ -927,7 +927,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-media/index.html">
-                Media
+                cordova-plugin-media
             </a>
             
         
@@ -942,7 +942,7 @@
     <li>
         
             <a class="this-page" href="../../reference/cordova-plugin-media-capture/index.html">
-                Media Capture
+                cordova-plugin-media-capture
             </a>
             
                 <span class="entry-highlight"></span>
@@ -959,7 +959,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-network-information/index.html">
-                Network Information
+                cordova-plugin-network-information
             </a>
             
         
@@ -974,7 +974,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-splashscreen/index.html">
-                Splashscreen
+                cordova-plugin-splashscreen
             </a>
             
         
@@ -989,7 +989,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-vibration/index.html">
-                Vibration
+                cordova-plugin-vibration
             </a>
             
         
@@ -1004,7 +1004,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-statusbar/index.html">
-                Statusbar
+                cordova-plugin-statusbar
             </a>
             
         
@@ -1019,7 +1019,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-whitelist/index.html">
-                Whitelist
+                cordova-plugin-whitelist
             </a>
             
         
@@ -1034,7 +1034,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-legacy-whitelist/index.html">
-                Legacy Whitelist
+                cordova-plugin-legacy-whitelist
             </a>
             
         
@@ -1388,7 +1388,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-battery-status/index.html">
-        Battery Status
+        cordova-plugin-battery-status
     </a>
 </li>
 
@@ -1397,7 +1397,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-camera/index.html">
-        Camera
+        cordova-plugin-camera
     </a>
 </li>
 
@@ -1406,7 +1406,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-console/index.html">
-        Console
+        cordova-plugin-console
     </a>
 </li>
 
@@ -1415,7 +1415,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-contacts/index.html">
-        Contacts
+        cordova-plugin-contacts
     </a>
 </li>
 
@@ -1424,7 +1424,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-device/index.html">
-        Device
+        cordova-plugin-device
     </a>
 </li>
 
@@ -1433,7 +1433,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-device-motion/index.html">
-        Device Motion
+        cordova-plugin-device-motion
     </a>
 </li>
 
@@ -1442,7 +1442,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-device-orientation/index.html">
-        Device Orientation
+        cordova-plugin-device-orientation
     </a>
 </li>
 
@@ -1451,7 +1451,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-dialogs/index.html">
-        Dialogs
+        cordova-plugin-dialogs
     </a>
 </li>
 
@@ -1460,7 +1460,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-file/index.html">
-        File
+        cordova-plugin-file
     </a>
 </li>
 
@@ -1469,7 +1469,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-file-transfer/index.html">
-        File Transfer
+        cordova-plugin-file-transfer
     </a>
 </li>
 
@@ -1478,7 +1478,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-geolocation/index.html">
-        Geolocation
+        cordova-plugin-geolocation
     </a>
 </li>
 
@@ -1487,7 +1487,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-globalization/index.html">
-        Globalization
+        cordova-plugin-globalization
     </a>
 </li>
 
@@ -1496,7 +1496,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-inappbrowser/index.html">
-        Inappbrowser
+        cordova-plugin-inappbrowser
     </a>
 </li>
 
@@ -1505,7 +1505,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-media/index.html">
-        Media
+        cordova-plugin-media
     </a>
 </li>
 
@@ -1514,7 +1514,7 @@
 
 <li>
     <a class="this-page" href="../../reference/cordova-plugin-media-capture/index.html">
-        Media Capture
+        cordova-plugin-media-capture
     </a>
 </li>
 
@@ -1523,7 +1523,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-network-information/index.html">
-        Network Information
+        cordova-plugin-network-information
     </a>
 </li>
 
@@ -1532,7 +1532,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-splashscreen/index.html">
-        Splashscreen
+        cordova-plugin-splashscreen
     </a>
 </li>
 
@@ -1541,7 +1541,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-vibration/index.html">
-        Vibration
+        cordova-plugin-vibration
     </a>
 </li>
 
@@ -1550,7 +1550,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-statusbar/index.html">
-        Statusbar
+        cordova-plugin-statusbar
     </a>
 </li>
 
@@ -1559,7 +1559,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-whitelist/index.html">
-        Whitelist
+        cordova-plugin-whitelist
     </a>
 </li>
 
@@ -1568,7 +1568,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-legacy-whitelist/index.html">
-        Legacy Whitelist
+        cordova-plugin-legacy-whitelist
     </a>
 </li>
 
@@ -3128,7 +3128,6 @@ function captureSuccess(mediaFiles) {
 <li><p><code>CaptureError.CAPTURE_APPLICATION_BUSY</code>: The camera or audio capture application is currently serving another capture request.</p></li>
 <li><p><code>CaptureError.CAPTURE_INVALID_ARGUMENT</code>: Invalid use of the API (e.g., the value of <code>limit</code> is less than one).</p></li>
 <li><p><code>CaptureError.CAPTURE_NO_MEDIA_FILES</code>: The user exits the camera or audio capture application before capturing anything.</p></li>
-<li><p><code>CaptureError.CAPTURE_PERMISSION_DENIED</code>: The user denied a permission required to perform the given capture request.</p></li>
 <li><p><code>CaptureError.CAPTURE_NOT_SUPPORTED</code>: The requested capture operation is not supported.</p></li>
 </ul>
 
@@ -3339,37 +3338,6 @@ the following default values:</p>
 <li><p><strong>duration</strong>: Supported: audio and video files only.</p></li>
 </ul>
 
-<h2>Android Lifecycle Quirks</h2>
-
-<p>When capturing audio, video, or images on the Android platform, there is a chance that the
-application will get destroyed after the Cordova Webview is pushed to the background by
-the native capture application. See the <a href="http://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html#lifecycle-guide">Android Lifecycle Guide</a> for
-a full description of the issue. In this case, the success and failure callbacks passed
-to the capture method will not be fired and instead the results of the call will be
-delivered via a document event that fires after the Cordova <a href="http://cordova.apache.org/docs/en/latest/cordova/events/events.html#resume">resume event</a>.</p>
-
-<p>In your app, you should subscribe to the two possible events like so:</p>
-<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="kd">function</span> <span class="nx">onDeviceReady</span><span class="p">()</span> <span class="p">{</span>
-    <span class="c1">// pendingcaptureresult is fired if the capture call is successful</span>
-    <span class="nb">document</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="s1">'pendingcaptureresult'</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">mediaFiles</span><span class="p">)</span> <span class="p">{</span>
-        <span class="c1">// Do something with result</span>
-    <span class="p">});</span>
-
-    <span class="c1">// pendingcaptureerror is fired if the capture call is unsuccessful</span>
-    <span class="nb">document</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="s1">'pendingcaptureerror'</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">error</span><span class="p">)</span> <span class="p">{</span>
-        <span class="c1">// Handle error case</span>
-    <span class="p">});</span>
-<span class="p">}</span>
-
-<span class="c1">// Only subscribe to events after deviceready fires</span>
-<span class="nb">document</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="s1">'deviceready'</span><span class="p">,</span> <span class="nx">onDeviceReady</span><span class="p">);</span>
-</code></pre></div>
-<p>It is up you to track what part of your code these results are coming from. Be sure to
-save and restore your app&#39;s state as part of the <a href="http://cordova.apache.org/docs/en/latest/cordova/events/events.html#pause">pause</a> and
-<a href="http://cordova.apache.org/docs/en/latest/cordova/events/events.html#resume">resume</a> events as appropriate. Please note that these events will only
-fire on the Android platform and only when the Webview was destroyed during a capture
-operation.</p>
-
 
                 </div>
             </div>

Modified: cordova/site/public/docs/en/dev/reference/cordova-plugin-media/index.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/dev/reference/cordova-plugin-media/index.html?rev=1745411&r1=1745410&r2=1745411&view=diff
==============================================================================
--- cordova/site/public/docs/en/dev/reference/cordova-plugin-media/index.html (original)
+++ cordova/site/public/docs/en/dev/reference/cordova-plugin-media/index.html Tue May 24 23:29:23 2016
@@ -6,12 +6,12 @@
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <meta name="format-detection" content="telephone=no">
     <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
-    <meta name="description" content="Record and play audio on the device. ">
+    <meta name="description" content=" ">
 
     <title>
         
             
-                Media - Apache Cordova
+                cordova-plugin-media - Apache Cordova
             
         
     </title>
@@ -732,7 +732,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-battery-status/index.html">
-                Battery Status
+                cordova-plugin-battery-status
             </a>
             
         
@@ -747,7 +747,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-camera/index.html">
-                Camera
+                cordova-plugin-camera
             </a>
             
         
@@ -762,7 +762,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-console/index.html">
-                Console
+                cordova-plugin-console
             </a>
             
         
@@ -777,7 +777,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-contacts/index.html">
-                Contacts
+                cordova-plugin-contacts
             </a>
             
         
@@ -792,7 +792,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-device/index.html">
-                Device
+                cordova-plugin-device
             </a>
             
         
@@ -807,7 +807,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-device-motion/index.html">
-                Device Motion
+                cordova-plugin-device-motion
             </a>
             
         
@@ -822,7 +822,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-device-orientation/index.html">
-                Device Orientation
+                cordova-plugin-device-orientation
             </a>
             
         
@@ -837,7 +837,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-dialogs/index.html">
-                Dialogs
+                cordova-plugin-dialogs
             </a>
             
         
@@ -852,7 +852,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-file/index.html">
-                File
+                cordova-plugin-file
             </a>
             
         
@@ -867,7 +867,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-file-transfer/index.html">
-                File Transfer
+                cordova-plugin-file-transfer
             </a>
             
         
@@ -882,7 +882,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-geolocation/index.html">
-                Geolocation
+                cordova-plugin-geolocation
             </a>
             
         
@@ -897,7 +897,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-globalization/index.html">
-                Globalization
+                cordova-plugin-globalization
             </a>
             
         
@@ -912,7 +912,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-inappbrowser/index.html">
-                Inappbrowser
+                cordova-plugin-inappbrowser
             </a>
             
         
@@ -927,7 +927,7 @@
     <li>
         
             <a class="this-page" href="../../reference/cordova-plugin-media/index.html">
-                Media
+                cordova-plugin-media
             </a>
             
                 <span class="entry-highlight"></span>
@@ -944,7 +944,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-media-capture/index.html">
-                Media Capture
+                cordova-plugin-media-capture
             </a>
             
         
@@ -959,7 +959,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-network-information/index.html">
-                Network Information
+                cordova-plugin-network-information
             </a>
             
         
@@ -974,7 +974,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-splashscreen/index.html">
-                Splashscreen
+                cordova-plugin-splashscreen
             </a>
             
         
@@ -989,7 +989,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-vibration/index.html">
-                Vibration
+                cordova-plugin-vibration
             </a>
             
         
@@ -1004,7 +1004,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-statusbar/index.html">
-                Statusbar
+                cordova-plugin-statusbar
             </a>
             
         
@@ -1019,7 +1019,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-whitelist/index.html">
-                Whitelist
+                cordova-plugin-whitelist
             </a>
             
         
@@ -1034,7 +1034,7 @@
     <li>
         
             <a class="" href="../../reference/cordova-plugin-legacy-whitelist/index.html">
-                Legacy Whitelist
+                cordova-plugin-legacy-whitelist
             </a>
             
         
@@ -1388,7 +1388,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-battery-status/index.html">
-        Battery Status
+        cordova-plugin-battery-status
     </a>
 </li>
 
@@ -1397,7 +1397,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-camera/index.html">
-        Camera
+        cordova-plugin-camera
     </a>
 </li>
 
@@ -1406,7 +1406,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-console/index.html">
-        Console
+        cordova-plugin-console
     </a>
 </li>
 
@@ -1415,7 +1415,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-contacts/index.html">
-        Contacts
+        cordova-plugin-contacts
     </a>
 </li>
 
@@ -1424,7 +1424,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-device/index.html">
-        Device
+        cordova-plugin-device
     </a>
 </li>
 
@@ -1433,7 +1433,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-device-motion/index.html">
-        Device Motion
+        cordova-plugin-device-motion
     </a>
 </li>
 
@@ -1442,7 +1442,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-device-orientation/index.html">
-        Device Orientation
+        cordova-plugin-device-orientation
     </a>
 </li>
 
@@ -1451,7 +1451,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-dialogs/index.html">
-        Dialogs
+        cordova-plugin-dialogs
     </a>
 </li>
 
@@ -1460,7 +1460,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-file/index.html">
-        File
+        cordova-plugin-file
     </a>
 </li>
 
@@ -1469,7 +1469,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-file-transfer/index.html">
-        File Transfer
+        cordova-plugin-file-transfer
     </a>
 </li>
 
@@ -1478,7 +1478,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-geolocation/index.html">
-        Geolocation
+        cordova-plugin-geolocation
     </a>
 </li>
 
@@ -1487,7 +1487,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-globalization/index.html">
-        Globalization
+        cordova-plugin-globalization
     </a>
 </li>
 
@@ -1496,7 +1496,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-inappbrowser/index.html">
-        Inappbrowser
+        cordova-plugin-inappbrowser
     </a>
 </li>
 
@@ -1505,7 +1505,7 @@
 
 <li>
     <a class="this-page" href="../../reference/cordova-plugin-media/index.html">
-        Media
+        cordova-plugin-media
     </a>
 </li>
 
@@ -1514,7 +1514,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-media-capture/index.html">
-        Media Capture
+        cordova-plugin-media-capture
     </a>
 </li>
 
@@ -1523,7 +1523,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-network-information/index.html">
-        Network Information
+        cordova-plugin-network-information
     </a>
 </li>
 
@@ -1532,7 +1532,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-splashscreen/index.html">
-        Splashscreen
+        cordova-plugin-splashscreen
     </a>
 </li>
 
@@ -1541,7 +1541,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-vibration/index.html">
-        Vibration
+        cordova-plugin-vibration
     </a>
 </li>
 
@@ -1550,7 +1550,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-statusbar/index.html">
-        Statusbar
+        cordova-plugin-statusbar
     </a>
 </li>
 
@@ -1559,7 +1559,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-whitelist/index.html">
-        Whitelist
+        cordova-plugin-whitelist
     </a>
 </li>
 
@@ -1568,7 +1568,7 @@
 
 <li>
     <a class="" href="../../reference/cordova-plugin-legacy-whitelist/index.html">
-        Legacy Whitelist
+        cordova-plugin-legacy-whitelist
     </a>
 </li>
 
@@ -2762,14 +2762,11 @@ function onDeviceReady() {
 <h3>Methods</h3>
 
 <ul>
-<li><p><code>media.getCurrentAmplitude</code>: Returns the current position within an audio file.</p></li>
 <li><p><code>media.getCurrentPosition</code>: Returns the current position within an audio file.</p></li>
 <li><p><code>media.getDuration</code>: Returns the duration of an audio file.</p></li>
 <li><p><code>media.play</code>: Start or resume playing an audio file.</p></li>
 <li><p><code>media.pause</code>: Pause playback of an audio file.</p></li>
-<li><p><code>media.pauseRecord</code>: Pause recording of an audio file.</p></li>
 <li><p><code>media.release</code>: Releases the underlying operating system&#39;s audio resources.</p></li>
-<li><p><code>media.resumeRecord</code>: Resume recording of an audio file.</p></li>
 <li><p><code>media.seekTo</code>: Moves the position within the audio file.</p></li>
 <li><p><code>media.setVolume</code>: Set the volume for audio playback.</p></li>
 <li><p><code>media.startRecord</code>: Start recording an audio file.</p></li>
@@ -2788,47 +2785,6 @@ function onDeviceReady() {
 <li><p><strong>duration</strong>: The duration of the media, in seconds.</p></li>
 </ul>
 
-<h2>media.getCurrentAmplitude</h2>
-
-<p>Returns the current amplitude of the current recording.</p>
-<div class="highlight"><pre><code class="language-" data-lang="">media.getCurrentAmplitude(mediaSuccess, [mediaError]);
-</code></pre></div>
-<h3>Supported Platforms</h3>
-
-<ul>
-<li>Android</li>
-<li>iOS</li>
-</ul>
-
-<h3>Parameters</h3>
-
-<ul>
-<li><p><strong>mediaSuccess</strong>: The callback that is passed the current amplitude (0.0 - 1.0).</p></li>
-<li><p><strong>mediaError</strong>: (Optional) The callback to execute if an error occurs.</p></li>
-</ul>
-
-<h3>Quick Example</h3>
-<div class="highlight"><pre><code class="language-" data-lang="">// Audio player
-//
-var my_media = new Media(src, onSuccess, onError);
-
-// Record audio
-my_media.startRecord();
-
-mediaTimer = setInterval(function () {
-    // get media amplitude
-    my_media.getCurrentAmplitude(
-        // success callback
-        function (amp) {
-            console.log(amp + "%");
-        },
-        // error callback
-        function (e) {
-            console.log("Error getting amp=" + e);
-        }
-    );
-}, 1000);
-</code></pre></div>
 <h2>media.getCurrentPosition</h2>
 
 <p>Returns the current position within an audio file.  Also updates the <code>Media</code> object&#39;s <code>position</code> parameter.</p>
@@ -2913,42 +2869,6 @@ function playAudio(url) {
     }, 10000);
 }
 </code></pre></div>
-<h2>media.pauseRecord</h2>
-
-<p>Pauses recording an audio file.</p>
-<div class="highlight"><pre><code class="language-" data-lang="">media.pauseRecord();
-</code></pre></div>
-<h3>Supported Platforms</h3>
-
-<ul>
-<li>iOS</li>
-</ul>
-
-<h3>Quick Example</h3>
-<div class="highlight"><pre><code class="language-" data-lang="">// Record audio
-//
-function recordAudio() {
-    var src = "myrecording.mp3";
-    var mediaRec = new Media(src,
-        // success callback
-        function() {
-            console.log("recordAudio():Audio Success");
-        },
-
-        // error callback
-        function(err) {
-            console.log("recordAudio():Audio Error: "+ err.code);
-        });
-
-    // Record audio
-    mediaRec.startRecord();
-
-    // Pause Recording after 5 seconds
-    setTimeout(function() {
-        my_media.pauseRecord();
-    }, 5000);
-}
-</code></pre></div>
 <h2>media.play</h2>
 
 <p>Starts or resumes playing an audio file.</p>
@@ -3013,47 +2933,6 @@ my_media.play();
 my_media.stop();
 my_media.release();
 </code></pre></div>
-<h2>media.resumeRecord</h2>
-
-<p>Resume recording an audio file.</p>
-<div class="highlight"><pre><code class="language-" data-lang="">media.resumeRecord();
-</code></pre></div>
-<h3>Supported Platforms</h3>
-
-<ul>
-<li>iOS</li>
-</ul>
-
-<h3>Quick Example</h3>
-<div class="highlight"><pre><code class="language-" data-lang="">// Record audio
-//
-function recordAudio() {
-    var src = "myrecording.mp3";
-    var mediaRec = new Media(src,
-        // success callback
-        function() {
-            console.log("recordAudio():Audio Success");
-        },
-
-        // error callback
-        function(err) {
-            console.log("recordAudio():Audio Error: "+ err.code);
-        });
-
-    // Record audio
-    mediaRec.startRecord();
-
-    // Pause Recording after 5 seconds
-    setTimeout(function() {
-        my_media.pauseRecord();
-    }, 5000);
-
-    // Resume Recording after 10 seconds
-    setTimeout(function() {
-        my_media.resumeRecord();
-    }, 10000);
-}
-</code></pre></div>
 <h2>media.seekTo</h2>
 
 <p>Sets the current position within an audio file.</p>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message