Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E27EF186F8 for ; Thu, 19 Nov 2015 05:26:58 +0000 (UTC) Received: (qmail 41116 invoked by uid 500); 19 Nov 2015 05:26:58 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 41009 invoked by uid 500); 19 Nov 2015 05:26:58 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 40674 invoked by uid 99); 19 Nov 2015 05:26:58 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Nov 2015 05:26:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 509F9E1782; Thu, 19 Nov 2015 05:26:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: dblotsky@apache.org To: commits@cordova.apache.org Date: Thu, 19 Nov 2015 05:27:02 -0000 Message-Id: <5992f9eb472a40ee839b708a88c846b2@git.apache.org> In-Reply-To: <40e6990ff6234e50b63902481203e324@git.apache.org> References: <40e6990ff6234e50b63902481203e324@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [05/51] [partial] docs commit: CB-10029: rename edge to dev. This closes #426. http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/config_ref/images.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/config_ref/images.md b/www/docs/es/edge/config_ref/images.md deleted file mode 100644 index b5edcd6..0000000 --- a/www/docs/es/edge/config_ref/images.md +++ /dev/null @@ -1,172 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: Iconos y pantallas de Splash ---- - -# Iconos y pantallas de Splash - -Esta sección le muestra cómo configurar el icono de una aplicación y opcionalmente la pantalla de inicio para varias plataformas, tanto si se trabaja en el CLI de Cordova (descrito en la sección La Interfaz de Línea de Comandos) o si se utilizan herramientas específicas de la plataforma SDK (detallada en las guías de plataforma). - -## Configurando los íconos en el CLI - -Cuando trabajes en el CLI puedes definir los iconos de la app haciendo uso del elemento `` (`config.xml`). Si no se especifica un icono se utilizara el logo de Apache Cordova. - - - - -Fuente: (requerido) especifica la ubicación del archivo de imagen, en relación a su directorio de proyecto - -platform: plataforma de destino (opcional) - -width: anchura de icono en pixeles (opcional) - -height: altura del icono en pixeles (opcional) - -density: específico de android, especifica la densidad del icono (opcional) - -Puede utilizar la siguiente configuración para definir un icono único por defecto, que se utilizará para todas las plataformas. - - - - -Para cada plataforma también puede definir un conjunto de iconos para adaptarse a distintas resoluciones de pantalla. - -Amazon fire OS - - - - - - - - - -Android - - - - - - - - - -BlackBerry10 - - - - - - - -Consulte la documentación de BlackBerry para apuntar varios tamaños y configuraciones regionales. [http://developer.blackberry.com/html5/documentation/icon_element.html] - -Firefox OS - - - - - - -iOS - - < nombre de plataforma = "ios" > < icono src = "res/ios/icon-60@3x.png" width = "180" altura = "180" / > < icono src="res/ios/icon-60.png" ancho = "60" height = "60" / >< icono src = "res/ios/icon-60@2x.png" width = "120" height = "120" / > iPad < icono src="res/ios/icon-76.png" ancho = altura "76" = "76" / >< icono src = "res/ios/icon-76@2x.png" width = "152" height = "152" /> < icono src="res/ios/icon-40.png" ancho = "40" altura = "40" / >< icono src = "res/ios/icon-40@2x.png" width = "80" height = "80" / > < icono src="res/ios/icon.png" ancho = altura "57" = "57" / >< icono src = "res/ios/icon@2x.png" width = altura "114" = "114" / > < icono src="res/ios/icon-72.png" ancho = altura "72" = "72" / >< icono src = "res/ios/icon-72@2x.png" width = "144" altura = "144" / > < icono src="res/ios/icon-50.png" ancho = "50" altura = "50" / >< icono src = "res/ios/icon-50@2x.png" width = "100" height = "100" / >< / plataforma > - - -Tizen - - - - - - -Windows Phone8 - - - - - - - - -Windows8 - - - - - - - - -## Configurando pantallas de inicio en el CLI - -En el nivel superior `config.xml` archivo (no el que está en `platforms` ), añadir elementos de configuración como los aquí especificados. - -# Ejemplo de configuración - -Por favor observe que el valor del atributo "src" es relativa al directorio de proyecto y no en el directorio de www. Puedes nombrar a la imagen de origen lo que quieras. El nombre interno de la aplicación están determinados por Córdoba. - - - - - - - - - - - - - - - - < salpicar src="res/screen/ios/Default~iphone.png" ancho = "320" height = "480" / >< splash src="res/screen/ios/Default@2x~iphone.png" ancho = "640" altura = "960" / >< splash src="res/screen/ios/Default-Portrait~ipad.png" ancho = altura "768" = "1024" / >< splash src="res/screen/ios/Default-Portrait@2x~ipad.png" ancho = altura "1536" = "2048" / >< splash src="res/screen/ios/Default-Landscape~ipad.png" ancho = "1024" altura = "768" / >< splash src="res/screen/ios/Default-Landscape@2x~ipad.png" ancho = "2048" altura = "1536" / >< splash src="res/screen/ios/Default-568h@2x~iphone.png" ancho = "640" height = "1136" / >< splash src="res/screen/ios/Default-667h.png" ancho = "750" height = "1334" / >< splash src="res/screen/ios/Default-736h.png" ancho = "1242" altura = "2208" / >< splash src="res/screen/ios/Default-Landscape-736h.png" ancho = altura "2208" = "1242" / >< / plataforma >< nombre de plataform a = "wp8" > - - - - - - - - - - - - - - - - - - -# Plataformas soportadas - -A partir de ahora (Cordova 3.5.0 julio de 2014) las siguientes plataformas soportan pantallas splash. - - android - ios - wp8 - windows8 - blackberry10 - - -# SplashScreen Plugin - -Apache Cordova también ofrece plugin de pantalla splash especiales que podría ser utilizado para mostrar y ocultar una pantalla de bienvenida durante la aplicación lanzamiento https://github.com/apache/cordova-plugin-splashscreen mediante programación \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/config_ref/index.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/config_ref/index.md b/www/docs/es/edge/config_ref/index.md deleted file mode 100644 index 61b5713..0000000 --- a/www/docs/es/edge/config_ref/index.md +++ /dev/null @@ -1,191 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: El archivo config.xml ---- - -# El archivo config.xml - -Muchos aspectos del comportamiento de una aplicación pueden controlarse con un archivo de configuración global, `config.xml` . Este archivo XML independiente de la plataforma se arregla basado en la especificación del W3C [Empaquetado aplicaciones Web (Widgets)][1] y extendido a especificar funciones API Cordova centrales, plugins y configuración específica de la plataforma. - - [1]: http://www.w3.org/TR/widgets/ - -Para los proyectos creados con la CLI Cordova (descrito en la interfaz de línea de comandos), este archivo puede encontrarse en el directorio de nivel superior: - - app/config.xml - - -Tenga en cuenta que antes de versión 3.3.1-0.2.0, el archivo existía en `app/www/config.xml` , y que tenerlo aquí es apoyado todavía. - -Cuando se usa la CLI para construir un proyecto, las versiones de este archivo pasivo se copian en varios `platforms/` subdirectorios, por ejemplo: - - app/platforms/ios/AppName/config.xml - app/platforms/blackberry10/www/config.xml - app/platforms/android/res/xml/config.xml - - -Esta sección detalla las opciones de configuración global y multiplataforma. Consulte las siguientes secciones para las opciones específicas de la plataforma: - -* Configuración de iOS -* [Configuración de Android](../guide/platforms/android/config.html) -* [Configuración de BlackBerry 10](../guide/platforms/blackberry10/config.html) - -Además de las diversas opciones de configuración detalladas a continuación, también puede configurar el conjunto básico de una aplicación de imágenes para cada plataforma de destino. Ver los iconos y salpicadura pantallas para obtener más información. - -## Elementos de configuración del núcleo - -Este ejemplo muestra el valor predeterminado `config.xml` generados por la CLI `create` comando, que se describe en la interfaz de línea de comandos: - - - HelloWorld - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - -Los siguientes elementos de configuración aparecen en el archivo `config.xml` de primer nivel y se admiten todas las plataformas soportadas Cordova: - -* Atributo `id` del elemento `` proporciona identificador de reversa-dominio de la aplicación y la `versión de` su número de versión completa expresada en notación de mayor/menor/parche. - - La etiqueta widget también puede tener atributos que especifican las versiones alternativas, a saber versionCode para Android y CFBundleVersion para iOS. Vea la sección de versiones adicionales debajo para más detalles. - -* El elemento `` especifica nombre formal de la aplicación, como aparece en la pantalla principal del dispositivo y dentro de la tienda app interfaces. - -* Los elementos `` y `` especifican metadatos e información de contacto que puede aparecer en anuncios de la tienda app. - -* Opcional `` elemento define la página de inicio de la aplicación en el directorio web de alto nivel de activos. El valor predeterminado es `index.html`, que habitualmente aparece en el directorio de nivel superior `www` de un proyecto. - -* elementos `` definen el conjunto de dominios externos que puede comunicarse con la aplicación. El valor predeterminado que se muestra arriba le permite acceder a cualquier servidor. Consulte a la guía de lista blanca de dominio para obtener más detalles. - -* La etiqueta `` establece varias opciones como pares de `nombre` / `valor de` atributos. De cada preferencia `name` es sensible a las mayúsculas. Muchas preferencias son exclusivos para plataformas específicas, como se indica en la parte superior de esta página. Las siguientes secciones detallan las preferencias que se aplican a más de una plataforma. - -### Versiones adicionales - -Ambos, Android y iOS apoyar una segunda cadena de versión (o número) además de la visible en tiendas de aplicaciones, [versionCode][2] para Android y [CFBundleVersion][3] para iOS. A continuación es un ejemplo que establece explícitamente versionCode y CFBundleVersion - - [2]: http://developer.android.com/tools/publishing/versioning.html - [3]: http://stackoverflow.com/questions/4933093/cfbundleversion-in-the-info-plist-upload-error - - - - -Si no se especifica la versión alternativa, se utilizarán los siguientes valores predeterminados: - - // assuming version = MAJOR.MINOR.PATCH-whatever - versionCode = PATCH + MINOR * 100 + MAJOR * 10000 - CFBundleVersion = "MAJOR.MINOR.PATCH" - - -## Preferencias globales - -Las siguientes preferencias globales se aplican a todas las plataformas: - -* `Fullscreen` permite ocultar la barra de estado en la parte superior de la pantalla. El valor predeterminado es `false`. Ejemplo: - - - - -## Preferencias de múltiples plataformas - -A más de una plataforma, pero no a todos ellos se aplican las siguientes preferencias: - -* `DisallowOverscroll` (boolean, valor predeterminado `false`): Si no quieres la interfaz para mostrar cualquier regeneración cuando los usuarios se pasa al principio o al final del contenido se establece en `true`. - - - - - Se aplica a iOS y Android. En iOS, overscroll gestos causa contenido a repuntar a su posición original. En Android, que producen un efecto brillante más sutil a lo largo del borde superior o inferior del contenido. - -* `BackgroundColor`: definir color de fondo de la aplicación. Admite un valor hexadecimal de cuatro bytes, con el primer byte que representan el canal alfa y valores RGB estándar para los siguientes tres bytes. Este ejemplo especifica azul: - - - - - Se aplica a Android y BlackBerry. Anula CSS disponibles en *todas* las plataformas, por ejemplo: `body{background-color: blue;}`. - -* `HideKeyboardFormAccessoryBar` (boolean, valor predeterminado `false`): establece en `true` para ocultar la barra de herramientas adicional que aparece encima del teclado, ayudando a los usuarios navegar desde la entrada de una forma a otra. - - - - - Se aplica para BlackBerry. - -* `Orientation`(string, el valor predeterminado de `default` ): le permite bloquear orientación y evitar que roten en respuesta a cambios en la orientación de la interfaz. Los valores posibles son `default` , `landscape` o `portrait` . Ejemplo: - - - - - Además, puede especificar cualquier valor de orientación específica de la plataforma si colocas el `` elemento dentro de un `` elemento: - - - - - - - Se aplica a Android, iOS, WP8, Amazon OS fuego y Firefox OS. - - **Nota**: el `default` valor significa Cordova tira a la entrada de preferencia de orientación del archivo de manifiesto/configuración de la plataforma que permite la plataforma a la suplencia a su comportamiento por defecto. - - Para iOS, para especificar tanto retrato y modo apaisado usted utilizaría la plataforma valor específico `all`: - - - - - -## La *función de* elemento - -Si utilizas el CLI para construir aplicaciones, usted utilice el comando `plugin` para habilitar dispositivo APIs. No se modifique el archivo `config.xml` de nivel superior, por lo que el elemento `< feature >` no se aplica a su flujo de trabajo. Si trabajas directamente en un SDK y usando el archivo `config.xml` de específicas de la plataforma como fuente, se utiliza la etiqueta `< feature >` para habilitar APIs de nivel de dispositivo y plugins externos. A menudo aparecen con valores personalizados en archivos específicos para cada plataforma `config.xml` . Por ejemplo, aquí es cómo especificar el dispositivo API para los proyectos de Android: - - - - - - -Aquí es cómo aparece el elemento de iOS proyectos: - - - - - - -Ver la referencia de la API para obtener más información sobre cómo especificar cada función. Consulte a la guía de desarrollo del Plugin para obtener más información sobre plugins. - -## El elemento *platform* - -Cuando utilice la CLI para construir aplicaciones, a veces es necesario especificar preferencias u otros elementos específicos para una determinada plataforma. Utilice el elemento `< platform >` para especificar la configuración que sólo debe aparecer en un archivo específico de plataforma única `config.xml` . Por ejemplo, aquí es cómo especificar que android sólo debe emplear la opción de pantalla completa: - - - - - - -## El elemento *hook* - -Representa la secuencia de comandos personalizada que será llamado por Córdoba cuando se produce cierta acción (por ejemplo, después se agrega el plugin o plataforma preparar lógica se invoca). Esto es útil cuando se necesita extender la funcionalidad de Cordova por defecto. Para más información vea la guía de los ganchos. - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/events/events.backbutton.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/events/events.backbutton.md b/www/docs/es/edge/cordova/events/events.backbutton.md deleted file mode 100644 index 48bdcae..0000000 --- a/www/docs/es/edge/cordova/events/events.backbutton.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: backbutton ---- - -# backbutton - -El evento se desencadena cuando el usuario presiona el botón back. - - document.addEventListener("backbutton", yourCallbackFunction, false); - - -## Detalles - -Para reemplazar el comportamiento predeterminado de botón atrás, registrar un detector de eventos para el evento `backbutton`, típicamente llamando `document.addEventListener` una vez que reciba el evento `[deviceready](events.deviceready.html)`. Ya no es necesario llamar a cualquier otro método para reemplazar el comportamiento del botón atrás. - -## Plataformas soportadas - -* Amazon fire OS -* Android -* BlackBerry 10 -* Windows Phone 8 - -## Ejemplo rápido - - document.addEventListener("backbutton", onBackKeyDown, false); - - function onBackKeyDown() { - // Handle the back button - } - - -## Ejemplo completo - - - - - Back Button Example - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/events/events.deviceready.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/events/events.deviceready.md b/www/docs/es/edge/cordova/events/events.deviceready.md deleted file mode 100644 index 77060e5..0000000 --- a/www/docs/es/edge/cordova/events/events.deviceready.md +++ /dev/null @@ -1,85 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: deviceready ---- - -# deviceready - -El evento se desencadena cuando Cordova está completamente cargado. - - document.addEventListener("deviceready", yourCallbackFunction, false); - - -## Detalles - -Este evento es esencial para cualquier aplicación. Señales de que dispositivo de Cordova APIs han cargado y están listas para acceder. - -Córdoba se compone de dos bases de código: nativo y JavaScript. Mientras se carga el código nativo, muestra una imagen de carga personalizada. Sin embargo, JavaScript sólo carga una vez que el DOM cargas. Esto significa que la aplicación web potencialmente puede llamar a una función Cordova JavaScript antes el código nativo correspondiente esté disponible. - -El evento `deviceready` se desencadena una vez Cordova ha cargado completamente. Una vez los fuegos del evento, con seguridad puede hacer llamadas a APIs de Cordova. Aplicaciones típicamente Instale un detector de eventos con `document.addEventListener` una vez que ha cargado el DOM del documento HTML. - -El evento `deviceready` se comporta algo diferentemente de otros. Cualquier controlador de eventos registrado después de los fuegos de `deviceready` evento tiene su función de callback llamada inmediatamente. - -## Plataformas soportadas - -* Amazon fire OS -* Android -* BlackBerry 10 -* iOS -* Tizen -* Windows Phone 8 -* Windows 8 - -## Ejemplo rápido - - document.addEventListener("deviceready", onDeviceReady, false); - - function onDeviceReady() { - // Now safe to use device APIs - } - - -## Ejemplo completo - - - - - Device Ready Example - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/events/events.endcallbutton.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/events/events.endcallbutton.md b/www/docs/es/edge/cordova/events/events.endcallbutton.md deleted file mode 100644 index d1f02e5..0000000 --- a/www/docs/es/edge/cordova/events/events.endcallbutton.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: endcallbutton ---- - -# endcallbutton - -Este evento se desencadena cuando el usuario presiona el botón de llamada final. - - document.addEventListener("endcallbutton", yourCallbackFunction, false); - - -## Detalles - -El evento reemplaza el comportamiento predeterminado de llamada final. - -Las aplicaciones normalmente deben utilizar `document.addEventListener` para conectar un detector de eventos una vez que se desencadene el evento `[deviceready](events.deviceready.html)`. - -## Plataformas soportadas - -* BlackBerry 10 - -## Ejemplo rápido - - document.addEventListener("endcallbutton", onEndCallKeyDown, false); - - function onEndCallKeyDown() { - // Handle the end call button - } - - -## Ejemplo completo - - - - - End Call Button Example - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/events/events.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/events/events.md b/www/docs/es/edge/cordova/events/events.md deleted file mode 100644 index 64e91f3..0000000 --- a/www/docs/es/edge/cordova/events/events.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: Eventos ---- - -# Eventos - -> Eventos de ciclo de vida de Cordova. - -## Tipos de eventos - -* [deviceready](events.deviceready.html) -* [pause](events.pause.html) -* [resume](events.resume.html) -* [backbutton](events.backbutton.html) -* [menubutton](events.menubutton.html) -* [searchbutton](events.searchbutton.html) -* [startcallbutton](events.startcallbutton.html) -* [endcallbutton](events.endcallbutton.html) -* [volumedownbutton](events.volumedownbutton.html) -* [volumeupbutton](events.volumeupbutton.html) - -## Añadida por [cordova-plugin-batery][1] eventos - - [1]: https://github.com/apache/cordova-plugin-battery-status/blob/master/README.md - -* batterycritical -* batterylow -* batterystatus - -## Añadida por [cordova-plugin-network-information de][2] eventos - - [2]: https://github.com/apache/cordova-plugin-network-information/blob/master/README.md - -* online -* offline \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/events/events.menubutton.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/events/events.menubutton.md b/www/docs/es/edge/cordova/events/events.menubutton.md deleted file mode 100644 index 88e8a55..0000000 --- a/www/docs/es/edge/cordova/events/events.menubutton.md +++ /dev/null @@ -1,84 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: menubutton ---- - -# menubutton - -El evento se desencadena cuando el usuario presiona el botón de menú. - - document.addEventListener("menubutton", yourCallbackFunction, false); - - -## Detalles - -Aplicar un controlador de eventos reemplaza el comportamiento de botón de menú predeterminado. - -Las aplicaciones normalmente deben utilizar `document.addEventListener` para conectar un detector de eventos una vez que se desencadene el evento `[deviceready](events.deviceready.html)`. - -## Plataformas soportadas - -* Amazon fire OS -* Android -* BlackBerry 10 - -## Ejemplo rápido - - document.addEventListener("menubutton", onMenuKeyDown, false); - - function onMenuKeyDown() { - // Handle the back button - } - - -## Ejemplo completo - - - - - Menu Button Example - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/events/events.pause.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/events/events.pause.md b/www/docs/es/edge/cordova/events/events.pause.md deleted file mode 100644 index 889a0cc..0000000 --- a/www/docs/es/edge/cordova/events/events.pause.md +++ /dev/null @@ -1,94 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: pause ---- - -# pause - -El evento se desencadena cuando una aplicación se coloca en el fondo. - - document.addEventListener("pause", yourCallbackFunction, false); - - -## Detalles - -El evento de `pause` se desencadena cuando la plataforma nativa pone la aplicación en el fondo, normalmente cuando el usuario cambia a otra aplicación. - -Las aplicaciones normalmente deben utilizar `document.addEventListener` para conectar un detector de eventos una vez que se desencadene el evento `[deviceready](events.deviceready.html)`. - -## Plataformas soportadas - -* Amazon fire OS -* Android -* BlackBerry 10 -* iOS -* Windows Phone 8 -* Windows 8 - -## Ejemplo rápido - - document.addEventListener("pause", onPause, false); - - function onPause() { - // Handle the pause event - } - - -## Ejemplo completo - - - - - Pause Example - - - - - - - - - -## iOS rarezas - -En el `pause` controlador, todas las llamadas a la API de Córdoba o plugins nativos que atraviesan Objective-C no funciona, junto con cualquier llamadas interactivas, tales como alertas o `console.log()` . Sólo son procesados cuando se reanuda la aplicación, en el siguiente bucle ejecución. - -El evento específico de iOS `resign` está disponible como una alternativa para hacer una` pause` y detecta cuando los usuarios activar el botón de **Lock** bloquear el dispositivo con la aplicación que se ejecuta en primer plano. Si la aplicación (y dispositivo) está habilitados para multitarea, esto está emparejado con un evento posterior `pause`, pero sólo bajo iOS 5. En efecto, todas las apps bloqueadas en iOS 5 que tienen habilitado multi-tasking son empujadas al fondo. Para que aplicaciones seguirá corriendo cuando encerrado bajo iOS 5, deshabilitar multi-tasking de la aplicación estableciendo [UIApplicationExitsOnSuspend][1] a `YES`. Debe ejecutar cuando se trabó en iOS 4, que esta configuración no importa. - - [1]: http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/events/events.resume.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/events/events.resume.md b/www/docs/es/edge/cordova/events/events.resume.md deleted file mode 100644 index bad3a4e..0000000 --- a/www/docs/es/edge/cordova/events/events.resume.md +++ /dev/null @@ -1,108 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: resume ---- - -# resume - -El evento se desencadena cuando una aplicación se recupera desde el fondo. - - document.addEventListener("resume", yourCallbackFunction, false); - - -## Detalles - -El evento `resume` se desencadena cuando la plataforma nativa saca la aplicación del fondo. - -Las aplicaciones normalmente deben utilizar `document.addEventListener` para conectar un detector de eventos una vez que se desencadene el evento `[deviceready](events.deviceready.html)`. - -## Plataformas soportadas - -* Amazon fire OS -* Android -* BlackBerry 10 -* iOS -* Windows Phone 8 -* Windows 8 - -## Ejemplo rápido - - document.addEventListener("resume", onResume, false); - - function onResume() { - // Handle the resume event - } - - -## Ejemplo completo - - - - - Resume Example - - - - - - - - - -## iOS rarezas - -Cualquier función interactiva llamado desde un controlador de eventos de `pausa` después ejecuta cuando se reanuda la aplicación, indicada por el evento `resume`. Estos incluyen alertas, `console.log()` y ninguna llamada de plugins o la API de Cordova, que pasan a través de Objective-C. - -* evento **active** - - El evento específico de iOS `active` está disponible como una alternativa para `resume` y detecta cuando los usuarios desactivan el botón de **Lock** para desbloquear el dispositivo con la aplicación que se ejecuta en primer plano. Si la aplicación (y dispositivo) está habilitados para multitarea, esto está emparejado con un evento posterior `resume`, pero sólo bajo iOS 5. En efecto, todas las apps bloqueadas en iOS 5 que tienen habilitado multi-tasking son empujadas al fondo. Para que aplicaciones seguirá corriendo cuando encerrado bajo iOS 5, deshabilitar multi-tasking de la aplicación estableciendo [UIApplicationExitsOnSuspend][1] a `YES`. Debe ejecutar cuando se trabó en iOS 4, que esta configuración no importa. - -* evento **resume** - - Cuando se llama desde un controlador de eventos de `resume`, funciones interactivas como `alert()` necesitan ser envuelto en una llamada `setTimeout()` con un valor de timeout de cero, o si la aplicación se bloquea. Por ejemplo: - - document.addEventListener("resume", onResume, false); - function onResume() { - setTimeout(function() { - // TODO: do your thing! - }, 0); - } - - - [1]: http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/events/events.searchbutton.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/events/events.searchbutton.md b/www/docs/es/edge/cordova/events/events.searchbutton.md deleted file mode 100644 index c1a1593..0000000 --- a/www/docs/es/edge/cordova/events/events.searchbutton.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: searchbutton ---- - -# searchbutton - -El evento se desencadena cuando el usuario presiona el botón de búsqueda en Android. - - document.addEventListener("searchbutton", yourCallbackFunction, false); - - -## Detalles - -Si necesita reemplazar el comportamiento de botón de búsqueda por defecto en Android puede registrar un detector de eventos para el evento 'botón'. - -Las aplicaciones normalmente deben utilizar `document.addEventListener` para conectar un detector de eventos una vez que se desencadene el evento `[deviceready](events.deviceready.html)`. - -## Plataformas soportadas - -* Android - -## Ejemplo rápido - - document.addEventListener("searchbutton", onSearchKeyDown, false); - - function onSearchKeyDown() { - // Handle the search button - } - - -## Ejemplo completo - - - - - Search Button Example - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/events/events.startcallbutton.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/events/events.startcallbutton.md b/www/docs/es/edge/cordova/events/events.startcallbutton.md deleted file mode 100644 index 7c7a444..0000000 --- a/www/docs/es/edge/cordova/events/events.startcallbutton.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: startcallbutton ---- - -# startcallbutton - -El evento se desencadena cuando el usuario presiona el botón de llamada de inicio. - - document.addEventListener("startcallbutton", yourCallbackFunction, false); - - -## Detalles - -Si necesita reemplazar el comportamiento predeterminado de llamada start puede registrar un detector de eventos para el evento `startcallbutton`. - -Las aplicaciones normalmente deben utilizar `document.addEventListener` para conectar un detector de eventos una vez que se desencadene el evento `[deviceready](events.deviceready.html)`. - -## Plataformas soportadas - -* BlackBerry 10 - -## Ejemplo rápido - - document.addEventListener("startcallbutton", onStartCallKeyDown, false); - - function onStartCallKeyDown() { - // Handle the start call button - } - - -## Ejemplo completo - - - - - Start Call Button Example - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/events/events.volumedownbutton.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/events/events.volumedownbutton.md b/www/docs/es/edge/cordova/events/events.volumedownbutton.md deleted file mode 100644 index ea1a946..0000000 --- a/www/docs/es/edge/cordova/events/events.volumedownbutton.md +++ /dev/null @@ -1,83 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: volumedownbutton ---- - -# volumedownbutton - -El evento se desencadena cuando el usuario presiona el volumen botón. - - document.addEventListener("volumedownbutton", yourCallbackFunction, false); - - -## Detalles - -Si necesita reemplazar el volumen predeterminado por comportamiento puede registrar un detector de eventos para el evento `volumedownbutton`. - -Las aplicaciones normalmente deben utilizar `document.addEventListener` para conectar un detector de eventos una vez que se desencadene el evento `[deviceready](events.deviceready.html)`. - -## Plataformas soportadas - -* BlackBerry 10 -* Android - -## Ejemplo rápido - - document.addEventListener("volumedownbutton", onVolumeDownKeyDown, false); - - function onVolumeDownKeyDown() { - // Handle the volume down button - } - - -## Ejemplo completo - - - - - Volume Down Button Example - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/events/events.volumeupbutton.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/events/events.volumeupbutton.md b/www/docs/es/edge/cordova/events/events.volumeupbutton.md deleted file mode 100644 index 4ab95cd..0000000 --- a/www/docs/es/edge/cordova/events/events.volumeupbutton.md +++ /dev/null @@ -1,83 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: volumeupbutton ---- - -# volumeupbutton - -El evento se desencadena cuando el usuario presiona el botón de volumen. - - document.addEventListener("volumeupbutton", yourCallbackFunction, false); - - -## Detalles - -Si necesita reemplazar el volumen predeterminado del comportamiento puede registrar un detector de eventos para el evento `volumeupbutton`. - -Las aplicaciones normalmente deben utilizar `document.addEventListener` para conectar un detector de eventos una vez que se desencadene el evento `[deviceready](events.deviceready.html)`. - -## Plataformas soportadas - -* BlackBerry 10 -* Android - -## Ejemplo rápido - - document.addEventListener("volumeupbutton", onVolumeUpKeyDown, false); - - function onVolumeUpKeyDown() { - // Handle the volume up button - } - - -## Ejemplo completo - - - - - Volume Up Button Example - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/plugins/pluginapis.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/plugins/pluginapis.md b/www/docs/es/edge/cordova/plugins/pluginapis.md deleted file mode 100644 index c0c5d41..0000000 --- a/www/docs/es/edge/cordova/plugins/pluginapis.md +++ /dev/null @@ -1,139 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: Plugin APIs ---- - -# Plugin APIs - -Cordova naves con un mínimo conjunto de APIs, y proyectos añadir qué APIs adicionales que necesitan a través de plugins. - -Usted puede buscar a través de todos los plugins existentes (incluidos los plugins de terceros) en [npm][1]. - - [1]: https://www.npmjs.com/search?q=ecosystem%3Acordova - -El conjunto tradicional de núcleo Cordova plugins son como sigue: - -* [Estado de la batería][2] - - > Monitorear el estado de la batería del dispositivo. - -* [Cámara][3] - - > Capturar una foto con la cámara del dispositivo. - -* [Consola][4] - - > Añadir capacidad adicional a console.log(). - -* [Contactos][5] - - > Trabajar con la base de datos de contacto de dispositivos. - -* [Dispositivo][6] - - > Reunir información específica del dispositivo. - -* [Movimiento de dispositivo (acelerómetro)][7] - - > Puntee en sensor de movimiento del dispositivo. - -* [Orientación de dispositivo (brújula)][8] - - > Obtener la dirección que apunta el dispositivo. - -* [Los cuadros de diálogo][9] - - > Notificaciones de dispositivo visual. - -* [FileSystem][10] - - > Enganche en el sistema de archivo nativo a través de JavaScript. - -* [Transferencia de archivos][11] - - > Enganche en el sistema de archivo nativo a través de JavaScript. - -* [Geolocalización][12] - - > Conocer la ubicación de su aplicación. - -* [Globalización][13] - - > Permiten la representación de objetos específicos de una configuración regional. - -* [InAppBrowser][14] - - > Lanzamiento de URLs en otra instancia del explorador en la aplicación. - -* [Los medios de comunicación][15] - - > Grabar y reproducir archivos de audio. - -* [Captura de los medios de comunicación][16] - - > Capturar archivos de medios usando las aplicaciones de captura de los medios de comunicación del dispositivo. - -* [Información de red (conexión)][17] - - > Comprobar rápidamente el estado de la red e información de la red celular. - -* [SplashScreen][18] - - > Mostrar / ocultar la pantalla de presentación de solicitudes. - -* [Vibración][19] - - > Una API para que vibre el dispositivo. - -* [Barra de estado][20] - - > Una API para mostrar, ocultando y configurar fondo de barra de estado. - -* [Lista blanca][21] - - > Un plugin para peticiones de red blanca. Debe instalar para tener cualquier petición de red en sus aplicaciones. - -* [Legado Whitelist][22] - - > Un plugin para usar el viejo estilo de lista blanca antes de que era arrancado y cambió en el complemento de la lista blanca. - - [2]: https://www.npmjs.com/package/cordova-plugin-battery-status - [3]: https://www.npmjs.com/package/cordova-plugin-camera - [4]: https://www.npmjs.com/package/cordova-plugin-console - [5]: https://www.npmjs.com/package/cordova-plugin-contacts - [6]: https://www.npmjs.com/package/cordova-plugin-device - [7]: https://www.npmjs.com/package/cordova-plugin-device-motion - [8]: https://www.npmjs.com/package/cordova-plugin-device-orientation - [9]: https://www.npmjs.com/package/cordova-plugin-dialogs - [10]: https://www.npmjs.com/package/cordova-plugin-file - [11]: https://www.npmjs.com/package/cordova-plugin-file-transfer - [12]: https://www.npmjs.com/package/cordova-plugin-geolocation - [13]: https://www.npmjs.com/package/cordova-plugin-globalization - [14]: https://www.npmjs.com/package/cordova-plugin-inappbrowser - [15]: https://www.npmjs.com/package/cordova-plugin-media - [16]: https://www.npmjs.com/package/cordova-plugin-media-capture - [17]: https://www.npmjs.com/package/cordova-plugin-network-information - [18]: https://www.npmjs.com/package/cordova-plugin-splashscreen - [19]: https://www.npmjs.com/package/cordova-plugin-vibration - [20]: https://www.npmjs.com/package/cordova-plugin-statusbar - [21]: https://www.npmjs.com/package/cordova-plugin-whitelist - [22]: https://www.npmjs.com/package/cordova-plugin-legacy-whitelist - -Las traducciones de Inglés de estos documentos plugin pueden encontrarse visitando los repositorios github plugin y buscando en la carpeta docs \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/storage/database/database.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/storage/database/database.md b/www/docs/es/edge/cordova/storage/database/database.md deleted file mode 100644 index 2438ab2..0000000 --- a/www/docs/es/edge/cordova/storage/database/database.md +++ /dev/null @@ -1,119 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: Base de datos ---- - -# Base de datos - -Proporciona acceso a una base de datos SQL. - -## Métodos - -* **transacciones**: una transacción de base de datos se ejecuta. - -* **changeVersion**: permite scripts para verificar el número de versión y cambiarlo al actualizar un esquema automáticamente. - -## Detalles - -El `window.openDatabase()` método devuelve un `Database` objeto. - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 6.0 o superior) -* iOS -* Tizen - -## Ejemplo rápida transacción - - function populateDB(tx) { - tx.executeSql('DROP TABLE IF EXISTS DEMO'); - tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)'); - tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")'); - tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")'); - } - - function errorCB(err) { - alert("Error processing SQL: "+err.code); - } - - function successCB() { - alert("success!"); - } - - var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000); - db.transaction(populateDB, errorCB, successCB); - - -## Ejemplo rápido cambio versión - - var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000); - db.changeVersion("1.0", "1.1"); - - -## Ejemplo completo - - - - - Storage Example - - - - - -

