config.md 3.5 KB


license: >

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.

title: 亚马逊火 OS 配置

亚马逊火 OS 配置

config.xml档控制应用于每个应用程式和 CordovaWebView 实例的应用程式的基本设置。 此节详细资讯首选项仅适用于亚马逊火 OS 的基础。 有关全域配置选项的资讯,请参阅 config.xml 档

  • KeepRunning(boolean 类型的值,预设值为 true ): 确定应用程式是否保持甚至后在后台运行 [pause](../../../cordova/events/events.pause.html) 事件火灾。 将此设置为 false 不会杀死后的 app [pause](../../../cordova/events/events.pause.html) 事件,但只是暂停执行代码内Cordova web 视图应用程式时在背景中。

    <preference name="KeepRunning" value="false"/>
    
  • ErrorUrl(URL,预设为 null ): 如果设置,将显示而不是以"应用程式错误"标题对话方块的应用程式中的错误时所引用的网页。

    <preference name="ErrorUrl" value="error.html"/>
    
  • LoadingDialog(字串,预设值为 null ): 如果设置,显示一对话方块中指定的标题和消息,和一个微调框,载入的应用程式中的第一页时。 由在此值字串中的逗号分隔的标题和消息,那逗号删除之前显示的对话方块。

    <preference name="LoadingDialog" value="Please wait, the app is loading"/>
    
  • LoadingPageDialog(字串,预设值为 null ): 相同, LoadingDialog ,但用于在应用程式中的第一页后载入的每个页面。

    <preference name="LoadingPageDialog" value="Please wait, the data is loading"/>
    
  • LoadUrlTimeoutValue(数,预设值是 20000 ): 当载入一个页面,在引发逾时错误之前等待的时间量。 此示例指定 10 秒,而不是 20:

    <preference name="LoadUrlTimeoutValue" value="10000"/>
    
  • SplashScreen: 减去其副档名的档的名称 res/drawable 目录。各种资产必须共用此各子目录中的共同名称。

    <preference name="SplashScreen" value="splash"/>
    
  • SplashScreenDelay(编号,预设值为 5000 ): 所需的时间初始萤幕图像显示。

    <preference name="SplashScreenDelay" value="10000"/>
    
  • ShowTitle(boolean 类型的值,预设值为 false ): 显示在萤幕顶部的标题。

    <preference name="ShowTitle" value="true"/>
    
  • LogLevel(字串,预设值为 ERROR ): 将通过哪些日志将过滤邮件从您的应用程式的最小日志级别设置。 有效的值为 ERRORWARNINFODEBUG ,和VERBOSE.

    <preference name="LogLevel" value="VERBOSE"/>