arnaucube
arnaucube/openEventsPlatformAppPublic Self-hosted repository
openEventsPlatformApp/plugins/cordova-plugin-statusbar/doc/pl/index.md
plugins/cordova-plugin-statusbar/doc/pl/index.mdRaw
  1<!---
  2    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# StatusBar
 23
 24> `StatusBar`Obiekt zawiera kilka funkcji, aby dostosować iOS i Android StatusBar.
 25
 26## Instalacja
 27
 28    cordova plugin add cordova-plugin-statusbar
 29    
 30
 31## Preferencje
 32
 33#### config.xml
 34
 35*   **StatusBarOverlaysWebView** (boolean, domyślnie na wartość true). Na iOS 7 zrobić nakładki stanu lub nie nakładki widoku sieci Web podczas uruchamiania.
 36    
 37        <preference name="StatusBarOverlaysWebView" value="true" />
 38        
 39
 40*   **StatusBarBackgroundColor** (kolor szesnastkowy ciąg, domyślnie #000000). Na iOS 7 ustawić kolor tła stanu przez ciąg szesnastkowy (#RRGGBB) przy starcie systemu.
 41    
 42        <preference name="StatusBarBackgroundColor" value="#000000" />
 43        
 44
 45*   **StatusBarStyle** (stan styl paska, domyślnie lightcontent.) Na iOS 7 ustawić styl paska stanu. Dostępne opcje domyślne, lightcontent, blacktranslucent, blackopaque.
 46    
 47        <preference name="StatusBarStyle" value="lightcontent" />
 48        
 49
 50## Przy starcie
 51
 52Podczas 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.
 53
 54Dodawanie/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ą:
 55
 56    <key>UIStatusBarHidden</key>
 57    <true/>
 58    <key>UIViewControllerBasedStatusBarAppearance</key>
 59    <false/>
 60    
 61
 62## Metody
 63
 64Ten plugin definiuje obiekt globalny `StatusBar`.
 65
 66Chociaż w globalnym zasięgu, to nie dostępne dopiero po `deviceready` imprezie.
 67
 68    document.addEventListener("deviceready", onDeviceReady, false);
 69    function onDeviceReady() {
 70        console.log(StatusBar);
 71    }
 72    
 73
 74*   StatusBar.overlaysWebView
 75*   StatusBar.styleDefault
 76*   StatusBar.styleLightContent
 77*   StatusBar.styleBlackTranslucent
 78*   StatusBar.styleBlackOpaque
 79*   StatusBar.backgroundColorByName
 80*   StatusBar.backgroundColorByHexString
 81*   StatusBar.hide
 82*   StatusBar.show
 83
 84## Właściwości
 85
 86*   StatusBar.isVisible
 87
 88## Uprawnienia
 89
 90#### config.xml
 91
 92            <feature name="StatusBar">
 93                <param name="ios-package" value="CDVStatusBar" onload="true" />
 94            </feature>
 95    
 96
 97# StatusBar.overlaysWebView
 98
 99Na iOS 7 zrobić statusbar nakładki lub nie nakładka widoku sieci Web.
100
101    StatusBar.overlaysWebView(true);
102    
103
104## Opis
105
106Na 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.
107
108## Obsługiwane platformy
109
110*   iOS
111
112## Szybki przykład
113
114    StatusBar.overlaysWebView(true);
115    StatusBar.overlaysWebView(false);
116    
117
118# StatusBar.styleDefault
119
120Użyj domyślnego stanu (ciemny tekst, teł światła).
121
122    StatusBar.styleDefault();
123    
124
125## Obsługiwane platformy
126
127*   iOS
128*   Windows Phone 7
129*   Windows Phone 8
130*   Windows Phone 8.1
131
132# StatusBar.styleLightContent
133
134Użyj lightContent stanu (światło tekst, ciemne tło).
135
136    StatusBar.styleLightContent();
137    
138
139## Obsługiwane platformy
140
141*   iOS
142*   Windows Phone 7
143*   Windows Phone 8
144*   Windows Phone 8.1
145
146# StatusBar.styleBlackTranslucent
147
148Użyj blackTranslucent stanu (światło tekst, ciemne tło).
149
150    StatusBar.styleBlackTranslucent();
151    
152
153## Obsługiwane platformy
154
155*   iOS
156*   Windows Phone 7
157*   Windows Phone 8
158*   Windows Phone 8.1
159
160# StatusBar.styleBlackOpaque
161
162Użyj blackOpaque stanu (światło tekst, ciemne tło).
163
164    StatusBar.styleBlackOpaque();
165    
166
167## Obsługiwane platformy
168
169*   iOS
170*   Windows Phone 7
171*   Windows Phone 8
172*   Windows Phone 8.1
173
174# StatusBar.backgroundColorByName
175
176Na iOS 7 gdy zostanie ustawiona wartość false, StatusBar.statusBarOverlaysWebView można ustawić kolor tła stanu przez nazwę koloru.
177
178    StatusBar.backgroundColorByName("red");
179    
180
181Nazwy kolorów obsługiwane są:
182
183    black, darkGray, lightGray, white, gray, red, green, blue, cyan, yellow, magenta, orange, purple, brown
184    
185
186## Obsługiwane platformy
187
188*   iOS
189*   Windows Phone 7
190*   Windows Phone 8
191*   Windows Phone 8.1
192
193# StatusBar.backgroundColorByHexString
194
195Ustawia kolor tła stanu przez ciąg szesnastkowy.
196
197    StatusBar.backgroundColorByHexString("#C0C0C0");
198    
199
200Obsługiwane są również właściwości CSS.
201
202    StatusBar.backgroundColorByHexString("#333"); // => #333333
203    StatusBar.backgroundColorByHexString("#FAB"); // => #FFAABB
204    
205
206Na iOS 7 gdy zostanie ustawiona wartość false, StatusBar.statusBarOverlaysWebView można ustawić kolor tła stanu przez ciąg szesnastkowy (#RRGGBB).
207
208Na WP7 i WP8 można również określić wartości jako #AARRGGBB, gdzie AA jest wartością alfa
209
210## Obsługiwane platformy
211
212*   iOS
213*   Windows Phone 7
214*   Windows Phone 8
215*   Windows Phone 8.1
216
217# StatusBar.hide
218
219Ukryj pasek stanu.
220
221    StatusBar.hide();
222    
223
224## Obsługiwane platformy
225
226*   iOS
227*   Android
228*   Windows Phone 7
229*   Windows Phone 8
230*   Windows Phone 8.1
231
232# StatusBar.show
233
234Pokazuje pasek stanu.
235
236    StatusBar.show();
237    
238
239## Obsługiwane platformy
240
241*   iOS
242*   Android
243*   Windows Phone 7
244*   Windows Phone 8
245*   Windows Phone 8.1
246
247# StatusBar.isVisible
248
249Czytać tej właściwość, aby sprawdzić, czy stanu jest widoczne lub nie.
250
251    if (StatusBar.isVisible) {
252        // do something
253    }
254    
255
256## Obsługiwane platformy
257
258*   iOS
259*   Android
260*   Windows Phone 7
261*   Windows Phone 8
262*   Windows Phone 8.1