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