arnaucube
arnaucube/openEventsPlatformAppPublic Self-hosted repository
openEventsPlatformApp/plugins/cordova-plugin-statusbar/doc/pl/README.md
plugins/cordova-plugin-statusbar/doc/pl/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> `StatusBar`Obiekt zawiera kilka funkcji, aby dostosować iOS i Android StatusBar.
 27
 28## Instalacja
 29
 30    cordova plugin add cordova-plugin-statusbar
 31    
 32
 33## Preferencje
 34
 35#### config.xml
 36
 37  * **StatusBarOverlaysWebView** (boolean, domyślnie na wartość true). Na iOS 7 zrobić nakładki stanu lub nie nakładki widoku sieci Web podczas uruchamiania.
 38    
 39        <preference name="StatusBarOverlaysWebView" value="true" />
 40        
 41
 42  * **StatusBarBackgroundColor** (kolor ciąg szesnastkowy, domyślnie #000000). Na iOS 7 i Android 5 kolor tła stanu przez ciąg szesnastkowy (#RRGGBB) przy starcie systemu.
 43    
 44        <preference name="StatusBarBackgroundColor" value="#000000" />
 45        
 46
 47  * **StatusBarStyle** (stan styl paska, domyślnie lightcontent.) Na iOS 7 ustawić styl paska stanu. Dostępne opcje domyślne, lightcontent, blacktranslucent, blackopaque.
 48    
 49        <preference name="StatusBarStyle" value="lightcontent" />
 50        
 51
 52### Dziwactwa Androida
 53
 54Android 5 + wytyczne określają przy użyciu różnych kolorów statusbar niż główne aplikacji kolor (w przeciwieństwie do stanu jednolitych kolorów wiele aplikacje iOS 7 +), więc może chcesz ustawić kolor pasek stanu w czasie wykonywania zamiast za pośrednictwem `StatusBar.backgroundColorByHexString` lub `StatusBar.backgroundColorByName`. Jednym sposobem na to byłoby:
 55
 56```js
 57if (cordova.platformId == 'android') {
 58    StatusBar.backgroundColorByHexString("#333");
 59}
 60```
 61
 62## Przy starcie
 63
 64Podczas uruchamiania można użyć funkcji StatusBar.hide poniżej, ale jeśli chcesz StatusBar ukryty w uruchamiania aplikacji, należy zmodyfikować plik Info.plist Twojej aplikacji.
 65
 66Dodawanie/edycja tych dwóch atrybutów jeśli nie obecny. Ustawianie **"pasek stanu jest początkowo ukryte"** na **"Tak"** i **"Oparte na kontroler stanu paska wygląd"** na **"Nie"**. Jeśli możesz go edytować ręcznie bez Xcode, kluczy i wartości są:
 67
 68    <key>UIStatusBarHidden</key>
 69    <true/>
 70    <key>UIViewControllerBasedStatusBarAppearance</key>
 71    <false/>
 72    
 73
 74## Metody
 75
 76Ten plugin definiuje obiekt globalny `StatusBar`.
 77
 78Chociaż w globalnym zasięgu, to nie dostępne dopiero po `deviceready` imprezie.
 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## Właściwości
 97
 98  * StatusBar.isVisible
 99
100## Uprawnienia
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
111Na iOS 7 zrobić statusbar nakładki lub nie nakładka widoku sieci Web.
112
113    StatusBar.overlaysWebView(true);
114    
115
116## Opis
117
118Na iOS 7 zestaw do false, aby na pasku stanu pojawia się jak iOS 6. Ustaw kolor tła i styl do korzystania z innych funkcji.
119
120## Obsługiwane platformy
121
122  * iOS
123
124## Szybki przykład
125
126    StatusBar.overlaysWebView(true);
127    StatusBar.overlaysWebView(false);
128    
129
130# StatusBar.styleDefault
131
132Użyj domyślnego stanu (ciemny tekst, teł światła).
133
134    StatusBar.styleDefault();
135    
136
137## Obsługiwane platformy
138
139  * iOS
140  * Windows Phone 7
141  * Windows Phone 8
142  * Windows Phone 8.1
143
144# StatusBar.styleLightContent
145
146Użyj lightContent stanu (światło tekst, ciemne tło).
147
148    StatusBar.styleLightContent();
149    
150
151## Obsługiwane platformy
152
153  * iOS
154  * Windows Phone 7
155  * Windows Phone 8
156  * Windows Phone 8.1
157
158# StatusBar.styleBlackTranslucent
159
160Użyj blackTranslucent stanu (światło tekst, ciemne tło).
161
162    StatusBar.styleBlackTranslucent();
163    
164
165## Obsługiwane platformy
166
167  * iOS
168  * Windows Phone 7
169  * Windows Phone 8
170  * Windows Phone 8.1
171
172# StatusBar.styleBlackOpaque
173
174Użyj blackOpaque stanu (światło tekst, ciemne tło).
175
176    StatusBar.styleBlackOpaque();
177    
178
179## Obsługiwane platformy
180
181  * iOS
182  * Windows Phone 7
183  * Windows Phone 8
184  * Windows Phone 8.1
185
186# StatusBar.backgroundColorByName
187
188Na iOS 7 gdy zostanie ustawiona wartość false, StatusBar.statusBarOverlaysWebView można ustawić kolor tła stanu przez nazwę koloru.
189
190    StatusBar.backgroundColorByName("red");
191    
192
193Nazwy kolorów obsługiwane są:
194
195    black, darkGray, lightGray, white, gray, red, green, blue, cyan, yellow, magenta, orange, purple, brown
196    
197
198## Obsługiwane platformy
199
200  * iOS
201  * Android 5+
202  * Windows Phone 7
203  * Windows Phone 8
204  * Windows Phone 8.1
205
206# StatusBar.backgroundColorByHexString
207
208Ustawia kolor tła stanu przez ciąg szesnastkowy.
209
210    StatusBar.backgroundColorByHexString("#C0C0C0");
211    
212
213Obsługiwane są również właściwości CSS.
214
215    StatusBar.backgroundColorByHexString("#333"); // => #333333
216    StatusBar.backgroundColorByHexString("#FAB"); // => #FFAABB
217    
218
219Na iOS 7 gdy zostanie ustawiona wartość false, StatusBar.statusBarOverlaysWebView można ustawić kolor tła stanu przez ciąg szesnastkowy (#RRGGBB).
220
221Na WP7 i WP8 można również określić wartości jako #AARRGGBB, gdzie AA jest wartością alfa
222
223## Obsługiwane platformy
224
225  * iOS
226  * Android 5+
227  * Windows Phone 7
228  * Windows Phone 8
229  * Windows Phone 8.1
230
231# StatusBar.hide
232
233Ukryj pasek stanu.
234
235    StatusBar.hide();
236    
237
238## Obsługiwane platformy
239
240  * iOS
241  * Android
242  * Windows Phone 7
243  * Windows Phone 8
244  * Windows Phone 8.1
245
246# StatusBar.show
247
248Pokazuje pasek stanu.
249
250    StatusBar.show();
251    
252
253## Obsługiwane platformy
254
255  * iOS
256  * Android
257  * Windows Phone 7
258  * Windows Phone 8
259  * Windows Phone 8.1
260
261# StatusBar.isVisible
262
263Czytać tej właściwość, aby sprawdzić, czy stanu jest widoczne lub nie.
264
265    if (StatusBar.isVisible) {
266        // do something
267    }
268    
269
270## Obsługiwane platformy
271
272  * iOS
273  * Android
274  * Windows Phone 7
275  * Windows Phone 8
276  * Windows Phone 8.1