aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/api/devicestorage.onchange/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/web/api/devicestorage.onchange/index.html')
-rw-r--r--files/pt-br/web/api/devicestorage.onchange/index.html30
1 files changed, 0 insertions, 30 deletions
diff --git a/files/pt-br/web/api/devicestorage.onchange/index.html b/files/pt-br/web/api/devicestorage.onchange/index.html
deleted file mode 100644
index 1b1b1db375..0000000000
--- a/files/pt-br/web/api/devicestorage.onchange/index.html
+++ /dev/null
@@ -1,30 +0,0 @@
----
-title: DeviceStorage.onchange
-slug: Web/API/DeviceStorage.onchange
-translation_of: Archive/B2G_OS/API/DeviceStorage/onchange
----
-<p>{{ ApiRef() }}</p>
-<p>{{ non-standard_header() }}</p>
-<p>{{ B2GOnlyHeader2('privileged') }}</p>
-<h2 id="Resumo">Resumo</h2>
-<p>A propriedade <code>onchange</code> é usado para especificar um manuseador de eventos para receber eventos {{event("change")}}. Estes eventos são disparados cada vez que um arquivo é criado, modificado ou excluído na area de armazenamento.</p>
-<h2 id="Sintaxe">Sintaxe</h2>
-<pre><em>instanceOfDeviceStorage</em>.onchange = <em>funcRef</em></pre>
-<p>Onde <code><em>funcRef</em></code> é uma função para ser chamada quando o evento {{event("change")}} ocorre. Estes eventos são do tipo {{domxref("DeviceStorageChangeEvent")}}.</p>
-<h2 id="Exemplo">Exemplo</h2>
-<pre class="brush: js language-html waffle-beta"><code class="language-js">var sdcard = navigator.getDeviceStorage('sdcard');
-
-sdcard.onchange = function (change) {
- var reason = change.reason;
- var path = change.path;
-
- console.log('O arquivo "' + path + '" foi ' + reason);
-}</code></pre>
-<h2 id="Specification" name="Specification">Especificação</h2>
-<p>Não faz parte de qualquer especificação.</p>
-<h2 id="Veja_também">Veja também</h2>
-<ul>
- <li>{{domxref("DeviceStorage")}}</li>
- <li>{{domxref("DeviceStorageChangeEvent")}}</li>
- <li><a href="/en-US/docs/WebAPI/Device_Storage" title="/en-US/docs/WebAPI/Device_Storage">Device Storage API</a></li>
-</ul>