mobage.shellapp.Device
メソッド
mobage.shellapp.Device.getUniqueId
String getUniqueId()
端末ユニークな ID を取得します。
- Android版の挙動
- デバイスが通話機能をサポートしている場合は、端末識別番号を返します
- デバイスが通話機能をサポートしていない場合は、Macアドレスを返します
- iOS版の挙動
- UDID を返します
パラメータ
なし
返り値
| 型 | 説明 |
|---|---|
| String | 端末 ID の文字列表現 |
サンプル
var deviceID = mobage.shellapp.Device.getUniqueId();
mobage.shellapp.Device.openURLWithBrowser
void openURLWithBrowser(String url)
外部ブラウザーを起動します。
パラメータ
| 型 | 説明 |
|---|---|
| String | 外部ブラウザーで開く URL の文字列表現 |
返り値
なし
サンプル
mobage.shellapp.Device.openURLWithBrowser("http://www.example.com/");
更新履歴
- 2013/03/01
- iOSの記述を追記
- 2013/01/15
- getUniqueId の詳細を追記
- 2012/12/11
- 新規作成