commonroutesServer/www/plugins/cordova-plugin-statusbar/doc/ko/README.md
www/plugins/cordova-plugin-statusbar/doc/ko/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[](https://travis-ci.org/apache/cordova-plugin-statusbar)
23
24# StatusBar
25
26> `StatusBar`개체 iOS와 안 드 로이드 상태 표시줄을 사용자 지정 하려면 몇 가지 기능을 제공 합니다.
27
28## 설치
29
30 cordova plugin add cordova-plugin-statusbar
31
32
33## 환경 설정
34
35#### config.xml
36
37 * **StatusBarOverlaysWebView** (boolean, 기본값: true)입니다. IOS 7, 시작 시 상태 표시줄 오버레이 또는 WebView 중첩 되지 확인 합니다.
38
39 <preference name="StatusBarOverlaysWebView" value="true" />
40
41
42 * **StatusBarBackgroundColor** (색상 16 진수 문자열 기본값: #000000). IOS에서 7과 안 드 로이드 5 시작 시 16 진수 문자열 (#RRGGBB) 상태 표시줄의 배경색을 설정 합니다.
43
44 <preference name="StatusBarBackgroundColor" value="#000000" />
45
46
47 * **StatusBarStyle** (상태 표시줄 스타일, 기본값: lightcontent). Ios 7, 상태 표시줄 스타일을 설정 합니다. 사용 가능한 옵션 기본, lightcontent, blacktranslucent, blackopaque.
48
49 <preference name="StatusBarStyle" value="lightcontent" />
50
51
52### 안 드 로이드 단점
53
54안 드 로이드 5 + 지침 보다 귀하의 주요 응용 프로그램 상태 표시줄에 대 한 다른 색을 사용 하 여 지정한 색상 (와 달리 균일 한 상태 표시줄의 색상 많은 iOS 7 + 애플 리 케이 션), `StatusBar.backgroundColorByHexString` 또는 `StatusBar.backgroundColorByName`를 통해 대신 런타임에 상태 표시줄 색을 설정 하고자 할 수 있습니다. 한 가지 방법은 일 것입니다.
55
56```js
57if (cordova.platformId == 'android') {
58 StatusBar.backgroundColorByHexString("#333");
59}
60```
61
62## 시작 시 숨기기
63
64런타임 동안 아래의 StatusBar.hide 함수를 사용할 수 있습니다 하지만 당신이 원하는 응용 프로그램 시작 시 숨겨진 상태 표시줄, 응용 프로그램의 Info.plist 파일 수정 해야 합니다.
65
66추가 편집이 두 특성이 없는 경우. **"상태 표시줄 처음 숨겨진"** **"YES"** 로 설정 하 고 **"뷰 컨트롤러 기반 상태 표시줄 모양"** **"NO"**로 설정 합니다. Xcode, 열쇠 없이 수동으로 편집 하는 경우 값은:
67
68 <key>UIStatusBarHidden</key>
69 <true/>
70 <key>UIViewControllerBasedStatusBarAppearance</key>
71 <false/>
72
73
74## 메서드
75
76이 플러그인 글로벌 `StatusBar` 개체를 정의합니다.
77
78전역 범위에 있지만 그것은 불가능까지 `deviceready` 이벤트 후.
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## 속성
97
98 * StatusBar.isVisible
99
100## 사용 권한
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
111IOS 7, 오버레이 또는 하지 WebView 중첩 상태 표시줄을 확인 합니다.
112
113 StatusBar.overlaysWebView(true);
114
115
116## 설명
117
1187 iOS, iOS 6 처럼 나타나는 상태 표시줄을 false로 설정 합니다. 다른 함수를 사용 하 여에 맞게 스타일과 배경 색상을 설정 합니다.
119
120## 지원 되는 플랫폼
121
122 * iOS
123
124## 빠른 예제
125
126 StatusBar.overlaysWebView(true);
127 StatusBar.overlaysWebView(false);
128
129
130# StatusBar.styleDefault
131
132기본 상태 표시줄 (어두운 텍스트, 밝은 배경에 대 한)를 사용 합니다.
133
134 StatusBar.styleDefault();
135
136
137## 지원 되는 플랫폼
138
139 * iOS
140 * Windows Phone 7
141 * Windows Phone 8
142 * Windows Phone 8.1
143
144# StatusBar.styleLightContent
145
146LightContent 상태 표시줄 (어두운 배경에 대 한 가벼운 텍스트)을 사용 합니다.
147
148 StatusBar.styleLightContent();
149
150
151## 지원 되는 플랫폼
152
153 * iOS
154 * Windows Phone 7
155 * Windows Phone 8
156 * Windows Phone 8.1
157
158# StatusBar.styleBlackTranslucent
159
160BlackTranslucent 상태 표시줄 (어두운 배경에 대 한 가벼운 텍스트)을 사용 합니다.
161
162 StatusBar.styleBlackTranslucent();
163
164
165## 지원 되는 플랫폼
166
167 * iOS
168 * Windows Phone 7
169 * Windows Phone 8
170 * Windows Phone 8.1
171
172# StatusBar.styleBlackOpaque
173
174BlackOpaque 상태 표시줄 (어두운 배경에 대 한 가벼운 텍스트)을 사용 합니다.
175
176 StatusBar.styleBlackOpaque();
177
178
179## 지원 되는 플랫폼
180
181 * iOS
182 * Windows Phone 7
183 * Windows Phone 8
184 * Windows Phone 8.1
185
186# StatusBar.backgroundColorByName
187
188Ios 7, StatusBar.statusBarOverlaysWebView을 false로 설정 하면 설정할 수 있는 상태 표시줄의 배경색 색상 이름으로.
189
190 StatusBar.backgroundColorByName("red");
191
192
193지원 되는 색 이름입니다.
194
195 black, darkGray, lightGray, white, gray, red, green, blue, cyan, yellow, magenta, orange, purple, brown
196
197
198## 지원 되는 플랫폼
199
200 * iOS
201 * Android 5+
202 * Windows Phone 7
203 * Windows Phone 8
204 * Windows Phone 8.1
205
206# StatusBar.backgroundColorByHexString
207
20816 진수 문자열 상태 표시줄의 배경색을 설정합니다.
209
210 StatusBar.backgroundColorByHexString("#C0C0C0");
211
212
213CSS 대표 속성 지원 됩니다.
214
215 StatusBar.backgroundColorByHexString("#333"); // => #333333
216 StatusBar.backgroundColorByHexString("#FAB"); // => #FFAABB
217
218
219Ios 7, StatusBar.statusBarOverlaysWebView을 false로 설정 하면 설정할 수 있는 상태 표시줄의 배경색 16 진수 문자열 (#RRGGBB)에 의해.
220
221WP7 및 WP8에 당신은 또한 #AARRGGBB, AA는 알파 값으로 값을 지정할 수 있습니다.
222
223## 지원 되는 플랫폼
224
225 * iOS
226 * Android 5+
227 * Windows Phone 7
228 * Windows Phone 8
229 * Windows Phone 8.1
230
231# StatusBar.hide
232
233숨기기 상태 표시줄.
234
235 StatusBar.hide();
236
237
238## 지원 되는 플랫폼
239
240 * iOS
241 * 안 드 로이드
242 * Windows Phone 7
243 * Windows Phone 8
244 * Windows Phone 8.1
245
246# StatusBar.show
247
248상태 표시줄을 표시합니다.
249
250 StatusBar.show();
251
252
253## 지원 되는 플랫폼
254
255 * iOS
256 * 안 드 로이드
257 * Windows Phone 7
258 * Windows Phone 8
259 * Windows Phone 8.1
260
261# StatusBar.isVisible
262
263이 속성을 상태 표시줄 표시 되는 경우 읽기.
264
265 if (StatusBar.isVisible) {
266 // do something
267 }
268
269
270## 지원 되는 플랫폼
271
272 * iOS
273 * 안 드 로이드
274 * Windows Phone 7
275 * Windows Phone 8
276 * Windows Phone 8.1