Touchgui/plugins/org.apache.cordova.vibration/doc/ja/index.md

changeset 0
e8ccd40d0ef6
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Touchgui/plugins/org.apache.cordova.vibration/doc/ja/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 - Firefox 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 +この関数は、渡されたパラメーターに基づいて 3 つのさまざまな機能。
    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 +#### Windows とブラックベリー癖
    1.76 +
    1.77 +*   **時間**: 5000 (5 秒) は、最大時間と最小時間は 1 ms
    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 つの要素を持つ配列は任意振動がキャンセルされます。
   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

mercurial