Repository: cordova-docs Updated Branches: refs/heads/master 69669407f -> 62731c5ad
CB-8893 Remove docs for iOS window.shouldRotateToOrientation call Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/62731c5a Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/62731c5a Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/62731c5a Branch: refs/heads/master Commit: 62731c5adc292ff1a0103624d9f81c6457692be5 Parents: 6966940 Author: Simon MacDonald <simon.macdon...@gmail.com> Authored: Tue Sep 1 17:49:12 2015 -0400 Committer: Simon MacDonald <simon.macdon...@gmail.com> Committed: Tue Sep 1 17:49:12 2015 -0400 ---------------------------------------------------------------------- docs/de/edge/config_ref/index.md | 17 ----------------- docs/en/edge/config_ref/index.md | 16 ---------------- docs/es/edge/config_ref/index.md | 17 ----------------- docs/fr/edge/config_ref/index.md | 17 ----------------- docs/it/edge/config_ref/index.md | 17 ----------------- docs/ja/edge/config_ref/index.md | 17 ----------------- docs/ko/edge/config_ref/index.md | 17 ----------------- docs/pl/edge/config_ref/index.md | 17 ----------------- docs/ru/edge/config_ref/index.md | 16 ---------------- docs/zh/edge/config_ref/index.md | 17 ----------------- 10 files changed, 168 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/62731c5a/docs/de/edge/config_ref/index.md ---------------------------------------------------------------------- diff --git a/docs/de/edge/config_ref/index.md b/docs/de/edge/config_ref/index.md index 62cfe62..cbebba3 100644 --- a/docs/de/edge/config_ref/index.md +++ b/docs/de/edge/config_ref/index.md @@ -154,23 +154,6 @@ Die folgenden Einstellungen gelten für mehrere Plattformen, jedoch nicht auf al <preference name="Orientation" value="all" /> </platform> - - Für iOS kann Orientierung programmgesteuert gesteuert werden, indem Sie einen Javascript-Rückruf für `window`definieren: - -<pre>/** - * @param {Number} degree - * UIInterfaceOrientationPortrait: 0, - * UIInterfaceOrientationLandscapeRight: 90, - * UIInterfaceOrientationLandscapeLeft: -90, - * UIInterfaceOrientationPortraitUpsideDown: 180 - * - * @returns {Boolean} Indicating if rotation should be allowed. - */ - function shouldRotateToOrientation(degrees) { - return true; - } - </pre> - ## Das *Feature* Element Wenn Sie die CLI verwenden, um Anwendungen zu erstellen, verwenden Sie den `plugin` -Befehl Gerät APIs zu aktivieren. Dies ändert nicht die Datei auf oberster Ebene `"config.xml"` , also das `<feature>` nicht für Ihren Workflow gilt. Wenn Sie direkt in ein SDK und mit der plattformspezifischen `config.xml` -Datei als Quelle arbeiten, verwenden Sie das Tag `<feature>` Geräteebene APIs und externe Plugins aktivieren. Sie erscheinen oft mit benutzerdefinierten Werte in plattformspezifischen `"config.xml"` -Dateien. Hier ist beispielsweise die Device-API für Android Projekte angeben: http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/62731c5a/docs/en/edge/config_ref/index.md ---------------------------------------------------------------------- diff --git a/docs/en/edge/config_ref/index.md b/docs/en/edge/config_ref/index.md index f875c47..0cf30c1 100644 --- a/docs/en/edge/config_ref/index.md +++ b/docs/en/edge/config_ref/index.md @@ -194,22 +194,6 @@ all of them: <preference name="Orientation" value="all" /> </platform> - For iOS, orientation can be programmatically controlled by defining a javascript callback on `window`: - <pre> - /** - * @param {Number} degree - * UIInterfaceOrientationPortrait: 0, - * UIInterfaceOrientationLandscapeRight: 90, - * UIInterfaceOrientationLandscapeLeft: -90, - * UIInterfaceOrientationPortraitUpsideDown: 180 - * - * @returns {Boolean} Indicating if rotation should be allowed. - */ - function shouldRotateToOrientation(degrees) { - return true; - } - </pre> - ## The _feature_ Element If you use the CLI to build applications, you use the `plugin` command http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/62731c5a/docs/es/edge/config_ref/index.md ---------------------------------------------------------------------- diff --git a/docs/es/edge/config_ref/index.md b/docs/es/edge/config_ref/index.md index 19856d4..3bd6210 100644 --- a/docs/es/edge/config_ref/index.md +++ b/docs/es/edge/config_ref/index.md @@ -154,23 +154,6 @@ A más de una plataforma, pero no a todos ellos se aplican las siguientes prefer <preference name="Orientation" value="all" /> </platform> - - Para iOS, orientación se puede controlar mediante programación por definir un callback de javascript en la `window`: - -<pre>/** - * @param {Number} degree - * UIInterfaceOrientationPortrait: 0, - * UIInterfaceOrientationLandscapeRight: 90, - * UIInterfaceOrientationLandscapeLeft: -90, - * UIInterfaceOrientationPortraitUpsideDown: 180 - * - * @returns {Boolean} Indicating if rotation should be allowed. - */ - function shouldRotateToOrientation(degrees) { - return true; - } - </pre> - ## La *función de* elemento Si utilizas el CLI para construir aplicaciones, usted utilice el comando `plugin` para habilitar dispositivo APIs. No se modifique el archivo `config.xml` de nivel superior, por lo que el elemento `< feature >` no se aplica a su flujo de trabajo. Si trabajas directamente en un SDK y usando el archivo `config.xml` de especÃficas de la plataforma como fuente, se utiliza la etiqueta `< feature >` para habilitar APIs de nivel de dispositivo y plugins externos. A menudo aparecen con valores personalizados en archivos especÃficos para cada plataforma `config.xml` . Por ejemplo, aquà es cómo especificar el dispositivo API para los proyectos de Android: http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/62731c5a/docs/fr/edge/config_ref/index.md ---------------------------------------------------------------------- diff --git a/docs/fr/edge/config_ref/index.md b/docs/fr/edge/config_ref/index.md index fb559fa..b99e19e 100644 --- a/docs/fr/edge/config_ref/index.md +++ b/docs/fr/edge/config_ref/index.md @@ -154,23 +154,6 @@ Les préférences suivantes s'appliquent à plus d'une plate-forme, mais pas tou <preference name="Orientation" value="all" /> </platform> - - Pour iOS, orientation peut être contrôlée par programmation en définissant un rappel javascript sur `window`: - -<pre>/** - * @param {Number} degree - * UIInterfaceOrientationPortrait: 0, - * UIInterfaceOrientationLandscapeRight: 90, - * UIInterfaceOrientationLandscapeLeft: -90, - * UIInterfaceOrientationPortraitUpsideDown: 180 - * - * @returns {Boolean} Indicating if rotation should be allowed. - */ - function shouldRotateToOrientation(degrees) { - return true; - } - </pre> - ## La *fonctionnalité* élément Si vous utilisez la CLI pour créer des applications, vous utilisez la commande `plugin` pour activer le dispositif API. Cela ne modifie pas le fichier de niveau supérieur `config.xml` , aussi l'élément `< feature >` ne s'applique pas à votre flux de travail. Si vous êtes travaillant directement dans un kit de développement logiciel et à l'aide de la plate-forme spécifique `config.xml` fichier source, vous utilisez le `<feature>` tag pour permettre aux API de niveau périphérique et des plugins externes. Elles apparaissent souvent avec des valeurs personnalisées dans les fichiers spécifiques à une plateforme `config.xml` . Par exemple, voici comment spécifier l'API Device pour les projets Android : http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/62731c5a/docs/it/edge/config_ref/index.md ---------------------------------------------------------------------- diff --git a/docs/it/edge/config_ref/index.md b/docs/it/edge/config_ref/index.md index 04a11da..f05f7fc 100644 --- a/docs/it/edge/config_ref/index.md +++ b/docs/it/edge/config_ref/index.md @@ -154,23 +154,6 @@ Per più di una piattaforma, ma non a tutte le, si applicano le seguenti prefere <preference name="Orientation" value="all" /> </platform> - - Per iOS, orientamento può essere controllato a livello di codice mediante la definizione di un callback javascript sulla `window`: - -<pre>/** - * @param {Number} degree - * UIInterfaceOrientationPortrait: 0, - * UIInterfaceOrientationLandscapeRight: 90, - * UIInterfaceOrientationLandscapeLeft: -90, - * UIInterfaceOrientationPortraitUpsideDown: 180 - * - * @returns {Boolean} Indicating if rotation should be allowed. - */ - function shouldRotateToOrientation(degrees) { - return true; - } - </pre> - ## La *funzione di* elemento Se si utilizza la CLI per costruire applicazioni, si utilizza il comando `plugin` per abilitare dispositivo API. Questo non modifica il file di primo livello `config. XML` , quindi l'elemento `< feature >` non si applica al vostro flusso di lavoro. Se si lavora direttamente in un SDK e utilizzando il file di specifica della piattaforma `config. XML` come origine, si utilizza il tag `< feature >` abilitare dispositivo-livello API e plugin esterni. Essi appaiono spesso con i valori personalizzati nel file specifici della piattaforma `config. XML` . Ad esempio, ecco come specificare il Device API per progetti Android: http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/62731c5a/docs/ja/edge/config_ref/index.md ---------------------------------------------------------------------- diff --git a/docs/ja/edge/config_ref/index.md b/docs/ja/edge/config_ref/index.md index 1378911..e586561 100644 --- a/docs/ja/edge/config_ref/index.md +++ b/docs/ja/edge/config_ref/index.md @@ -154,23 +154,6 @@ Android 㨠iOS ã®ä¸¡æ¹ãiOS ã®ããã2 çªç®ã®ãã¼ã¸ã§ã³æåå <preference name="Orientation" value="all" /> </platform> - - IOS ç¨, åãã`ã¦ã£ã³ãã¦`㧠javascript ã³ã¼ã«ããã¯ãå®ç¾©ãããã¨ã«ãã£ã¦ããã°ã©ã ã§å¶å¾¡ã§ãã¾ãã - -<pre>/** - * @param {Number} degree - * UIInterfaceOrientationPortrait: 0, - * UIInterfaceOrientationLandscapeRight: 90, - * UIInterfaceOrientationLandscapeLeft: -90, - * UIInterfaceOrientationPortraitUpsideDown: 180 - * - * @returns {Boolean} Indicating if rotation should be allowed. - */ - function shouldRotateToOrientation(degrees) { - return true; - } - </pre> - ## *æ©è½*è¦ç´ CLI ã使ç¨ãã¦ã¢ããªã±ã¼ã·ã§ã³ãæ§ç¯ããå ´åã¯ãããã¤ã¹ Api ãæå¹ã«ãã`ãã©ã°ã¤ã³`ã³ãã³ãã使ç¨ãã¾ãã ããã¯`< feature >`è¦ç´ ã¯ãã¯ã¼ã¯ããã¼ã«é©ç¨ãããªãã®ã§ãããã¬ãã«ã®`config.xml`ãã¡ã¤ã«ãå¤æ´ããã¾ããã ç´æ¥ã§ãSDK ã¨ã½ã¼ã¹ã¨ãã¦ãã©ãããã©ã¼ã åºæã®`config.xml`ãã¡ã¤ã«ã使ç¨ãã¦ä½æ¥ããå ´åã¯ãããã¤ã¹ ã¬ãã«ã® Api ã¨å¤é¨ãã©ã°ã¤ã³ãæå¹ã«ãã`< æ©è½ >`ã¿ã°ã使ç¨ãã¾ãã å½¼ãã¯ãã°ãã°ãã©ãããã©ã¼ã åºæã®`config.xml`ãã¡ã¤ã«ã«ã«ã¹ã¿ã å¤ã§è¡¨ç¤ºããã¾ãã ãã¨ãã°ãããã§ã¯ Android ããã¸ã§ã¯ãã®ããã¤ã¹ API ãæå®ããæ¹æ³ã§ãã http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/62731c5a/docs/ko/edge/config_ref/index.md ---------------------------------------------------------------------- diff --git a/docs/ko/edge/config_ref/index.md b/docs/ko/edge/config_ref/index.md index b617f3a..5f8b7ae 100644 --- a/docs/ko/edge/config_ref/index.md +++ b/docs/ko/edge/config_ref/index.md @@ -154,23 +154,6 @@ CLI를 ì¬ì© í ì¬ íë¡ì í¸ ë¹ëìì´ íì¼ì ë²ì ì ì ëì <preference name="Orientation" value="all" /> </platform> - - IOSì ë í ë°©í¥ì íë¡ê·¸ëë° ë°©ìì¼ë¡ `ì°½`ì ìë° ì¤í¬ë¦½í¸ ì½ë°±ì ì ì í ì¬ ì ì´í ì ììµëë¤. - -<pre>/** - * @param {Number} degree - * UIInterfaceOrientationPortrait: 0, - * UIInterfaceOrientationLandscapeRight: 90, - * UIInterfaceOrientationLandscapeLeft: -90, - * UIInterfaceOrientationPortraitUpsideDown: 180 - * - * @returns {Boolean} Indicating if rotation should be allowed. - */ - function shouldRotateToOrientation(degrees) { - return true; - } - </pre> - ## *기ë¥* ìì CLI를 ì¬ì© í ì¬ ìì© íë¡ê·¸ë¨ì 구ì¶í ê²½ì° ì¥ì¹ Api를 ì¤ì íë ¤ë©´ `íë¬ê·¸ì¸` ëª ë ¹ì ì¬ì© í©ëë¤. ì´ `< ê¸°ë¥ >` ìì ìí¬íë¡ì ì ì© ëì§ ììµëë¤ ê·¸ëì ìµìì `config.xml` íì¼ì ìì íì§ ììµëë¤. SDK ë° íë«í¼ í¹ì `config.xml` íì¼ì ì¬ì© í ì¬ ì본ì¼ë¡ìì ì§ì ìì íë ê²½ì° ì¥ì¹ ìì¤ Apiì ì¸ë¶ íë¬ê·¸ì¸ì ì¬ì© íë ¤ë©´ `< ê¸°ë¥ >` í그를 ì¬ì© í©ëë¤. ê·¸ë¤ì ì¢ ì¢ íë«í¼ í¹ì `config.xml` íì¼ìì ì¬ì©ì ì§ì ê°ì¼ë¡ ëíë©ëë¤. ì를 ë¤ì´ ì¬ê¸°ì ì ë ë¡ì´ë íë¡ì í¸ì ë í ì¥ì¹ API를 ì§ì íë ë°©ë²ì´ì ëë¤. http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/62731c5a/docs/pl/edge/config_ref/index.md ---------------------------------------------------------------------- diff --git a/docs/pl/edge/config_ref/index.md b/docs/pl/edge/config_ref/index.md index 49d38f3..887b767 100644 --- a/docs/pl/edge/config_ref/index.md +++ b/docs/pl/edge/config_ref/index.md @@ -154,23 +154,6 @@ NastÄpujÄ ce preferencje stosuje siÄ do wiÄcej niż jednej platformy, ale nie <preference name="Orientation" value="all" /> </platform> - - Dla iOS orientacjÄ można programowo kontrolowane przez definiowanie wywoÅania zwrotnego javascript na `windows`: - -<pre>/** - * @param {Number} degree - * UIInterfaceOrientationPortrait: 0, - * UIInterfaceOrientationLandscapeRight: 90, - * UIInterfaceOrientationLandscapeLeft: -90, - * UIInterfaceOrientationPortraitUpsideDown: 180 - * - * @returns {Boolean} Indicating if rotation should be allowed. - */ - function shouldRotateToOrientation(degrees) { - return true; - } - </pre> - ## *Funkcja* elementu JeÅli używasz CLI do tworzenia aplikacji, należy użyÄ polecenia `plugin` aby umożliwiÄ API urzÄ dzeÅ. To nie modyfikuje plik najwyższego poziomu `pliku config.xml` , wiÄc element `< feature >` nie stosuje siÄ do pracy. JeÅli pracujesz bezpoÅrednio w SDK i przy użyciu pliku platformy `plik config.xml` jako źródÅa, używasz tagu `< feature >` wÅÄ czyÄ urzÄ dzenie na poziomie API i zewnÄtrznych wtyczek. CzÄsto pojawiajÄ siÄ z wartoÅci niestandardowe w pliki specyficzne dla platformy `pliku config.xml` . Na przykÅad Oto jak okreÅliÄ API urzÄ dzenia Android projektów: http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/62731c5a/docs/ru/edge/config_ref/index.md ---------------------------------------------------------------------- diff --git a/docs/ru/edge/config_ref/index.md b/docs/ru/edge/config_ref/index.md index 6d45e8a..88a644f 100644 --- a/docs/ru/edge/config_ref/index.md +++ b/docs/ru/edge/config_ref/index.md @@ -149,22 +149,6 @@ license: Licensed to the Apache Software Foundation (ASF) under one <preference name="Orientation" value="all" /> </platform> - ÐÐ»Ñ iOS оÑиенÑаÑией можно пÑогÑаммно ÑпÑавлÑÑÑ Ð¿ÑÑем опÑÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ ÑÑнкÑии обÑаÑного вÑзова javascript в обÑекÑе `window`: - <pre> - /** - * @param {Number} degree - * UIInterfaceOrientationPortrait: 0, - * UIInterfaceOrientationLandscapeRight: 90, - * UIInterfaceOrientationLandscapeLeft: -90, - * UIInterfaceOrientationPortraitUpsideDown: 180 - * - * @returns {Boolean} ÐпÑеделÑÐµÑ Ð´Ð¾Ð¿ÑÑкаеÑÑÑ Ð»Ð¸ повоÑоÑ. - */ - function shouldRotateToOrientation(degrees) { - return true; - } - </pre> - ## ÐÐ»ÐµÐ¼ÐµÐ½Ñ *feature* ÐÑи иÑполÑзовании командной ÑÑÑоки Ð´Ð»Ñ Ð¿Ð¾ÑÑÑÐ¾ÐµÐ½Ð¸Ñ Ð¿Ñиложений, иÑполÑзÑйÑе ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ `plugin`, ÑÑÐ¾Ð±Ñ Ð²ÐºÐ»ÑÑиÑÑ API ÑÑÑÑойÑÑва. ÐÑо не изменÑÐµÑ Ñайл `config.xml` веÑÑ Ð½ÐµÐ³Ð¾ ÑÑовнÑ, Ñак ÑÑо ÑÐ»ÐµÐ¼ÐµÐ½Ñ `<feature>` не пÑименÑеÑÑÑ Ðº ваÑÐµÐ¼Ñ ÑабоÑÐµÐ¼Ñ Ð¿ÑоÑеÑÑÑ. ÐÑли Ð²Ñ ÑабоÑаеÑе непоÑÑедÑÑвенно в SDK и иÑполÑзÑеÑе ÑпеÑиÑиÑеÑкий Ð´Ð»Ñ Ð¿Ð»Ð°ÑÑоÑÐ¼Ñ Ñайл `config.xml` в каÑеÑÑве иÑÑоÑника, иÑполÑзÑйÑе `<feature>` Ñег, ÑÑÐ¾Ð±Ñ Ð²ÐºÐ»ÑÑиÑÑ API ÑÑÑÑойÑÑва и внеÑÐ½Ð¸Ñ Ð¿Ð»Ð°Ð³Ð¸Ð½Ð¾Ð². ÐÑи ÑлеменÑÑ Ð¾Ð±ÑÑно пÑиÑÑÑÑÑвÑÑÑ Ñ ÑазнÑми знаÑениÑми в плаÑÑоÑмо-завиÑимÑÑ ÑÐ°Ð¹Ð»Ð°Ñ `config.xml`. РпÑимеÑÑ, Ñаким обÑазом можно Ñказ аÑÑ Device API Ð´Ð»Ñ Ð¿ÑоекÑов Android: http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/62731c5a/docs/zh/edge/config_ref/index.md ---------------------------------------------------------------------- diff --git a/docs/zh/edge/config_ref/index.md b/docs/zh/edge/config_ref/index.md index b6b9972..086bba6 100644 --- a/docs/zh/edge/config_ref/index.md +++ b/docs/zh/edge/config_ref/index.md @@ -154,23 +154,6 @@ license: Licensed to the Apache Software Foundation (ASF) under one <preference name="Orientation" value="all" /> </platform> - - IOSï¼éé`è¦çª`ä¸å®ç¾© javascript åæªå¯ä»¥ä»¥ç¨å¼è¨è¨æ¹å¼æ§å¶æ¹å: - -<pre>/** - * @param {Number} degree - * UIInterfaceOrientationPortrait: 0, - * UIInterfaceOrientationLandscapeRight: 90, - * UIInterfaceOrientationLandscapeLeft: -90, - * UIInterfaceOrientationPortraitUpsideDown: 180 - * - * @returns {Boolean} Indicating if rotation should be allowed. - */ - function shouldRotateToOrientation(degrees) { - return true; - } - </pre> - ## *åè½*å ç´ å¦æä½ ä½¿ç¨ç CLI ä¾æ§å»ºæç¨ç¨å¼ï¼æ¨å°ä½¿ç¨`å¤æç¨å¼`å½ä»¤ä¾åç¨è¨åç Apiã éä¸ä¿®æ¹é ç´`config.xml`æªä¸ï¼æ以`< åè½ >`å ç´ ä¸¦ä¸é©ç¨äºæ¨çå·¥ä½æµã å¦ææ¨ç´æ¥å¨ SDK å使ç¨ç¹å®äºå¹³èºç`config.xml`æªä½çºæºå·¥ä½ï¼ä½ 使ç¨`< åè½ >`æ¨è¨åç¨è¨åç´ Api åå¤é¨å¤æç¨å¼ã ä»åç¶å¸¸åºç¾ä»¥ç¹å®äºå¹³èºç`config.xml`æªä¸çèªè¨å¼ã ä¾å¦ï¼ä¸é¢æ¯å¦ä½æå®è¨å API çº Android å°æ¡: --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org