Example

-

Database

- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/storage/localstorage/localstorage.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/storage/localstorage/localstorage.md b/www/docs/es/edge/cordova/storage/localstorage/localstorage.md deleted file mode 100644 index d3a50f3..0000000 --- a/www/docs/es/edge/cordova/storage/localstorage/localstorage.md +++ /dev/null @@ -1,124 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: localStorage ---- - -# localStorage - -Proporciona acceso a de la W3C [interfaz Web Storage][1] - - [1]: http://dev.w3.org/html5/webstorage/#the-localstorage-attribute - - var permanentStorage = window.localStorage; - var tempStorage = window.sessionStorage; - - -## Métodos - -* **clave**: devuelve el nombre de la llave en la posición especificada. - -* **getItem**: devuelve el elemento identificado por la clave especificada. - -* **setItem**: asigna el valor de un elemento con llave. - -* **removeItem**: quita el elemento identificado por la clave especificada. - -* **borrar**: elimina todos los pares clave/valor. - -## Detalles - -La `window.localStorage` interfaz implementa del W3C [interfaz Web Storage][2]. Una aplicación puede utilizar para guardar los datos persistentes usando pares de clave y valor. La `window.sessionStorage` interfaz funciona del mismo modo en todos los sentidos, excepto que todos los datos se borra cada vez que la aplicación se cierra. Cada base de datos proporciona un espacio de nombre separado. - - [2]: http://dev.w3.org/html5/webstorage/ - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 6.0 o superior) -* iOS -* Tizen -* Windows Phone 7 y 8 - -## Ejemplo rápido clave - - var keyName = window.localStorage.key(0); - - -## Ejemplo rápido Item set - - window.localStorage.setItem("key", "value"); - - -## Conseguir Item ejemplo rápido - - var value = window.localStorage.getItem("key"); - // value is now equal to "value" - - -## Quitar elemento ejemplo rápido - - window.localStorage.removeItem("key"); - - -## Claro ejemplo rápido - - window.localStorage.clear(); - - -## Ejemplo completo - - - - - Storage Example - - - - - -

