michael@0: michael@0: michael@0: # org.apache.cordova.vibration michael@0: michael@0: 이 플러그인에 W3C 진동 사양 http://www.w3.org/TR/vibration/ 정렬 michael@0: michael@0: 이 플러그인에는 장치를 진동 하는 방법을 제공 합니다. michael@0: michael@0: ## 설치 michael@0: michael@0: cordova plugin add org.apache.cordova.vibration michael@0: michael@0: michael@0: ## 지원 되는 플랫폼 michael@0: michael@0: navigator.vibrate michael@0: navigator.notification.vibrate-아마존 화재 OS-안 드 로이드-블랙베리 10-파이어 폭스 OS-iOS-Windows Phone 7과 8 michael@0: michael@0: navigator.notification.vibrateWithPattern, michael@0: navigator.notification.cancelVibration-안 드 로이드 michael@0: michael@0: ## 진동 (권장) michael@0: michael@0: 이 함수는 전달 된 매개 변수에 따라 세 가지 다른 기능. michael@0: michael@0: ### 기준 진동 michael@0: michael@0: 주어진 시간 동안 장치를 진동. michael@0: michael@0: navigator.vibrate(time) michael@0: michael@0: michael@0: 또는 michael@0: michael@0: navigator.vibrate([time]) michael@0: michael@0: michael@0: -**시간**: 진동 장치 (밀리초)입니다. *(수)* michael@0: michael@0: #### 예를 들어 michael@0: michael@0: // Vibrate for 3 seconds michael@0: navigator.vibrate(3000); michael@0: michael@0: // Vibrate for 3 seconds michael@0: navigator.vibrate([3000]); michael@0: michael@0: michael@0: #### iOS 단점 michael@0: michael@0: * **시간**: 지정 된 시간을 무시 하 고 미리 설정 된 시간 동안 진동. michael@0: michael@0: navigator.vibrate(3000); // 3000 is ignored michael@0: michael@0: #### 윈도 즈와 블랙베리 단점 michael@0: michael@0: * **시간**: 최대 시간은 2000ms (5s) 이며 최소 시간 1ms michael@0: michael@0: navigator.vibrate(8000); // will be truncated to 5000 michael@0: michael@0: ### (안 드 로이드와 Windows에만 해당) 패턴으로 진동 michael@0: michael@0: 지정 된 패턴으로 장치를 진동 michael@0: michael@0: navigator.vibrate(pattern); michael@0: michael@0: michael@0: * **패턴**:의 기간 (밀리초)에서 진동을 켜거나 끌 수 있는 순서. *(숫자의 배열)* michael@0: michael@0: #### 예를 들어 michael@0: michael@0: // Vibrate for 1 second michael@0: // Wait for 1 second michael@0: // Vibrate for 3 seconds michael@0: // Wait for 1 second michael@0: // Vibrate for 5 seconds michael@0: navigator.vibrate([1000, 1000, 3000, 1000, 5000]); michael@0: michael@0: michael@0: ### 진동 (iOS에서 지원 되지 않음) 취소 michael@0: michael@0: 즉시 모든 현재 실행 중인 진동을 취소합니다. michael@0: michael@0: navigator.vibrate(0) michael@0: michael@0: michael@0: 또는 michael@0: michael@0: navigator.vibrate([]) michael@0: michael@0: michael@0: 또는 michael@0: michael@0: navigator.vibrate([0]) michael@0: michael@0: michael@0: 0의 매개 변수 전달, 빈 배열, 또는 0 값의 한 요소 배열은 어떤 진동을 취소할 것 이다. michael@0: michael@0: ## *notification.vibrate (사용 되지 않음) michael@0: michael@0: 주어진 시간 동안 장치를 진동. michael@0: michael@0: navigator.notification.vibrate(time) michael@0: michael@0: michael@0: * **시간**: 진동 장치 (밀리초)입니다. *(수)* michael@0: michael@0: ### 예를 들어 michael@0: michael@0: // Vibrate for 2.5 seconds michael@0: navigator.notification.vibrate(2500); michael@0: michael@0: michael@0: ### iOS 단점 michael@0: michael@0: * **시간**: 지정 된 시간을 무시 하 고 미리 설정 된 시간 동안 진동. michael@0: michael@0: navigator.notification.vibrate(); michael@0: navigator.notification.vibrate(2500); // 2500 is ignored michael@0: michael@0: michael@0: ## *notification.vibrateWithPattern (사용 되지 않음) michael@0: michael@0: 지정 된 패턴으로 장치 진동. michael@0: michael@0: navigator.notification.vibrateWithPattern(pattern, repeat) michael@0: michael@0: michael@0: * **패턴**:의 기간 (밀리초)에서 진동을 켜거나 끌 수 있는 순서. *(숫자의 배열)* michael@0: * **반복**: 반복 (취소 될 때까지 반복 됩니다), 시작 하는 또는-1 (기본값) 없는 반복에 대 한 패턴 배열에 선택적 인덱스. *(수)* michael@0: michael@0: ### 예를 들어 michael@0: michael@0: // Immediately start vibrating michael@0: // vibrate for 100ms, michael@0: // wait for 100ms, michael@0: // vibrate for 200ms, michael@0: // wait for 100ms, michael@0: // vibrate for 400ms, michael@0: // wait for 100ms, michael@0: // vibrate for 800ms, michael@0: // (do not repeat) michael@0: navigator.notification.vibrateWithPattern([0, 100, 100, 200, 100, 400, 100, 800]); michael@0: michael@0: michael@0: ## *notification.cancelVibration (사용 되지 않음) michael@0: michael@0: 즉시 모든 현재 실행 중인 진동을 취소합니다. michael@0: michael@0: navigator.notification.cancelVibration() michael@0: michael@0: michael@0: * 참고-때문에 w3c 사양 가진 줄 맞춤, 별표 메서드 밖으로 단계별로 됩니다.