http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/config_ref/images.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/config_ref/images.md b/www/docs/de/edge/config_ref/images.md deleted file mode 100644 index 97e9c03..0000000 --- a/www/docs/de/edge/config_ref/images.md +++ /dev/null @@ -1,213 +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: Symbole und Splash-Screens ---- - -# Symbole und Splash-Screens - -In diesem Abschnitt veranschaulicht, wie einer app-Symbol und optionale Splash-Screen für verschiedene Plattformen, sowohl bei der Arbeit in Cordova CLI (beschrieben in The Command-Line Interface) konfigurieren oder mit plattformspezifischen SDK-Tools (ausführlich in den Plattform-Führern). - -## Symbole in der CLI konfigurieren - -Beim Arbeiten in der CLI Sie können definieren app obige über `<icon>` Element ( `config.xml` ). Wenn Sie kein Symbol angeben ist das Apache-Cordova-Logo verwendet. - - <icon src="res/ios/icon.png" platform="ios" width="57" height="57" density="mdpi" /> - - -Src: (erforderlich) gibt den Speicherort der Bilddatei, im Verhältnis zu Ihrem Projektverzeichnis - -Plattform: (optional) Zielplattform - -Breite: (optional) Symbol Breite in Pixeln - -Höhe: (optional) Symbol Höhe in Pixel - -Dichte: (optional)-Android-spezifisch, gibt Symbol Dichte - -Die folgende Konfiguration kann verwendet werden, einzelne Standard-Icon zu definieren, die für alle Plattformen verwendet werden. - - <icon src="res/icon.png" /> - - -Für jede Plattform können Sie auch eine pixelgenaue Icons set an unterschiedliche Bildschirmauflösungen angepasst definieren. - -Amazon Fire OS - - <platform name="amazon-fireos"> - <icon src="res/android/ldpi.png" density="ldpi" /> - <icon src="res/android/mdpi.png" density="mdpi" /> - <icon src="res/android/hdpi.png" density="hdpi" /> - <icon src="res/android/xhdpi.png" density="xhdpi" /> - </platform> - - -Android - - <platform name="android"> - <icon src="res/android/ldpi.png" density="ldpi" /> - <icon src="res/android/mdpi.png" density="mdpi" /> - <icon src="res/android/hdpi.png" density="hdpi" /> - <icon src="res/android/xhdpi.png" density="xhdpi" /> - </platform> - - -BlackBerry10 - - <platform name="blackberry10"> - <icon src="res/bb10/icon-86.png" /> - <icon src="res/bb10/icon-150.png" /> - </platform> - - -Finden Sie BlackBerry Dokumentation gezielt mehrere GröÃen und Gebietsschemas. [http://developer.blackberry.com/html5/documentation/icon_element.html] - -Firefox OS - - <platform name="firefoxos"> - <icon src="res/ff/logo.png" width="60" height="60" /> - </platform> - - -iOS - - <platform name="ios"> - <!-- iOS 8.0+ --> - <!-- iPhone 6 Plus --> - <icon src="res/ios/icon...@3x.png" width="180" height="180" /> - <!-- iOS 7.0+ --> - <!-- iPhone / iPod Touch --> - <icon src="res/ios/icon-60.png" width="60" height="60" /> - <icon src="res/ios/icon...@2x.png" width="120" height="120" /> - <!-- iPad --> - <icon src="res/ios/icon-76.png" width="76" height="76" /> - <icon src="res/ios/icon...@2x.png" width="152" height="152" /> - <!-- iOS 6.1 --> - <!-- Spotlight Icon --> - <icon src="res/ios/icon-40.png" width="40" height="40" /> - <icon src="res/ios/icon...@2x.png" width="80" height="80" /> - <!-- iPhone / iPod Touch --> - <icon src="res/ios/icon.png" width="57" height="57" /> - <icon src="res/ios/i...@2x.png" width="114" height="114" /> - <!-- iPad --> - <icon src="res/ios/icon-72.png" width="72" height="72" /> - <icon src="res/ios/icon...@2x.png" width="144" height="144" /> - <!-- iPhone Spotlight and Settings Icon --> - <icon src="res/ios/icon-small.png" width="29" height="29" /> - <icon src="res/ios/icon-sm...@2x.png" width="58" height="58" /> - <!-- iPad Spotlight and Settings Icon --> - <icon src="res/ios/icon-50.png" width="50" height="50" /> - <icon src="res/ios/icon...@2x.png" width="100" height="100" /> - </platform> - - -Tizen - - <platform name="tizen"> - <icon src="res/tizen/icon-128.png" width="128" height="128" /> - </platform> - - -Windows Phone8 - - <platform name="wp8"> - <icon src="res/wp/ApplicationIcon.png" width="99" height="99" /> - <!-- tile image --> - <icon src="res/wp/Background.png" width="159" height="159" /> - </platform> - - -Windows8 - - <platform name="windows8"> - <icon src="res/windows8/logo.png" width="150" height="150" /> - <icon src="res/windows8/smalllogo.png" width="30" height="30" /> - <icon src="res/windows8/storelogo.png" width="50" height="50" /> - </platform> - - -## Splash-Screens in der CLI konfigurieren - -In der obersten Ebene `config.xml` Datei (nicht diejenige in `platforms` ), Konfigurations-Elemente wie die hier angegebenen hinzufügen. - -# Beispiel-Konfiguration - -Bitte beachten Sie, dass der Wert des Attributs "Src" relativ zum Projektverzeichnis und nicht in das Www-Verzeichnis. Sie können das Quellbild benennen, was Sie wollen. Der interne Name in der app hängen von Cordova. - - <platform name="android"> - <!-- you can use any density that exists in the Android project --> - <splash src="res/screen/android/splash-land-hdpi.png" density="land-hdpi"/> - <splash src="res/screen/android/splash-land-ldpi.png" density="land-ldpi"/> - <splash src="res/screen/android/splash-land-mdpi.png" density="land-mdpi"/> - <splash src="res/screen/android/splash-land-xhdpi.png" density="land-xhdpi"/> - - <splash src="res/screen/android/splash-port-hdpi.png" density="port-hdpi"/> - <splash src="res/screen/android/splash-port-ldpi.png" density="port-ldpi"/> - <splash src="res/screen/android/splash-port-mdpi.png" density="port-mdpi"/> - <splash src="res/screen/android/splash-port-xhdpi.png" density="port-xhdpi"/> - </platform> - - <platform name="ios"> - <!-- images are determined by width and height. The following are supported --> - <splash src="res/screen/ios/Default~iphone.png" width="320" height="480"/> - <splash src="res/screen/ios/Default@2x~iphone.png" width="640" height="960"/> - <splash src="res/screen/ios/Default-Portrait~ipad.png" width="768" height="1024"/> - <splash src="res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" height="2048"/> - <splash src="res/screen/ios/Default-Landscape~ipad.png" width="1024" height="768"/> - <splash src="res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" height="1536"/> - <splash src="res/screen/ios/Default-568h@2x~iphone.png" width="640" height="1136"/> - <splash src="res/screen/ios/Default-667h.png" width="750" height="1334"/> - <splash src="res/screen/ios/Default-736h.png" width="1242" height="2208"/> - <splash src="res/screen/ios/Default-Landscape-736h.png" width="2208" height="1242"/> - </platform> - - <platform name="wp8"> - <!-- images are determined by width and height. The following are supported --> - <splash src="res/screen/wp8/SplashScreenImage.jpg" width="768" height="1280"/> - </platform> - - <platform name="windows8"> - <!-- images are determined by width and height. The following are supported --> - <splash src="res/screen/windows8/splashscreen.png" width="620" height="300"/> - </platform> - - <platform name="blackberry10"> - <!-- Add a rim:splash element for each resolution and locale you wish --> - <!-- http://developer.blackberry.com/html5/documentation/rim_splash_element.html --> - <rim:splash src="res/screen/windows8/splashscreen.png"/> - </platform> - - - <preference name="SplashScreenDelay" value="10000" /> - - -# Unterstützte Plattformen - -Ab sofort (Cordova 3.5.0 Juli 2014) die folgenden Plattformen unterstützen Splash-Screens. - - android - ios - wp8 - windows8 - blackberry10 - - -# SplashScreen-Plugin - -Apache Cordova bietet auch spezielle Splash-Bildschirm-Plugin, das verwendet werden könnte, um programmgesteuert anzeigen und Ausblenden eines BegrüÃungsbildschirms während Anwendung Start https://github.com/apache/cordova-plugin-splashscreen \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/config_ref/index.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/config_ref/index.md b/www/docs/de/edge/config_ref/index.md deleted file mode 100644 index 3758eea..0000000 --- a/www/docs/de/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: Die Datei config.xml ---- - -# Die Datei config.xml - -Zahlreiche Aspekte der Verhaltensweisen einer App können über die globale Konfigurationsdatei `config.xml` gesteuert werden. Diese plattformunabhängig XML-Datei ist auf der W3C [Gepackte Webanwendungen (Widgets)][1] Spezifikation. AuÃerdem können hierüber erweiterte Kern-Cordova-API-Funktionen, Plugins und Plattform spezifische Einstellungen angeben werden. - - [1]: http://www.w3.org/TR/widgets/ - -Für Projekte, die mit der Cordova-CLI (beschrieben in The Command-Line Interface) erstellt werden, kann diese Datei im obersten Verzeichnis gefunden werden: - - app/config.xml - - -Beachten Sie, die Datei bei den Versionen 3.3.1-0.2.0 im Ordner `app/www/config.xml` zu finden ist, und das dies nach wie vor unterstützt wird. - -Wenn die CLI ein Projekt erstellen, werden in verschiedenen Versionen dieser Datei passiv kopiert `platforms/` Unterverzeichnisse, zum Beispiel: - - app/platforms/ios/AppName/config.xml - app/platforms/blackberry10/www/config.xml - app/platforms/android/res/xml/config.xml - - -Dieser Abschnitt beschreibt globale und Cross-Plattform-Konfigurationsoptionen. Finden Sie in den folgenden Abschnitten für Plattform-spezifische Optionen: - -* [iOS Konfiguration](../guide/platforms/ios/config.html) -* [Android Konfiguration](../guide/platforms/android/config.html) -* [BlackBerry 10 Konfiguration](../guide/platforms/blackberry10/config.html) - -Neben der verschiedenen Konfigurationsoptionen unten können Sie auch eine Anwendung Kernsatz von Bildern für jede Zielplattform konfigurieren. Weitere Informationen finden Sie unter [Symbole und Splash-Screens](images.html). - -## Kern-Konfigurationselemente - -In diesem Beispiel wird den Standardwert `config.xml` erzeugt durch der CLI `create` Befehl, beschrieben in der Command-Line Interface: - - <widget id="com.example.hello" version="0.0.1"> - <name>HelloWorld</name> - <description> - A sample Apache Cordova application that responds to the deviceready event. - </description> - <author email="d...@callback.apache.org" href="http://cordova.io"> - Apache Cordova Team - </author> - <content src="index.html" /> - <access origin="*" /> - </widget> - - -Die folgenden Konfigurationselemente in der obersten Ebene angezeigt `config.xml` Datei und werden auf allen unterstützten Cordova-Plattformen unterstützt: - -* Die `<widget>` des Elements `id` Attribut bietet die app-Reverse-Domänen-ID, und der `version` seine vollständige Versionsnummer in Major/Minor/Patch-Notation ausgedrückt. - - Das Widget-Tag kann auch Attribute verfügen, die alternative Versionen, nämlich VersionCode für Android und CFBundleVersion für iOS angeben. Finden Sie im Abschnitt zusätzliche Versionsverwaltung unten für Details. - -* Die `<name>` Element gibt die app formalen Namen, wie er auf home-Bildschirm des Geräts und im app-Store-Schnittstellen erscheint. - -* Die `<description>` und `<author>` Elemente geben, Metadaten und Kontaktinformationen, die im app-Shop-Angebote angezeigt werden kann. - -* Der optionale `<content>` -Element definiert die app Startseite in der obersten Ebene Webverzeichnis Vermögenswerte. Der Standardwert ist `index.html` , die üblicherweise in einem Projekt angezeigt wird, ist der obersten Ebene `www` Verzeichnis. - -* `<access>`Elemente definieren den Satz der externen Domänen, die, denen die app erlaubt ist, zu kommunizieren. Der Standardwert, der oben gezeigten ermöglicht es, jeden beliebigen Server zugreifen. Finden Sie im Domain-Whitelist-Guide für Details. - -* Die `<preference>` Tag stellt verschiedene Optionen als Paare von `name` / `value` Attribute. Jede Vorliebe `name` ist case-insensitive. Viele Einstellungen sind nur für bestimmte Plattformen, wie oben auf dieser Seite aufgeführt. In den folgenden Abschnitten beschreiben die Einstellungen, die für mehrere Plattformen gelten. - -### Zusätzliche Versionsverwaltung - -Sowohl Android als auch iOS Unterstützung eine zweite Versionszeichenfolge (oder Anzahl) zusätzlich zu dem oben sichtbar im app-Speicher, [VersionCode][2] für Android und [CFBundleVersion][3] für iOS. Unten ist ein Beispiel, das VersionCode und CFBundleVersion explizit festlegt - - [2]: http://developer.android.com/tools/publishing/versioning.html - [3]: http://stackoverflow.com/questions/4933093/cfbundleversion-in-the-info-plist-upload-error - - <widget id="io.cordova.hellocordova" - version="0.0.1" - android-versionCode="7" - ios-CFBundleVersion="3.3.3"> - - -Wenn alternativversion nicht angegeben ist, werden die folgenden Standardwerte verwendet: - - // assuming version = MAJOR.MINOR.PATCH-whatever - versionCode = PATCH + MINOR * 100 + MAJOR * 10000 - CFBundleVersion = "MAJOR.MINOR.PATCH" - - -## Globale Voreinstellungen - -Die folgenden globalen Einstellungen gelten für alle Plattformen: - -* `Fullscreen`können Sie die Statusleiste am oberen Bildschirmrand ausblenden. Der Standardwert ist `false` . Beispiel: - - <preference name="Fullscreen" value="true" /> - - -## Multi-Plattform-Einstellungen - -Die folgenden Einstellungen gelten für mehrere Plattformen, jedoch nicht auf alle von ihnen: - -* `DisallowOverscroll`(Boolean, wird standardmäÃig auf `false` ): Legen Sie auf `true` Wenn Sie nicht möchten, dass die Schnittstelle jedes Feedback anzeigen, wenn Benutzer die Anfang oder Ende des Inhalts einen Bildlauf durchführen. - - <preference name="DisallowOverscroll" value="true"/> - - - Gilt für Android und iOS. Auf iOS, Overscroll Gesten Ursache Inhalt zurück an seine ursprüngliche Position gut zu machen. Auf Android produzieren sie ein subtiler Glüheffekt am oberen oder unteren Rand des Inhalts. - -* `BackgroundColor`: Die app-Hintergrundfarbe festgelegt. Unterstützt eine 4-Byte hex-Wert, mit dem ersten Byte, die den Alphakanal und standard-RGB-Werte für die folgenden drei Bytes. In diesem Beispiel gibt blau: - - <preference name="BackgroundColor" value="0xff0000ff"/> - - - Gilt für Android und BlackBerry. Ãberschreibt CSS anderweitig verfügbar auf *allen* Plattformen, zum Beispiel:`body{background-color:blue}`. - -* `HideKeyboardFormAccessoryBar`(Boolean, wird standardmäÃig auf `false` ): Legen Sie auf `true` die zusätzliche Symbolleiste ausblenden, die oberhalb der Tastatur, wodurch angezeigt wird Benutzer aus einem Formulareingabe zum anderen navigieren. - - <preference name="HideKeyboardFormAccessoryBar" value="true"/> - - - Gilt für BlackBerry. - -* `Orientation` (string, der Standardwert ist `default`): erlaubt Ihnen lock Orientierung und verhindern, dass die Schnittstelle rotierend in Reaktion auf Ãnderungen in der Ausrichtung. Mögliche Werte sind `defaul`, `landscape` oder `portrait`. Beispiel: - - <preference name="Orientation" value="landscape" /> - - - Darüber hinaus können Sie Plattform-spezifischen Ausrichtung Wert angeben, wenn Sie das `<preference>` Element innerhalb eines `<plattform>` Elements platzieren: - - <platform name="android"> - <preference name="Orientation" value="sensorLandscape" /> - </platform> - - - Gilt für Android, iOS, WP8, Amazon Fire OS und Firefox-OS. - - **Hinweis**: `der default` bedeutet Cordova entfernt den Orientierung-Präferenz-Eintrag aus der Plattform Manifest/Konfigurationsdatei ermöglicht die Plattform zum Ausweichen auf sein normales Verhalten. - - Für iOS um geben beide Porträt & Landschaft Modus verwenden der Plattform bestimmten Wert `all`Sie: - - <platform name="ios"> - <preference name="Orientation" value="all" /> - </platform> - -## Das *Feature* Element - -Wenn Sie die CLI verwenden, um Anwendungen zu erstellen, verwenden Sie den `plugin` -Befehl Gerät APIs zu aktivieren. Dies ändert nicht die Datei auf oberster Ebene `"config.xml"` , also das `<feature>` nicht für Ihren Workflow gilt. Wenn Sie direkt in ein SDK und mit der plattformspezifischen `config.xml` -Datei als Quelle arbeiten, verwenden Sie das Tag `<feature>` Geräteebene APIs und externe Plugins aktivieren. Sie erscheinen oft mit benutzerdefinierten Werte in plattformspezifischen `"config.xml"` -Dateien. Hier ist beispielsweise die Device-API für Android Projekte angeben: - - <feature name="Device"> - <param name="android-package" value="org.apache.cordova.device.Device" /> - </feature> - - -Hier ist, wie das Element für iOS-Projekte wird angezeigt: - - <feature name="Device"> - <param name="ios-package" value="CDVDevice" /> - </feature> - - -Finden Sie die API-Referenz für Details jedes Feature angeben. Sehen Sie auf Plugins im Plugin-Entwicklerhandbuch für weitere Informationen. - -## Die *Plattform* Element - -Wenn die CLI verwenden, um Anwendungen zu erstellen, ist es manchmal notwendig, Einstellungen oder anderen Elementen, die auf eine spezifische Plattform anzugeben. Verwenden Sie das Element `<paltform>` Konfiguration angeben, die nur in einer einzigen Plattform-spezifischen `Datei config.xml` -Datei angezeigt werden soll. Hier ist beispielsweise angeben, dass nur Android verwenden sollten, die Voreinstellung "Fullscreen": - - <platform name="android"> - <preference name="Fullscreen" value="true" /> - </platform> - - -## Die *hook* Element - -Stellt Ihr benutzerdefinierte Skript, das von Cordova aufgerufen wird, wenn bestimmte Aktion ausgeführt wird (z. B. nach Plugin hinzugefügt wird oder Plattform vorbereiten Logik wird aufgerufen). Dies ist nützlich, wenn Sie Cordova Standardfunktionalität verlängern müssen. Weitere Informationen finden Sie unter Haken Guide. - - <hook type="after_plugin_install" src="scripts/afterPluginInstall.js" /> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/events/events.backbutton.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/events/events.backbutton.md b/www/docs/de/edge/cordova/events/events.backbutton.md deleted file mode 100644 index d0a3aac..0000000 --- a/www/docs/de/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 - -Das Ereignis wird ausgelöst, wenn der Benutzer den "zurück"-Button drückt. - - document.addEventListener("backbutton", yourCallbackFunction, false); - - -## Details - -Um das zurück-Button Standardverhalten überschreiben, registriert einen Ereignis-Listener für das `backbutton` Ereignis in der Regel durch den Aufruf `document.addEventListener` sobald Sie erhalten die `[deviceready](events.deviceready.html)` Ereignis. Es ist nicht mehr notwendig, jede andere Methode zum Ãberschreiben der zurück-Button aufrufen. - -## Unterstützte Plattformen - -* Amazon Fire OS -* Android -* BlackBerry 10 -* Windows Phone 8 - -## Kurzes Beispiel - - document.addEventListener("backbutton", onBackKeyDown, false); - - function onBackKeyDown() { - // Handle the back button - } - - -## Vollständiges Beispiel - - <!DOCTYPE html> - <html> - <head> - <title>Back Button Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for device API libraries to load - // - function onLoad() { - document.addEventListener("deviceready", onDeviceReady, false); - } - - // device APIs are available - // - function onDeviceReady() { - // Register the event listener - document.addEventListener("backbutton", onBackKeyDown, false); - } - - // Handle the back button - // - function onBackKeyDown() { - } - - </script> - </head> - <body onload="onLoad()"> - </body> - </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/events/events.deviceready.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/events/events.deviceready.md b/www/docs/de/edge/cordova/events/events.deviceready.md deleted file mode 100644 index 63705a0..0000000 --- a/www/docs/de/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 - -Das Ereignis wird ausgelöst, wenn Cordova vollständig geladen ist. - - document.addEventListener("deviceready", yourCallbackFunction, false); - - -## Details - -Dieses Ereignis ist wesentlich für jede Anwendung. Es signalisiert, dass Cordovas Gerät APIs geladen haben und bereit sind, zugreifen. - -Cordova besteht aus zwei Codebasen: native und JavaScript. Während der native Code lädt, zeigt eine benutzerdefinierte Lade-Bild. JavaScript lädt jedoch nur wenn das DOM geladen. Dies bedeutet, dass die Web-app möglicherweise eine Cordova JavaScript-Funktion nennen darf, bevor der entsprechende systemeigene Code verfügbar ist. - -Das `deviceready` -Ereignis wird ausgelöst, sobald Cordova vollständig geladen hat. Einmal können das Ereignis ausgelöst, Sie sicher Cordova-APIs aufrufen. Anwendungen in der Regel fügen Sie einen Ereignis-Listener mit `document.addEventListener` sobald das HTML-Dokument DOM geladen hat. - -Das `deviceready` Ereignis verhält sich etwas anders als von anderen. Ein Ereignishandler registriert nach der `deviceready` -Ereignis ausgelöst hat die Callback-Funktion aufgerufen, sofort. - -## Unterstützte Plattformen - -* Amazon Fire OS -* Android -* BlackBerry 10 -* iOS -* Tizen -* Windows Phone 8 -* Windows 8 - -## Kurzes Beispiel - - document.addEventListener("deviceready", onDeviceReady, false); - - function onDeviceReady() { - // Now safe to use device APIs - } - - -## Vollständiges Beispiel - - <!DOCTYPE html> - <html> - <head> - <title>Device Ready Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for device API libraries to load - // - function onLoad() { - document.addEventListener("deviceready", onDeviceReady, false); - } - - // device APIs are available - // - function onDeviceReady() { - // Now safe to use device APIs - } - - </script> - </head> - <body onload="onLoad()"> - </body> - </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/events/events.endcallbutton.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/events/events.endcallbutton.md b/www/docs/de/edge/cordova/events/events.endcallbutton.md deleted file mode 100644 index ed6d3b3..0000000 --- a/www/docs/de/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 - -Dieses Ereignis wird ausgelöst, wenn der Benutzer die End-Call-Taste drückt. - - document.addEventListener("endcallbutton", yourCallbackFunction, false); - - -## Details - -Das Ereignis überschreibt das Standardverhalten des End-Aufruf. - -Anwendungen sollten in der Regel verwenden `document.addEventListener` einmal einen Ereignis-Listener hinzufügen das `[deviceready](events.deviceready.html)` -Ereignis ausgelöst. - -## Unterstützte Plattformen - -* BlackBerry 10 - -## Kurzes Beispiel - - document.addEventListener("endcallbutton", onEndCallKeyDown, false); - - function onEndCallKeyDown() { - // Handle the end call button - } - - -## Vollständiges Beispiel - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> - <html> - <head> - <title>End Call Button Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for device API libraries to load - // - function onLoad() { - document.addEventListener("deviceready", onDeviceReady, false); - } - - // device APIs are available - // - function onDeviceReady() { - // Register the event listener - document.addEventListener("endcallbutton", onEndCallKeyDown, false); - } - - // Handle the end call button - // - function onEndCallKeyDown() { - } - - </script> - </head> - <body onload="onLoad()"> - </body> - </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/events/events.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/events/events.md b/www/docs/de/edge/cordova/events/events.md deleted file mode 100644 index e8721ea..0000000 --- a/www/docs/de/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: Veranstaltungen ---- - -# Veranstaltungen - -> Cordova Lebenszyklusereignisse. - -## Ereignistypen - -* [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) - -## Veranstaltungen von [Cordova-Plugin-Batterie-Status][1] hinzugefügt - - [1]: https://github.com/apache/cordova-plugin-battery-status/blob/master/README.md - -* batterycritical -* batterylow -* batterystatus - -## Veranstaltungen von [Cordova-Plugin-Netzwerk-Informationen][2] hinzugefügt - - [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/de/edge/cordova/events/events.menubutton.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/events/events.menubutton.md b/www/docs/de/edge/cordova/events/events.menubutton.md deleted file mode 100644 index 6a5d98d..0000000 --- a/www/docs/de/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 - -Das Ereignis wird ausgelöst, wenn der Benutzer die Menü-Taste drückt. - - document.addEventListener("menubutton", yourCallbackFunction, false); - - -## Details - -Anwenden eines Event-handlers überschreibt das Standardverhalten der Menü-Taste. - -Anwendungen sollten in der Regel verwenden `document.addEventListener` einmal einen Ereignis-Listener hinzufügen das `[deviceready](events.deviceready.html)` -Ereignis ausgelöst. - -## Unterstützte Plattformen - -* Amazon Fire OS -* Android -* BlackBerry 10 - -## Kurzes Beispiel - - document.addEventListener("menubutton", onMenuKeyDown, false); - - function onMenuKeyDown() { - // Handle the back button - } - - -## Vollständiges Beispiel - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> - <html> - <head> - <title>Menu Button Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for device API libraries to load - // - function onLoad() { - document.addEventListener("deviceready", onDeviceReady, false); - } - - // device APIs are available - // - function onDeviceReady() { - // Register the event listener - document.addEventListener("menubutton", onMenuKeyDown, false); - } - - // Handle the menu button - // - function onMenuKeyDown() { - } - - </script> - </head> - <body onload="onLoad()"> - </body> - </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/events/events.pause.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/events/events.pause.md b/www/docs/de/edge/cordova/events/events.pause.md deleted file mode 100644 index fefddcb..0000000 --- a/www/docs/de/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 - -Das Ereignis wird ausgelöst, wenn eine Anwendung in den Hintergrund gelegt wird. - - document.addEventListener("pause", yourCallbackFunction, false); - - -## Details - -Das `pause` -Ereignis wird ausgelöst, wenn die einheitlichen Plattform die Anwendung in den Hintergrund, in der Regel, setzt wenn der Benutzer zu einer anderen Anwendung wechselt. - -Anwendungen sollten in der Regel verwenden `document.addEventListener` einmal einen Ereignis-Listener hinzufügen das `[deviceready](events.deviceready.html)` -Ereignis ausgelöst. - -## Unterstützte Plattformen - -* Amazon Fire OS -* Android -* BlackBerry 10 -* iOS -* Windows Phone 8 -* Windows 8 - -## Kurzes Beispiel - - document.addEventListener("pause", onPause, false); - - function onPause() { - // Handle the pause event - } - - -## Vollständiges Beispiel - - <!DOCTYPE html> - <html> - <head> - <title>Pause Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for device API libraries to load - // - function onLoad() { - document.addEventListener("deviceready", onDeviceReady, false); - } - - // device APIs are available - // - function onDeviceReady() { - document.addEventListener("pause", onPause, false); - } - - // Handle the pause event - // - function onPause() { - } - - </script> - </head> - <body onload="onLoad()"> - </body> - </html> - - -## iOS Macken - -In der `pause` Handler, keine Anrufe an die Cordova-API oder native Plugins, die Objective-C durchlaufen funktionieren nicht, zusammen mit interaktiven Aufrufe, z. B. Warnungen oder `console.log()` . Sie werden nur verarbeitet, wenn die app auf der nächsten laufen Schleife fortgesetzt wird. - -Die iOS-spezifische `resign` Ereignis ist verfügbar als Alternative zu `pause` , und erkennt, wenn Benutzer die **Lock** -Taste um das Gerät mit der app im Vordergrund ausgeführt zu sperren können. Wenn die app (und Gerät) für Multitasking aktiviert ist, ist dies gepaart mit einer anschlieÃenden `pause` Ereignis, aber nur unter iOS 5. In der Tat werden alle gesperrten apps in iOS 5, die Multitasking aktiviert haben in den Hintergrund gedrängt. Für Anwendungen, die ausgeführt werden, wenn unter iOS 5 gesperrt, deaktivieren die app Multitasking, indem [UIApplicationExitsOnSuspend][1] auf `YES` . Um beim gesperrt auf iOS 4 auszuführen, spielt diese Einstellung keine Rolle. - - [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/de/edge/cordova/events/events.resume.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/events/events.resume.md b/www/docs/de/edge/cordova/events/events.resume.md deleted file mode 100644 index 38ec194..0000000 --- a/www/docs/de/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 - -Das Ereignis wird ausgelöst, wenn eine Anwendung aus dem Hintergrund abgerufen wird. - - document.addEventListener("resume", yourCallbackFunction, false); - - -## Details - -Das `resume` -Ereignis wird ausgelöst, wenn die native Plattform die Anwendung aus dem Hintergrund zieht. - -Anwendungen sollten in der Regel verwenden `document.addEventListener` einmal einen Ereignis-Listener hinzufügen das `[deviceready](events.deviceready.html)` -Ereignis ausgelöst. - -## Unterstützte Plattformen - -* Amazon Fire OS -* Android -* BlackBerry 10 -* iOS -* Windows Phone 8 -* Windows 8 - -## Kurzes Beispiel - - document.addEventListener("resume", onResume, false); - - function onResume() { - // Handle the resume event - } - - -## Vollständiges Beispiel - - <!DOCTYPE html> - <html> - <head> - <title>Resume Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for device API libraries to load - // - function onLoad() { - document.addEventListener("deviceready", onDeviceReady, false); - } - - // device APIs are available - // - function onDeviceReady() { - document.addEventListener("resume", onResume, false); - } - - // Handle the resume event - // - function onResume() { - } - - </script> - </head> - <body onload="onLoad()"> - </body> - </html> - - -## iOS Macken - -Alle interaktiven Funktionen Intensivlehrgang ein `[pause](events.pause.html)` -Ereignishandler ausgeführt später, wenn die app wieder aufgenommen wird, wie durch signalisiert die `resume` Ereignis. Dazu gehören Warnungen, `console.log()` , und keine Anrufe von Plugins oder Cordova API, das Durchlaufen von Objective-C. - -* **aktiv** -Ereignis - - Die iOS-spezifische `active` Ereignis ist verfügbar als Alternative zu `resume` , und erkennt, wenn Benutzer die **Lock** -Taste mit der app im Vordergrund ausgeführt entsperren deaktivieren. Wenn die app (und Gerät) für Multitasking aktiviert ist, ist dies gepaart mit einer anschlieÃenden `resume` Ereignis, aber nur unter iOS 5. In der Tat werden alle gesperrten apps in iOS 5, die Multitasking aktiviert haben in den Hintergrund gedrängt. Für Anwendungen, die ausgeführt werden, wenn unter iOS 5 gesperrt, deaktivieren die app Multitasking, indem [UIApplicationExitsOnSuspend][1] auf `YES` . Um beim gesperrt auf iOS 4 auszuführen, spielt diese Einstellung keine Rolle. - -* **Lebenslauf** -Ereignis - - Beim Aufruf aus einer `resume` -Ereignishandler, interaktive Funktionen wie z. B. `alert()` in eingeschlossen werden müssen ein `setTimeout()` Aufruf mit einem Timeoutwert von 0 (null), oder auch der app hängt. Zum Beispiel: - - 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/de/edge/cordova/events/events.searchbutton.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/events/events.searchbutton.md b/www/docs/de/edge/cordova/events/events.searchbutton.md deleted file mode 100644 index b2a8b34..0000000 --- a/www/docs/de/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 - -Das Ereignis wird ausgelöst, wenn der Benutzer die Schaltfläche Suchen auf Android drückt. - - document.addEventListener("searchbutton", yourCallbackFunction, false); - - -## Details - -Wenn Sie das Standardverhalten für die Schaltfläche von Suche auf Android überschreiben möchten können Sie einen Ereignis-Listener für das Ereignis 'Searchbutton' registrieren. - -Anwendungen sollten in der Regel verwenden `document.addEventListener` einmal einen Ereignis-Listener hinzufügen das `[deviceready](events.deviceready.html)` -Ereignis ausgelöst. - -## Unterstützte Plattformen - -* Android - -## Kurzes Beispiel - - document.addEventListener("searchbutton", onSearchKeyDown, false); - - function onSearchKeyDown() { - // Handle the search button - } - - -## Vollständiges Beispiel - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> - <html> - <head> - <title>Search Button Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for device API libraries to load - // - function onLoad() { - document.addEventListener("deviceready", onDeviceReady, false); - } - - // device APIs are available - // - function onDeviceReady() { - // Register the event listener - document.addEventListener("searchbutton", onSearchKeyDown, false); - } - - // Handle the search button - // - function onSearchKeyDown() { - } - - </script> - </head> - <body onload="onLoad()"> - </body> - </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/events/events.startcallbutton.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/events/events.startcallbutton.md b/www/docs/de/edge/cordova/events/events.startcallbutton.md deleted file mode 100644 index 1e33e29..0000000 --- a/www/docs/de/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 - -Das Ereignis wird ausgelöst, wenn der Benutzer die Startschaltfläche drückt. - - document.addEventListener("startcallbutton", yourCallbackFunction, false); - - -## Details - -Wenn Sie das Start-Aufruf Standardverhalten überschreiben möchten registrieren Sie einen Ereignis-Listener für das `startcallbutton` Ereignis. - -Anwendungen sollten in der Regel verwenden `document.addEventListener` einmal einen Ereignis-Listener hinzufügen das `[deviceready](events.deviceready.html)` -Ereignis ausgelöst. - -## Unterstützte Plattformen - -* BlackBerry 10 - -## Kurzes Beispiel - - document.addEventListener("startcallbutton", onStartCallKeyDown, false); - - function onStartCallKeyDown() { - // Handle the start call button - } - - -## Vollständiges Beispiel - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> - <html> - <head> - <title>Start Call Button Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for device API libraries to load - // - function onLoad() { - document.addEventListener("deviceready", onDeviceReady, false); - } - - // device APIs are available - // - function onDeviceReady() { - // Register the event listener - document.addEventListener("startcallbutton", onStartCallKeyDown, false); - } - - // Handle the start call button - // - function onStartCallKeyDown() { - } - - </script> - </head> - <body onload="onLoad()"> - </body> - </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/events/events.volumedownbutton.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/events/events.volumedownbutton.md b/www/docs/de/edge/cordova/events/events.volumedownbutton.md deleted file mode 100644 index 770840c..0000000 --- a/www/docs/de/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 - -Das Ereignis wird ausgelöst, wenn der Benutzer die Lautstärke-Taste drückt. - - document.addEventListener("volumedownbutton", yourCallbackFunction, false); - - -## Details - -Wenn Sie die Standard-Lautstärke reduzieren Verhalten überschreiben müssen erfassen Sie einen Ereignis-Listener für das `volumedownbutton` Ereignis. - -Anwendungen sollten in der Regel verwenden `document.addEventListener` einmal einen Ereignis-Listener hinzufügen das `[deviceready](events.deviceready.html)` -Ereignis ausgelöst. - -## Unterstützte Plattformen - -* BlackBerry 10 -* Android - -## Kurzes Beispiel - - document.addEventListener("volumedownbutton", onVolumeDownKeyDown, false); - - function onVolumeDownKeyDown() { - // Handle the volume down button - } - - -## Vollständiges Beispiel - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> - <html> - <head> - <title>Volume Down Button Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for device API libraries to load - // - function onLoad() { - document.addEventListener("deviceready", onDeviceReady, false); - } - - // device APIs are available - // - function onDeviceReady() { - // Register the event listener - document.addEventListener("volumedownbutton", onVolumeDownKeyDown, false); - } - - // Handle the volume down button - // - function onVolumeDownKeyDown() { - } - - </script> - </head> - <body onload="onLoad()"> - </body> - </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/events/events.volumeupbutton.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/events/events.volumeupbutton.md b/www/docs/de/edge/cordova/events/events.volumeupbutton.md deleted file mode 100644 index edb6102..0000000 --- a/www/docs/de/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 - -Das Ereignis wird ausgelöst, wenn der Benutzer die Lauter Taste drückt. - - document.addEventListener("volumeupbutton", yourCallbackFunction, false); - - -## Details - -Wenn Sie die Standard-Lautstärke erhöhen Verhalten überschreiben müssen registrieren Sie einen Ereignis-Listener für das `volumeupbutton` Ereignis. - -Anwendungen sollten in der Regel verwenden `document.addEventListener` einmal einen Ereignis-Listener hinzufügen das `[deviceready](events.deviceready.html)` -Ereignis ausgelöst. - -## Unterstützte Plattformen - -* BlackBerry 10 -* Android - -## Kurzes Beispiel - - document.addEventListener("volumeupbutton", onVolumeUpKeyDown, false); - - function onVolumeUpKeyDown() { - // Handle the volume up button - } - - -## Vollständiges Beispiel - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> - <html> - <head> - <title>Volume Up Button Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for device API libraries to load - // - function onLoad() { - document.addEventListener("deviceready", onDeviceReady, false); - } - - // device APIs are available - // - function onDeviceReady() { - // Register the event listener - document.addEventListener("volumeupbutton", onVolumeUpKeyDown, false); - } - - // Handle the volume up button - // - function onVolumeUpKeyDown() { - } - - </script> - </head> - <body onload="onLoad()"> - </body> - </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/plugins/pluginapis.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/plugins/pluginapis.md b/www/docs/de/edge/cordova/plugins/pluginapis.md deleted file mode 100644 index 9b2b2d0..0000000 --- a/www/docs/de/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 mit einen minimalen Satz von APIs und Projekte hinzufügen, was zusätzliche APIs, die sie durch Plugins erfordern. - -Sie können alle vorhandenen Plugins (einschlieÃlich Drittanbieter Plug-ins) auf [npm][1] durchsuchen. - - [1]: https://www.npmjs.com/search?q=ecosystem%3Acordova - -Der traditionelle Kern Cordova Plugins sind wie folgt: - -* [Batteriestatus][2] - - > Ãberwachen Sie den Status des Geräts Batterie. - -* [Kamera][3] - - > Ein Foto mit der Gerätekamera zu erfassen. - -* [Konsole][4] - - > Fügen Sie zusätzlich die Möglichkeit, zu console.log(). - -* [Kontakte][5] - - > Arbeiten Sie mit der Geräte-Kontaktdatenbank. - -* [Gerät][6] - - > Gerät bestimmte Informationen zu sammeln. - -* [Bewegung Gerät (Beschleunigungssensor)][7] - - > Tippen Sie in das Gerät Weg-und/oder Geschwindigkeitsgeber. - -* [Orientierung des Geräts (Kompass)][8] - - > Erhalten Sie die Richtung, die das Gerät verweist. - -* [Dialoge][9] - - > Visuelle Gerätebenachrichtigungen. - -* [Dateisystem][10] - - > Haken Sie in native Dateisystem durch JavaScript. - -* [File-Transfer][11] - - > Haken Sie in native Dateisystem durch JavaScript. - -* [Geolocation][12] - - > Machen Sie Ihre Anwendung Lage bewusst. - -* [Globalisierung][13] - - > Aktivieren Sie die Darstellung von Objekten, die spezifisch für ein Gebietsschema. - -* [InAppBrowser][14] - - > URLs in einer anderen in-app Browserinstanz zu starten. - -* [Medien][15] - - > Aufzeichnen und Wiedergeben von audio-Dateien. - -* [Medien erfassen][16] - - > Media-Dateien mithilfe des Geräts Media Capture-Anwendungen zu erfassen. - -* [Netzwerkinformationen (Verbindung)][17] - - > Der Netzwerkstatus und Mobilfunknetz Informationen schnell zu überprüfen. - -* [SplashScreen][18] - - > Ein- und Ausblenden der Splash-Screen Anwendungen. - -* [Vibration][19] - - > Eine API, das Gerät zu vibrieren. - -* [StatusBar][20] - - > Eine API zum Anzeigen, ausblenden und Konfigurieren der Status Bar Hintergrund. - -* [Whitelist][21] - - > Ein Plugin zur Whitelist Netzwerkanforderungen. Müssen installieren, um alle Netzwerkanforderungen in Ihren Anwendungen haben. - -* [Ãltere Whitelist][22] - - > Ein Plugin, um den alten Stil der weiÃen Liste zu verwenden, bevor es war herausgerissen und in die Whitelist-Plugin geändert. - - [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 - -Nicht-englische Ãbersetzungen über diese Plugin-Docs können gefunden werden, indem Sie das Plugin Github Repos und suchen in den Ordner "Docs" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/storage/database/database.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/storage/database/database.md b/www/docs/de/edge/cordova/storage/database/database.md deleted file mode 100644 index 11b0ca1..0000000 --- a/www/docs/de/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: Datenbank ---- - -# Datenbank - -Ermöglicht den Zugriff auf eine SQL-Datenbank. - -## Methoden - -* **Transaktion**: läuft eine Datenbanktransaktion. - -* **ChangeVersion**: können Skripts automatisch überprüfen die Versionsnummer, und ändern Sie es, wenn ein Schema zu aktualisieren. - -## Informationen - -Die `window.openDatabase()` -Methode gibt ein `Database` Objekt. - -## Unterstützte Plattformen - -* Android -* BlackBerry WebWorks (OS 6.0 und höher) -* iOS -* Tizen - -## Transaktion kurzes Beispiel - - 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); - - -## Ãnderung Version kleines Beispiel - - var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000); - db.changeVersion("1.0", "1.1"); - - -## Vollständiges Beispiel - - <!DOCTYPE html> - <html> - <head> - <title>Storage Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for device API libraries to load - // - document.addEventListener("deviceready", onDeviceReady, false); - - // device APIs are available - // - function onDeviceReady() { - var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000); - db.transaction(populateDB, errorCB, successCB); - } - - // Populate the database - // - 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")'); - } - - // Transaction error callback - // - function errorCB(tx, err) { - alert("Error processing SQL: "+err); - } - - // Transaction success callback - // - function successCB() { - alert("success!"); - } - - </script> - </head> - <body> - <h1>Example</h1> - <p>Database</p> - </body> - </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/storage/localstorage/localstorage.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/storage/localstorage/localstorage.md b/www/docs/de/edge/cordova/storage/localstorage/localstorage.md deleted file mode 100644 index 03ffd3b..0000000 --- a/www/docs/de/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 - -Ermöglicht den Zugriff auf die W3C [Web-Speicherschnittstelle][1] - - [1]: http://dev.w3.org/html5/webstorage/#the-localstorage-attribute - - var permanentStorage = window.localStorage; - var tempStorage = window.sessionStorage; - - -## Methoden - -* **Schlüssel**: gibt den Namen des Schlüssels an der angegebenen Position zurück. - -* **GetItem**: gibt das Element mit dem angegebenen Schlüssel identifiziert. - -* **SetItem**: weist eine freigestellte Element Wert. - -* **RemoveItem**: entfernt das Element mit dem angegebenen Schlüssel identifiziert. - -* **Löschen**: entfernt alle Schlüssel/Wert-Paare. - -## Informationen - -Die `window.localStorage` -Schnittstelle implementiert die W3C [Web-Speicherschnittstelle][2]. Eine app kann damit um persistente Daten mithilfe von Schlüssel-Wert-Paaren zu speichern. Die `window.sessionStorage` Schnittstelle funktioniert genauso in jeder Hinsicht, es sei denn, dass alle Daten jedes Mal die app schlieÃt deaktiviert ist. Jede [Datenbank](../database/database.html) bietet einen separaten Namespace. - - [2]: http://dev.w3.org/html5/webstorage/ - -## Unterstützte Plattformen - -* Android -* BlackBerry WebWorks (OS 6.0 und höher) -* iOS -* Tizen -* Windows Phone 7 und 8 - -## Schnelle Schlüsselbeispiel - - var keyName = window.localStorage.key(0); - - -## Set Item Beispiel - - window.localStorage.setItem("key", "value"); - - -## Element kurzes Beispiel zu erhalten - - var value = window.localStorage.getItem("key"); - // value is now equal to "value" - - -## Kleines Beispiel Element entfernen - - window.localStorage.removeItem("key"); - - -## Kleines Beispiel zu löschen - - window.localStorage.clear(); - - -## Vollständiges Beispiel - - <!DOCTYPE html> - <html> - <head> - <title>Storage Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for device API libraries to load - // - document.addEventListener("deviceready", onDeviceReady, false); - - // device APIs are available - // - function onDeviceReady() { - window.localStorage.setItem("key", "value"); - var keyname = window.localStorage.key(i); - // keyname is now equal to "key" - var value = window.localStorage.getItem("key"); - // value is now equal to "value" - window.localStorage.removeItem("key"); - window.localStorage.setItem("key2", "value2"); - window.localStorage.clear(); - // localStorage is now empty - } - - </script> - </head> - <body> - <h1>Example</h1> - <p>localStorage</p> - </body> - </html> - - -## Windows Phone 7 Macken - -Punktnotation ist *nicht* für Windows Phone 7 verfügbar. Verwenden Sie `setItem` oder `getItem` , anstatt auf Tasten direkt aus dem Speicherobjekt, wie z.B.`window.localStorage.someKey`. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/storage/parameters/display_name.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/storage/parameters/display_name.md b/www/docs/de/edge/cordova/storage/parameters/display_name.md deleted file mode 100644 index 9e8439b..0000000 --- a/www/docs/de/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 - -Der Anzeigename der [Datenbank](../database/database.html). \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/storage/parameters/name.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/storage/parameters/name.md b/www/docs/de/edge/cordova/storage/parameters/name.md deleted file mode 100644 index a5f7533..0000000 --- a/www/docs/de/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 - -Der Name der [Datenbank](../database/database.html). \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/storage/parameters/size.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/storage/parameters/size.md b/www/docs/de/edge/cordova/storage/parameters/size.md deleted file mode 100644 index 6d3d576..0000000 --- a/www/docs/de/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 - -Die Grösse der [Datenbank](../database/database.html) in Bytes. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/storage/parameters/version.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/storage/parameters/version.md b/www/docs/de/edge/cordova/storage/parameters/version.md deleted file mode 100644 index f95e31d..0000000 --- a/www/docs/de/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 - -Die Version der [Datenbank](../database/database.html). \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/storage/sqlerror/sqlerror.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/storage/sqlerror/sqlerror.md b/www/docs/de/edge/cordova/storage/sqlerror/sqlerror.md deleted file mode 100644 index 83fdd6f..0000000 --- a/www/docs/de/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 - -A `SQLError` Objekt wird ausgelöst, wenn ein Fehler auftritt. - -## Eigenschaften - -* **Code**: einer der vordefinierten Fehlercodes aufgeführt. - -* **Nachricht**: eine Beschreibung des Fehlers. - -## Konstanten - -* `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` - -## Beschreibung - -Das `SQLError` Objekt wird ausgelöst, wenn ein Fehler auftritt, wenn eine [Datenbank](../database/database.html) zu manipulieren. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f061b980/www/docs/de/edge/cordova/storage/sqlresultset/sqlresultset.md ---------------------------------------------------------------------- diff --git a/www/docs/de/edge/cordova/storage/sqlresultset/sqlresultset.md b/www/docs/de/edge/cordova/storage/sqlresultset/sqlresultset.md deleted file mode 100644 index ef57259..0000000 --- a/www/docs/de/edge/cordova/storage/sqlresultset/sqlresultset.md +++ /dev/null @@ -1,145 +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 - -Wenn eine `[SQLTransaction](../sqltransaction/sqltransaction.html)` des Objekts `executeSql` -Methode wird aufgerufen, der angegebene Rückruf führt mit einem `SQLResultSet` Parameter. - -## Eigenschaften - -* **InsertId**: die Zeilen-ID der Zeile, die die `SQLResultSet` des Objekts-SQL-Anweisung, die in die [Datenbank](../database/database.html) eingefügt. - -* **RowsAffected**: die Anzahl der Zeilen geändert werden, indem die SQL-Anweisung, die 0 (null), wenn die Anweisung keine Zeilen nicht ausgewirkt hat. - -* **Zeilen**: eine `[SQLResultSetRowList](../sqlresultsetrowlist/sqlresultsetrowlist.html)` , die die zurückgegebenen Zeilen darstellen, empty, wenn keine Zeilen zurückgegeben werden. - -## Informationen - -Wenn eine `[SQLTransaction](../sqltransaction/sqltransaction.html)` des Objekts `executeSql` -Methode wird aufgerufen, der angegebene Rückruf führt mit einer `SQLResultSet` Parameter mit den drei Eigenschaften: - -* Die `insertId` gibt die Zeilennummer einer successly SQL-Einfügung-Anweisung zurück. Wenn die SQL keine Zeilen einfügen wird die `insertId` nicht festgelegt. - -* Die `rowsAffected` ist immer `` für ein SQL `select` Anweisung. Für `insert` oder `update` es die Anzahl der gibt Anweisungen geänderter Zeilen. - -* Finale `SQLResultSetList` enthält die Daten aus einer SQL-select-Anweisung zurückgegeben. - -## Unterstützte Plattformen - -* Android -* BlackBerry WebWorks (OS 6.0 und höher) -* iOS -* Tizen - -## Führen Sie SQL-schnelles-Beispiel - - function queryDB(tx) { - tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB); - } - - function querySuccess(tx, results) { - console.log("Returned rows = " + results.rows.length); - // this will be true since it was a select statement and so rowsAffected was 0 - if (!results.rowsAffected) { - console.log('No rows affected!'); - return false; - } - // for an insert statement, this property will return the ID of the last inserted row - console.log("Last inserted row ID = " + results.insertId); - } - - function errorCB(err) { - alert("Error processing SQL: "+err.code); - } - - var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000); - db.transaction(queryDB, errorCB); - - -## Vollständiges Beispiel - - <!DOCTYPE html> - <html> - <head> - <title>Storage Example</title> - - <script type="text/javascript" charset="utf-8" src="cordova.js"></script> - <script type="text/javascript" charset="utf-8"> - - // Wait for device API libraries to load - // - document.addEventListener("deviceready", onDeviceReady, false); - - // Populate the database - // - 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")'); - } - - // Query the database - // - function queryDB(tx) { - tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB); - } - - // Query the success callback - // - function querySuccess(tx, results) { - console.log("Returned rows = " + results.rows.length); - // this will be true since it was a select statement and so rowsAffected was 0 - if (!results.rowsAffected) { - console.log('No rows affected!'); - return false; - } - // for an insert statement, this property will return the ID of the last inserted row - console.log("Last inserted row ID = " + results.insertId); - } - - // Transaction error callback - // - function errorCB(err) { - console.log("Error processing SQL: "+err.code); - } - - // Transaction success callback - // - function successCB() { - var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000); - db.transaction(queryDB, errorCB); - } - - // device APIs are available - // - function onDeviceReady() { - var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000); - db.transaction(populateDB, errorCB, successCB); - } - - </script> - </head> - <body> - <h1>Example</h1> - <p>Database</p> - </body> - </html> \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org