Example

-

localStorage

- - - - -## Windows Phone 7 rarezas - -Notación de puntos es *no* disponible en Windows Phone 7. Asegúrese de utilizar `setItem` o `getItem` , en lugar de acceder a las teclas directamente desde el objeto de almacenamiento, tales como`window.localStorage.someKey`. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/storage/parameters/display_name.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/storage/parameters/display_name.md b/www/docs/es/edge/cordova/storage/parameters/display_name.md deleted file mode 100644 index 571861c..0000000 --- a/www/docs/es/edge/cordova/storage/parameters/display_name.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: database_displayname ---- - -# database_displayname - -El nombre de la base de datos de visualización. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/storage/parameters/name.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/storage/parameters/name.md b/www/docs/es/edge/cordova/storage/parameters/name.md deleted file mode 100644 index f258781..0000000 --- a/www/docs/es/edge/cordova/storage/parameters/name.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: database_name ---- - -# database_name - -El nombre de la base de datos. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/storage/parameters/size.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/storage/parameters/size.md b/www/docs/es/edge/cordova/storage/parameters/size.md deleted file mode 100644 index 891d8bc..0000000 --- a/www/docs/es/edge/cordova/storage/parameters/size.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: database_size ---- - -# database_size - -El tamaño de la base de datos en bytes. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/storage/parameters/version.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/storage/parameters/version.md b/www/docs/es/edge/cordova/storage/parameters/version.md deleted file mode 100644 index 979dc7c..0000000 --- a/www/docs/es/edge/cordova/storage/parameters/version.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: database_version ---- - -# database_version - -La versión de la base de datos. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/storage/sqlerror/sqlerror.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/storage/sqlerror/sqlerror.md b/www/docs/es/edge/cordova/storage/sqlerror/sqlerror.md deleted file mode 100644 index 091ed27..0000000 --- a/www/docs/es/edge/cordova/storage/sqlerror/sqlerror.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: SQLError ---- - -# SQLError - -Un objeto `SQLError` se produce cuando se produce un error. - -## Propiedades - -* **code**: uno de los códigos de error predefinido enumerados a continuación. - -* **message**: una descripción del error. - -## Constantes - -* `SQLError.UNKNOWN_ERR` -* `SQLError.DATABASE_ERR` -* `SQLError.VERSION_ERR` -* `SQLError.TOO_LARGE_ERR` -* `SQLError.QUOTA_ERR` -* `SQLError.SYNTAX_ERR` -* `SQLError.CONSTRAINT_ERR` -* `SQLError.TIMEOUT_ERR` - -## Descripción - -El objeto `SQLError` se produce cuando se produce un error al manipular una base de datos. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/es/edge/cordova/storage/sqlresultset/sqlresultset.md ---------------------------------------------------------------------- diff --git a/www/docs/es/edge/cordova/storage/sqlresultset/sqlresultset.md b/www/docs/es/edge/cordova/storage/sqlresultset/sqlresultset.md deleted file mode 100644 index e485cf2..0000000 --- a/www/docs/es/edge/cordova/storage/sqlresultset/sqlresultset.md +++ /dev/null @@ -1,85 +0,0 @@ ---- -license: > - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -title: SQLResultSet ---- - -# SQLResultSet - -Cuando se llama al método de un objeto `[SQLTransaction](../sqltransaction/sqltransaction.html)` `executeSql` la devolución de llamada especificado se ejecuta con un parámetro `SQLResultSet`. - -## Propiedades - -* **insertId**: el identificador de fila de la fila que instrucción SQL de la `SQLResultSet` del objeto insertado en la base de datos. - -* **rowsAffected**: cambió el número de filas en la sentencia SQL, cero si la declaración no afectó a ninguna fila. - -* **rows**: un `[SQLResultSetRowList](../sqlresultsetrowlist/sqlresultsetrowlist.html)` que representan las filas devueltas, vacío si no hay filas son devueltos. - -## Detalles - -Cuando se llama al método de un objeto `[SQLTransaction](../sqltransaction/sqltransaction.html)` `executeSql` la devolución de llamada especificado se ejecuta con un parámetro `SQLResultSet` que contiene tres propiedades: - -* El `insertId` devuelve el número de fila de una instrucción de inserción de SQL successly. Si el SQL no introduzca ninguna fila, el `insertId` no está establecida. - -* El `rowsAffected` siempre es `` para un SQL `select` declaración. Para `insert` o `update` devuelve el número de declaraciones las filas modificación. - -* La final `SQLResultSetList` contiene los datos devueltos de una instrucción select de SQL. - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 6.0 o superior) -* iOS -* Tizen - -## Ejecutar SQL ejemplo rápido - - function queryDB(tx) {tx.executeSql ('SELECT * de DEMO', [], querySuccess, errorCB);} - - function querySuccess (tx, resultados) {console.log ("devuelve filas =" + results.rows.length); - / / Esto será cierto ya que fue una instrucción select y rowsAffected fue 0 si (! results.rowsAffected) {console.log ('no hay filas afectadas!'); - devolver false; - } / / para una instrucción insert, esta propiedad devuelve el ID de la última fila insertada console.log ("última inserta fila ID =" + results.insertId);} - - function errorCB(err) {alert ("Error al procesar SQL:" + err.code);} - - var db = window.openDatabase ("Database", "1.0", "Demo Córdova", 200000); - DB.Transaction (queryDB, errorCB); - - -## Ejemplo completo - - < html >< cabeza >< título > almacenamiento ejemplo < / título >< de la escritura de tipo = "text/javascript" charset = "utf-8" src="cordova.js" >< / script >< de la escritura de tipo = "text/javascript" charset = "utf-8" > / / espera para que las bibliotecas del dispositivo API cargar / / document.addEventListener ("deviceready", onDeviceReady, false); - - / / Rellenar la base de datos / / function populateDB(tx) {tx.executeSql ('DROP TABLE IF EXISTS DEMO'); - tx.executeSql ('crear tabla si no existe DEMO (id único, data)'); - tx.executeSql (' introduzca en DEMO (identificación, datos) valores (1, "primera fila")'); - tx.executeSql ('introduzca en DEMO (identificación, datos) VALUES (2, "Segunda fila")'); - } / / Consulta la base de datos / / function queryDB(tx) {tx.executeSql ('SELECT * de DEMO', [], querySuccess, errorCB); - } / / Consulta el callback de éxito / / function querySuccess (tx, resultados) {console.log ("devuelve filas =" + results.rows.length); - / / Esto será cierto ya que fue una instrucción select y rowsAffected fue 0 si (! results.rowsAffected) {console.log ('no hay filas afectadas!'); - devolver false; - } / / para una instrucción insert, esta propiedad devuelve el ID de la última fila insertada console.log ("última inserta fila ID =" + results.insertId); - } / / Callback de error de transacción / / function errorCB(err) {console.log ("Error al procesar SQL:" + err.code); - } / / Callback éxito de transacción / / function successCB() {var db = window.openDatabase ("Database", "1.0", "Demo Córdova", 200000); - DB.Transaction (queryDB, errorCB); - } / / dispositivo APIs están disponibles / / function onDeviceReady() {var db = window.openDatabase ("Database", "1.0", "Demo Córdova", 200000); - DB.Transaction (populateDB, errorCB, successCB); - } < /script >< / cabeza >< cuerpo >< h1 > ejemplo < / h1 >< p > base de datos < /p >< cuerpo / >< / html > \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org