Touchgui/plugins/org.apache.cordova.device/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.device/doc/ja/index.md	Thu Jun 04 14:50:33 2015 +0200
     1.3 @@ -0,0 +1,206 @@
     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.device
    1.24 +
    1.25 +このプラグインをグローバル定義します `device` オブジェクトは、デバイスのハードウェアとソフトウェアについて説明します。 それは後まで利用可能なオブジェクトがグローバル スコープでは、 `deviceready` イベント。
    1.26 +
    1.27 +    document.addEventListener("deviceready", onDeviceReady, false);
    1.28 +    function onDeviceReady() {
    1.29 +        console.log(device.cordova);
    1.30 +    }
    1.31 +    
    1.32 +
    1.33 +## インストール
    1.34 +
    1.35 +    cordova plugin add org.apache.cordova.device
    1.36 +    
    1.37 +
    1.38 +## プロパティ
    1.39 +
    1.40 +*   device.cordova
    1.41 +*   device.model
    1.42 +*   device.platform
    1.43 +*   device.uuid
    1.44 +*   device.version
    1.45 +
    1.46 +## device.cordova
    1.47 +
    1.48 +デバイスで実行されているコルドバのバージョンを取得します。
    1.49 +
    1.50 +### サポートされているプラットフォーム
    1.51 +
    1.52 +*   アマゾン火 OS
    1.53 +*   アンドロイド
    1.54 +*   ブラックベリー 10
    1.55 +*   ブラウザー
    1.56 +*   Firefox の OS
    1.57 +*   iOS
    1.58 +*   Tizen
    1.59 +*   Windows Phone 7 と 8
    1.60 +*   Windows 8
    1.61 +
    1.62 +## device.model
    1.63 +
    1.64 +`device.model`、デバイスのモデルまたは製品の名前を返します。値は、デバイスの製造元によって設定され、同じ製品のバージョン間で異なる可能性があります。
    1.65 +
    1.66 +### サポートされているプラットフォーム
    1.67 +
    1.68 +*   アンドロイド
    1.69 +*   ブラックベリー 10
    1.70 +*   ブラウザー
    1.71 +*   iOS
    1.72 +*   Tizen
    1.73 +*   Windows Phone 7 と 8
    1.74 +*   Windows 8
    1.75 +
    1.76 +### 簡単な例
    1.77 +
    1.78 +    // Android:    Nexus One       returns "Passion" (Nexus One code name)
    1.79 +    //             Motorola Droid  returns "voles"
    1.80 +    // BlackBerry: Torch 9800      returns "9800"
    1.81 +    // Browser:    Google Chrome   returns "Chrome"
    1.82 +    //             Safari          returns "Safari"
    1.83 +    // iOS:     for the iPad Mini, returns iPad2,5; iPhone 5 is iPhone 5,1. Http://theiphonewiki.com/wiki/index.php?title=Models を参照してください//var モデル = device.model;
    1.84 +    
    1.85 +
    1.86 +### Android の癖
    1.87 +
    1.88 +*   生産コード名は[モデル名][1]の代わりに[製品名][2]を取得します。 たとえば、ネクサス 1 つを返します `Passion` 、Motorola のドロイドを返します`voles`.
    1.89 +
    1.90 + [1]: http://developer.android.com/reference/android/os/Build.html#MODEL
    1.91 + [2]: http://developer.android.com/reference/android/os/Build.html#PRODUCT
    1.92 +
    1.93 +### Tizen の癖
    1.94 +
    1.95 +*   たとえば、ベンダーによって割り当てられているデバイスのモデルを返します`TIZEN`
    1.96 +
    1.97 +### Windows Phone 7 と 8 癖
    1.98 +
    1.99 +*   製造元によって指定されたデバイスのモデルを返します。たとえば、三星フォーカスを返します`SGH-i917`.
   1.100 +
   1.101 +## device.platform
   1.102 +
   1.103 +デバイスのオペレーティング システム名を取得します。
   1.104 +
   1.105 +    var string = device.platform;
   1.106 +    
   1.107 +
   1.108 +### サポートされているプラットフォーム
   1.109 +
   1.110 +*   アンドロイド
   1.111 +*   ブラックベリー 10
   1.112 +*   Browser4
   1.113 +*   Firefox の OS
   1.114 +*   iOS
   1.115 +*   Tizen
   1.116 +*   Windows Phone 7 と 8
   1.117 +*   Windows 8
   1.118 +
   1.119 +### 簡単な例
   1.120 +
   1.121 +    // Depending on the device, a few examples are:
   1.122 +    //   - "Android"
   1.123 +    //   - "BlackBerry 10"
   1.124 +    //   - Browser:         returns "MacIntel" on Mac
   1.125 +    //                      returns "Win32" on Windows
   1.126 +    //   - "iOS"
   1.127 +    //   - "WinCE"
   1.128 +    //   - "Tizen"
   1.129 +    var devicePlatform = device.platform;
   1.130 +    
   1.131 +
   1.132 +### Windows Phone 7 の癖
   1.133 +
   1.134 +Windows Phone 7 デバイスとプラットフォームを報告します。`WinCE`.
   1.135 +
   1.136 +### Windows Phone 8 癖
   1.137 +
   1.138 +Windows Phone 8 デバイスとプラットフォームを報告します。`Win32NT`.
   1.139 +
   1.140 +## device.uuid
   1.141 +
   1.142 +デバイスのユニバーサル ・ ユニーク識別子 ([UUID][3]を取得します。).
   1.143 +
   1.144 + [3]: http://en.wikipedia.org/wiki/Universally_Unique_Identifier
   1.145 +
   1.146 +    var string = device.uuid;
   1.147 +    
   1.148 +
   1.149 +### 説明
   1.150 +
   1.151 +UUID を生成する方法の詳細は、デバイスの製造元によって決定され、デバイスのプラットフォームやモデルに固有です。
   1.152 +
   1.153 +### サポートされているプラットフォーム
   1.154 +
   1.155 +*   アンドロイド
   1.156 +*   ブラックベリー 10
   1.157 +*   iOS
   1.158 +*   Tizen
   1.159 +*   Windows Phone 7 と 8
   1.160 +*   Windows 8
   1.161 +
   1.162 +### 簡単な例
   1.163 +
   1.164 +    //アンドロイド: ランダムな 64 ビットの整数 (を文字列として返します、再び !)/デバイスの最初の起動時に生成される整数/////ブラックベリー: デバイスのピン番号を返します//これは 9 桁の一意な整数 (を文字列としても !)////iPhone: (UIDevice クラスのドキュメントから言い換え)//識別複数のハードウェアから作成されたハッシュ値の文字列を返します。。
   1.165 +    //それはすべてのデバイスに対して一意であることが保証され、接続することはできません//ユーザー アカウント。
   1.166 +    //Windows Phone 7: デバイス + 現在のユーザーのハッシュを返します//ユーザーが定義されていない場合 guid が生成され、アプリがアンインストールされるまで保持されます//Tizen: デバイスの IMEI を返します (国際モバイル機器アイデンティティまたは IMEI は番号です//すべての GSM および UMTS の携帯電話に固有です。
   1.167 +    var deviceID = device.uuid;
   1.168 +    
   1.169 +
   1.170 +### iOS の気まぐれ
   1.171 +
   1.172 +`uuid`IOS で、デバイスに固有ではないインストールごと、アプリケーションごとに異なります。 削除、アプリを再インストールした場合に変更と多分またときアップグレード iOS の, またはもアップグレードするアプリ (iOS の 5.1 で明らかに) バージョンごと。 `uuid`は信頼性の高い値ではありません。
   1.173 +
   1.174 +### Windows Phone 7 と 8 癖
   1.175 +
   1.176 +`uuid`のために Windows Phone 7 には、権限が必要です `ID_CAP_IDENTITY_DEVICE` 。 Microsoft はすぐにこのプロパティを廃止して可能性があります。 機能が利用できない場合、アプリケーションはデバイスへのアプリケーションのインストールの持続期間のために保持されている永続的な guid を生成します。
   1.177 +
   1.178 +## device.version
   1.179 +
   1.180 +オペレーティング システムのバージョンを取得します。
   1.181 +
   1.182 +    var string = device.version;
   1.183 +    
   1.184 +
   1.185 +### サポートされているプラットフォーム
   1.186 +
   1.187 +*   アンドロイド 2.1 +
   1.188 +*   ブラックベリー 10
   1.189 +*   ブラウザー
   1.190 +*   iOS
   1.191 +*   Tizen
   1.192 +*   Windows Phone 7 と 8
   1.193 +*   Windows 8
   1.194 +
   1.195 +### 簡単な例
   1.196 +
   1.197 +    // Android:    Froyo OS would return "2.2"
   1.198 +    //             Eclair OS would return "2.1", "2.0.1", or "2.0"
   1.199 +    //             Version can also return update level "2.1-update1"
   1.200 +    //
   1.201 +    // BlackBerry: Torch 9800 using OS 6.0 would return "6.0.0.600"
   1.202 +    //
   1.203 +    // Browser:    Returns version number for the browser
   1.204 +    //
   1.205 +    // iPhone:     iOS 3.2 returns "3.2"
   1.206 +    //
   1.207 +    // Windows Phone 7: returns current OS version number, ex. on Mango returns 7.10.7720
   1.208 +    // Tizen: returns "TIZEN_20120425_2"
   1.209 +    var deviceVersion = device.version;
   1.210 \ No newline at end of file

mercurial