commonroutesServer/www/plugins/cordova-plugin-splashscreen/doc/ja/index.md
www/plugins/cordova-plugin-splashscreen/doc/ja/index.mdRaw
1<!---
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18-->
19
20# cordova-plugin-splashscreen
21
22このプラグインが表示され、アプリケーションの起動中にスプラッシュ スクリーンを非表示にします。
23
24## インストール
25
26 cordova plugin add cordova-plugin-splashscreen
27
28
29## サポートされているプラットフォーム
30
31* アマゾン火 OS
32* アンドロイド
33* ブラックベリー 10
34* iOS
35* Windows Phone 7 と 8
36* Windows 8
37
38## メソッド
39
40* splashscreen.show
41* splashscreen.hide
42
43### Android の癖
44
45あなたの config.xml を以下の設定を追加する必要があります。
46
47 <preference name="SplashScreen" value="foo" />
48 <preference name="SplashScreenDelay" value="10000" />
49
50
51Foo ができれば 9 パッチファイル splashscreen ファイルの名前です。 解像度/xml ディレクトリの適切なフォルダーの下に splashcreen ファイルを追加することを確認します。 2 番目のパラメーターは、スプラッシュ ・ スクリーンがの表示時間 (ミリ秒単位) を表します。 デフォルトでは 3000 ミリ秒です。 詳細については、[アイコンとスプラッシュ画面][1] を参照してください。
52
53 [1]: http://cordova.apache.org/docs/en/edge/config_ref_images.md.html
54
55## splashscreen.hide
56
57スプラッシュ スクリーンを閉じます。
58
59 navigator.splashscreen.hide();
60
61
62### ブラックベリー 10、WP8、iOS の気まぐれ
63
64`config.xml` ファイルの `AutoHideSplashScreen` の設定は `false` である必要があります。 遅延を 2 秒間スプラッシュ スクリーンを非表示に `deviceready` イベント ハンドラーで、次のようタイマーを追加します。
65
66 setTimeout(function() {
67 navigator.splashscreen.hide();
68 }, 2000);
69
70
71## splashscreen.show
72
73スプラッシュ画面が表示されます。
74
75 navigator.splashscreen.show();
76
77
78アプリが開始され、`deviceready` イベントが発生するまで、アプリケーションは `navigator.splashscreen.show()` を呼び出すことはできません。 しかし、以来、通常スプラッシュ画面アプリ開始前に表示するものですと思われる、スプラッシュ スクリーンの目的の敗北します。 `config.xml` にいくつかの構成を提供するは自動的に `表示` スプラッシュ画面、アプリを起動後すぐに、それが完全に起動し、`deviceready` イベントを受信する前に。 詳細についてはこの構成を行うには、[アイコンとスプラッシュ画面][1] を参照してください。 この理由のためにアプリ起動時のスプラッシュ スクリーンを確認 `navigator.splashscreen.show()` をコールする必要がある可能性が高いです。