1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Touchgui/plugins/org.apache.cordova.vibration/doc/ko/index.md Thu Jun 04 14:50:33 2015 +0200 1.3 @@ -0,0 +1,170 @@ 1.4 +<!--- 1.5 + Licensed to the Apache Software Foundation (ASF) under one 1.6 + or more contributor license agreements. See the NOTICE file 1.7 + distributed with this work for additional information 1.8 + regarding copyright ownership. The ASF licenses this file 1.9 + to you under the Apache License, Version 2.0 (the 1.10 + "License"); you may not use this file except in compliance 1.11 + with the License. You may obtain a copy of the License at 1.12 + 1.13 + http://www.apache.org/licenses/LICENSE-2.0 1.14 + 1.15 + Unless required by applicable law or agreed to in writing, 1.16 + software distributed under the License is distributed on an 1.17 + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1.18 + KIND, either express or implied. See the License for the 1.19 + specific language governing permissions and limitations 1.20 + under the License. 1.21 +--> 1.22 + 1.23 +# org.apache.cordova.vibration 1.24 + 1.25 +이 플러그인에 W3C 진동 사양 http://www.w3.org/TR/vibration/ 정렬 1.26 + 1.27 +이 플러그인에는 장치를 진동 하는 방법을 제공 합니다. 1.28 + 1.29 +## 설치 1.30 + 1.31 + cordova plugin add org.apache.cordova.vibration 1.32 + 1.33 + 1.34 +## 지원 되는 플랫폼 1.35 + 1.36 +navigator.vibrate 1.37 +navigator.notification.vibrate-아마존 화재 OS-안 드 로이드-블랙베리 10-파이어 폭스 OS-iOS-Windows Phone 7과 8 1.38 + 1.39 +navigator.notification.vibrateWithPattern, 1.40 +navigator.notification.cancelVibration-안 드 로이드 1.41 + 1.42 +## 진동 (권장) 1.43 + 1.44 +이 함수는 전달 된 매개 변수에 따라 세 가지 다른 기능. 1.45 + 1.46 +### 기준 진동 1.47 + 1.48 +주어진 시간 동안 장치를 진동. 1.49 + 1.50 + navigator.vibrate(time) 1.51 + 1.52 + 1.53 +또는 1.54 + 1.55 + navigator.vibrate([time]) 1.56 + 1.57 + 1.58 +-**시간**: 진동 장치 (밀리초)입니다. *(수)* 1.59 + 1.60 +#### 예를 들어 1.61 + 1.62 + // Vibrate for 3 seconds 1.63 + navigator.vibrate(3000); 1.64 + 1.65 + // Vibrate for 3 seconds 1.66 + navigator.vibrate([3000]); 1.67 + 1.68 + 1.69 +#### iOS 단점 1.70 + 1.71 +* **시간**: 지정 된 시간을 무시 하 고 미리 설정 된 시간 동안 진동. 1.72 + 1.73 + navigator.vibrate(3000); // 3000 is ignored 1.74 + 1.75 +#### 윈도 즈와 블랙베리 단점 1.76 + 1.77 +* **시간**: 최대 시간은 2000ms (5s) 이며 최소 시간 1ms 1.78 + 1.79 + navigator.vibrate(8000); // will be truncated to 5000 1.80 + 1.81 +### (안 드 로이드와 Windows에만 해당) 패턴으로 진동 1.82 + 1.83 +지정 된 패턴으로 장치를 진동 1.84 + 1.85 + navigator.vibrate(pattern); 1.86 + 1.87 + 1.88 +* **패턴**:의 기간 (밀리초)에서 진동을 켜거나 끌 수 있는 순서. *(숫자의 배열)* 1.89 + 1.90 +#### 예를 들어 1.91 + 1.92 + // Vibrate for 1 second 1.93 + // Wait for 1 second 1.94 + // Vibrate for 3 seconds 1.95 + // Wait for 1 second 1.96 + // Vibrate for 5 seconds 1.97 + navigator.vibrate([1000, 1000, 3000, 1000, 5000]); 1.98 + 1.99 + 1.100 +### 진동 (iOS에서 지원 되지 않음) 취소 1.101 + 1.102 +즉시 모든 현재 실행 중인 진동을 취소합니다. 1.103 + 1.104 + navigator.vibrate(0) 1.105 + 1.106 + 1.107 +또는 1.108 + 1.109 + navigator.vibrate([]) 1.110 + 1.111 + 1.112 +또는 1.113 + 1.114 + navigator.vibrate([0]) 1.115 + 1.116 + 1.117 +0의 매개 변수 전달, 빈 배열, 또는 0 값의 한 요소 배열은 어떤 진동을 취소할 것 이다. 1.118 + 1.119 +## *notification.vibrate (사용 되지 않음) 1.120 + 1.121 +주어진 시간 동안 장치를 진동. 1.122 + 1.123 + navigator.notification.vibrate(time) 1.124 + 1.125 + 1.126 +* **시간**: 진동 장치 (밀리초)입니다. *(수)* 1.127 + 1.128 +### 예를 들어 1.129 + 1.130 + // Vibrate for 2.5 seconds 1.131 + navigator.notification.vibrate(2500); 1.132 + 1.133 + 1.134 +### iOS 단점 1.135 + 1.136 +* **시간**: 지정 된 시간을 무시 하 고 미리 설정 된 시간 동안 진동. 1.137 + 1.138 + navigator.notification.vibrate(); 1.139 + navigator.notification.vibrate(2500); // 2500 is ignored 1.140 + 1.141 + 1.142 +## *notification.vibrateWithPattern (사용 되지 않음) 1.143 + 1.144 +지정 된 패턴으로 장치 진동. 1.145 + 1.146 + navigator.notification.vibrateWithPattern(pattern, repeat) 1.147 + 1.148 + 1.149 +* **패턴**:의 기간 (밀리초)에서 진동을 켜거나 끌 수 있는 순서. *(숫자의 배열)* 1.150 +* **반복**: 반복 (취소 될 때까지 반복 됩니다), 시작 하는 또는-1 (기본값) 없는 반복에 대 한 패턴 배열에 선택적 인덱스. *(수)* 1.151 + 1.152 +### 예를 들어 1.153 + 1.154 + // Immediately start vibrating 1.155 + // vibrate for 100ms, 1.156 + // wait for 100ms, 1.157 + // vibrate for 200ms, 1.158 + // wait for 100ms, 1.159 + // vibrate for 400ms, 1.160 + // wait for 100ms, 1.161 + // vibrate for 800ms, 1.162 + // (do not repeat) 1.163 + navigator.notification.vibrateWithPattern([0, 100, 100, 200, 100, 400, 100, 800]); 1.164 + 1.165 + 1.166 +## *notification.cancelVibration (사용 되지 않음) 1.167 + 1.168 +즉시 모든 현재 실행 중인 진동을 취소합니다. 1.169 + 1.170 + navigator.notification.cancelVibration() 1.171 + 1.172 + 1.173 +* 참고-때문에 w3c 사양 가진 줄 맞춤, 별표 메서드 밖으로 단계별로 됩니다. 1.174 \ No newline at end of file