arnaucube
arnaucube/openEventsPlatformAppPublic Self-hosted repository
openEventsPlatformApp/plugins/cordova-plugin-statusbar/doc/de/README.md
plugins/cordova-plugin-statusbar/doc/de/README.mdRaw
  1<!---
  2# license: Licensed to the Apache Software Foundation (ASF) under one
  3#         or more contributor license agreements.  See the NOTICE file
  4#         distributed with this work for additional information
  5#         regarding copyright ownership.  The ASF licenses this file
  6#         to you under the Apache License, Version 2.0 (the
  7#         "License"); you may not use this file except in compliance
  8#         with the License.  You may obtain a copy of the License at
  9#
 10#           http://www.apache.org/licenses/LICENSE-2.0
 11#
 12#         Unless required by applicable law or agreed to in writing,
 13#         software distributed under the License is distributed on an
 14#         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 15#         KIND, either express or implied.  See the License for the
 16#         specific language governing permissions and limitations
 17#         under the License.
 18-->
 19
 20# cordova-plugin-statusbar
 21
 22[![Build Status](https://travis-ci.org/apache/cordova-plugin-statusbar.svg)](https://travis-ci.org/apache/cordova-plugin-statusbar)
 23
 24# StatusBar
 25
 26> Das `StatusBar` Objekt stellt einige Funktionen zum Anpassen des iOS und Android StatusBar.
 27
 28## Installation
 29
 30    cordova plugin add cordova-plugin-statusbar
 31    
 32
 33## "Einstellungen"
 34
 35#### "config.xml"
 36
 37  * **StatusBarOverlaysWebView** (Boolean, der Standardwert ist True). Stellen Sie auf iOS 7 die Statusbar-Overlay oder keine Überlagerung der WebView beim Start.
 38    
 39        <preference name="StatusBarOverlaysWebView" value="true" />
 40        
 41
 42  * **StatusBarBackgroundColor** (Farbe hex String, Standardwert ist #000000). Auf iOS legen 7 und Android 5, Sie die Hintergrundfarbe der Statusbar von eine hexadezimale Zeichenfolge (#RRGGBB) beim Start.
 43    
 44        <preference name="StatusBarBackgroundColor" value="#000000" />
 45        
 46
 47  * **StatusBarStyle** (Status Bar-Stil, der Standardwert ist Lightcontent). Legen Sie auf iOS 7 den Status-Bar-Stil. Verfügbaren Optionen Standard, Lightcontent, Blacktranslucent, Blackopaque.
 48    
 49        <preference name="StatusBarStyle" value="lightcontent" />
 50        
 51
 52### Android Eigenarten
 53
 54Die Android 5 + Leitlinien angeben, verwenden eine andere Farbe für die Statusbar als Ihre Hauptanwendung Farbe (anders als die einheitliche Statusbar Farbe viele iOS 7 + apps), so Sie die Statusbar Farbe zur Laufzeit statt über `StatusBar.backgroundColorByHexString` oder `StatusBar.backgroundColorByName`festzulegen möchten vielleicht. Eine Möglichkeit dazu wäre:
 55
 56```js
 57if (cordova.platformId == 'android') {
 58    StatusBar.backgroundColorByHexString("#333");
 59}
 60```
 61
 62## Beim Start ausblenden
 63
 64Während der Laufzeit können Sie die StatusBar.hide-Funktion unten, aber die StatusBar beim Start der app versteckt werden soll, müssen Sie Ihre app Info.plist Datei ändern.
 65
 66Diese beiden Attribute hinzufügen/bearbeiten, wenn nicht vorhanden. Legen Sie **"Statusleiste ist anfangs ausgeblendet"** auf **"YES"** und **"View Controller-basierte Status Bar aussehen"** auf **"NO"**. Wenn Sie es manuell ohne Xcode bearbeiten, werden die Schlüssel und Werte:
 67
 68    <key>UIStatusBarHidden</key>
 69    <true/>
 70    <key>UIViewControllerBasedStatusBarAppearance</key>
 71    <false/>
 72    
 73
 74## Methoden
 75
 76Dieses Plugin wird globales `StatusBar`-Objekt definiert.
 77
 78Obwohl im globalen Gültigkeitsbereich, steht es nicht bis nach dem `deviceready`-Ereignis.
 79
 80    document.addEventListener("deviceready", onDeviceReady, false);
 81    function onDeviceReady() {
 82        console.log(StatusBar);
 83    }
 84    
 85
 86  * StatusBar.overlaysWebView
 87  * StatusBar.styleDefault
 88  * StatusBar.styleLightContent
 89  * StatusBar.styleBlackTranslucent
 90  * StatusBar.styleBlackOpaque
 91  * StatusBar.backgroundColorByName
 92  * StatusBar.backgroundColorByHexString
 93  * StatusBar.hide
 94  * StatusBar.show
 95
 96## Eigenschaften
 97
 98  * StatusBar.isVisible
 99
100## Berechtigungen
101
102#### "config.xml"
103
104            <feature name="StatusBar">
105                <param name="ios-package" value="CDVStatusBar" onload="true" />
106            </feature>
107    
108
109# StatusBar.overlaysWebView
110
111Stellen Sie auf iOS 7 Statusbar überlagern oder nicht überlagert die WebView.
112
113    StatusBar.overlaysWebView(true);
114    
115
116## Beschreibung
117
118Auf iOS 7 zu der Statusbar wie iOS 6 erscheinen auf False festgelegt. Legen Sie die Stil und Hintergrund Farbe entsprechend mit den anderen Funktionen.
119
120## Unterstützte Plattformen
121
122  * iOS
123
124## Kurzes Beispiel
125
126    StatusBar.overlaysWebView(true);
127    StatusBar.overlaysWebView(false);
128    
129
130# StatusBar.styleDefault
131
132Verwenden Sie die Standard-Statusbar (dunkle Text, für helle Hintergründe).
133
134    StatusBar.styleDefault();
135    
136
137## Unterstützte Plattformen
138
139  * iOS
140  * Windows Phone 7
141  * Windows Phone 8
142  * Windows Phone-8.1
143
144# StatusBar.styleLightContent
145
146Verwenden Sie die LightContent-Statusbar (heller Text, für dunkle Hintergründe).
147
148    StatusBar.styleLightContent();
149    
150
151## Unterstützte Plattformen
152
153  * iOS
154  * Windows Phone 7
155  * Windows Phone 8
156  * Windows Phone-8.1
157
158# StatusBar.styleBlackTranslucent
159
160Verwenden Sie die BlackTranslucent-Statusbar (heller Text, für dunkle Hintergründe).
161
162    StatusBar.styleBlackTranslucent();
163    
164
165## Unterstützte Plattformen
166
167  * iOS
168  * Windows Phone 7
169  * Windows Phone 8
170  * Windows Phone-8.1
171
172# StatusBar.styleBlackOpaque
173
174Verwenden Sie die BlackOpaque-Statusbar (heller Text, für dunkle Hintergründe).
175
176    StatusBar.styleBlackOpaque();
177    
178
179## Unterstützte Plattformen
180
181  * iOS
182  * Windows Phone 7
183  * Windows Phone 8
184  * Windows Phone-8.1
185
186# StatusBar.backgroundColorByName
187
188Auf iOS 7 Wenn Sie StatusBar.statusBarOverlaysWebView auf False festlegen, können Sie die Hintergrundfarbe der Statusbar von Farbnamen festlegen.
189
190    StatusBar.backgroundColorByName("red");
191    
192
193Unterstützte Farbnamen sind:
194
195    black, darkGray, lightGray, white, gray, red, green, blue, cyan, yellow, magenta, orange, purple, brown
196    
197
198## Unterstützte Plattformen
199
200  * iOS
201  * Android 5+
202  * Windows Phone 7
203  * Windows Phone 8
204  * Windows Phone-8.1
205
206# StatusBar.backgroundColorByHexString
207
208Legt die Hintergrundfarbe der Statusbar von eine hexadezimale Zeichenfolge fest.
209
210    StatusBar.backgroundColorByHexString("#C0C0C0");
211    
212
213CSS-Kurzschrift-Eigenschaften werden ebenfalls unterstützt.
214
215    StatusBar.backgroundColorByHexString("#333"); // => #333333
216    StatusBar.backgroundColorByHexString("#FAB"); // => #FFAABB
217    
218
219Auf iOS 7 Wenn Sie StatusBar.statusBarOverlaysWebView auf False festlegen, können Sie die Hintergrundfarbe der Statusbar von eine hexadezimale Zeichenfolge (#RRGGBB) festlegen.
220
221Auf WP7 und WP8 können Sie auch Werte wie #AARRGGBB, angeben wo AA einen alpha-Wert ist
222
223## Unterstützte Plattformen
224
225  * iOS
226  * Android 5+
227  * Windows Phone 7
228  * Windows Phone 8
229  * Windows Phone-8.1
230
231# StatusBar.hide
232
233Ausblenden der Statusleiste.
234
235    StatusBar.hide();
236    
237
238## Unterstützte Plattformen
239
240  * iOS
241  * Android
242  * Windows Phone 7
243  * Windows Phone 8
244  * Windows Phone-8.1
245
246# StatusBar.show
247
248Zeigt die Statusleiste.
249
250    StatusBar.show();
251    
252
253## Unterstützte Plattformen
254
255  * iOS
256  * Android
257  * Windows Phone 7
258  * Windows Phone 8
259  * Windows Phone-8.1
260
261# StatusBar.isVisible
262
263Lesen Sie diese Eigenschaft, um festzustellen, ob die Statusbar sichtbar oder nicht ist.
264
265    if (StatusBar.isVisible) {
266        // do something
267    }
268    
269
270## Unterstützte Plattformen
271
272  * iOS
273  * Android
274  * Windows Phone 7
275  * Windows Phone 8
276  * Windows Phone-8.1