summaryrefslogtreecommitdiff
path: root/plugins/org.apache.cordova.splashscreen/doc/zh
diff options
context:
space:
mode:
authorARC <arjunrc@gmail.com>2015-05-13 14:58:25 -0400
committerARC <arjunrc@gmail.com>2015-05-13 14:58:25 -0400
commit73968ba1b3c3b5efeb92f70969e40d143eebf3d8 (patch)
tree25f9d358356645c89c212f014f622d5c831e81d0 /plugins/org.apache.cordova.splashscreen/doc/zh
parent1bef6ad92cafa215e3927d0a4d0a29147d52fe56 (diff)
Added plugin directory as well to make sure you have all you need to compile (hopefully)
Diffstat (limited to 'plugins/org.apache.cordova.splashscreen/doc/zh')
-rw-r--r--plugins/org.apache.cordova.splashscreen/doc/zh/index.md74
1 files changed, 74 insertions, 0 deletions
diff --git a/plugins/org.apache.cordova.splashscreen/doc/zh/index.md b/plugins/org.apache.cordova.splashscreen/doc/zh/index.md
new file mode 100644
index 00000000..40e66918
--- /dev/null
+++ b/plugins/org.apache.cordova.splashscreen/doc/zh/index.md
@@ -0,0 +1,74 @@
+<!---
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+# org.apache.cordova.splashscreen
+
+這個外掛程式顯示和隱藏在應用程式啟動期間的初始螢幕。
+
+## 安裝
+
+ cordova plugin add org.apache.cordova.splashscreen
+
+
+## 支援的平臺
+
+* 亞馬遜火 OS
+* Android 系統
+* 黑莓 10
+* iOS
+* Windows Phone 7 和 8
+* Windows 8
+
+## 方法
+
+* splashscreen.show
+* splashscreen.hide
+
+### Android 的怪癖
+
+在你的 config.xml,您需要添加以下優惠:
+
+`<preference name="SplashScreen" value="foo" />` `<preference name="SplashScreenDelay" value="10000" />`
+
+美孚在哪裡閃屏檔,最好是 9 修補程式檔的名稱。 請確保您的 splashcreen 檔添加到 res/xml 目錄下相應的資料夾。 第二個參數表示多久閃屏會顯示以毫秒為單位。 它將預設為 3000 毫秒。 有關更多資訊,請參見[圖示和啟動畫面][1]。
+
+ [1]: http://cordova.apache.org/docs/en/edge/config_ref_images.md.html
+
+## splashscreen.hide
+
+解雇的閃屏。
+
+ navigator.splashscreen.hide() ;
+
+
+### 黑莓 10,WP8,iOS 怪癖
+
+`config.xml`檔的 `AutoHideSplashScreen` 設置必須為 `false` 。 若要延遲兩秒鐘隱藏的閃屏,添加如下所示在計時器 `deviceready` 事件處理常式:
+
+ setTimeout(function() {navigator.splashscreen.hide() ;},2000年) ;
+
+
+## splashscreen.show
+
+顯示初始螢幕。
+
+ navigator.splashscreen.show() ;
+
+
+您的應用程式無法調用 `navigator.splashscreen.show()` 直到應用程式已經開始, `deviceready` 觸發了事件。 但是,由於通常的閃屏為了是可見的在您的應用程式啟動之前,這似乎會打敗閃屏的目的。 提供一些配置在 `config.xml` 將自動 `show` 閃屏您的應用程式啟動後立即和之前它已經完全起步並收到 `deviceready` 事件。 做這種配置的詳細資訊,請參閱[圖示和啟動畫面][1]。 出於這個原因,它不太可能您需要調用 `navigator.splashscreen.show()` ,使初始螢幕可見為應用程式啟動。 \ No newline at end of file