Lisa testing pulling in plugins for plugin: cordova-plugin-inappbrowser
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/687ce604 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/687ce604 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/687ce604 Branch: refs/heads/master Commit: 687ce6047018df1bede0e9273424e52b0493be73 Parents: 8e2db09 Author: ldeluca <[email protected]> Authored: Tue May 27 17:49:43 2014 -0400 Committer: ldeluca <[email protected]> Committed: Tue May 27 17:49:43 2014 -0400 ---------------------------------------------------------------------- doc/ja/index.md | 299 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 299 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/687ce604/doc/ja/index.md ---------------------------------------------------------------------- diff --git a/doc/ja/index.md b/doc/ja/index.md new file mode 100644 index 0000000..fb5bf47 --- /dev/null +++ b/doc/ja/index.md @@ -0,0 +1,299 @@ +<!--- + 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.inappbrowser + +This plugin provides a web browser view that displays when calling `window.open()`, or when opening a link formed as `<a target="_blank">`. + + var ref = window.open('http://apache.org', '_blank', 'location=yes'); + + +**注**: ã¦ã£ã³ãã¦ã®åä½ãInAppBrowser æ¨æºç㪠web ãã©ã¦ã¶ã¼ã®ããã¨ã³ã«ããã® Api ã«ã¢ã¯ã»ã¹ã§ãã¾ããã + +## ã¤ã³ã¹ãã¼ã« + + cordova plugin add org.apache.cordova.inappbrowser + + +### Firefox ã® OS + +[ãããã§ã¹ãã®ããã¥ã¡ã³ã][1]ã§èª¬æããã¦ããããã«ã **www/manifest.webapp**ã使ãã¾ããé¢é£ããæ¨©éã追å ãã¾ãã + + [1]: https://developer.mozilla.org/en-US/Apps/Developing/Manifest + + "permissions": { + "browser": {} + } + + +## window.open + +æ°ãã URL ãéã `InAppBrowser` ã¤ã³ã¹ã¿ã³ã¹ãç¾å¨ã®ãã©ã¦ã¶ã¼ ã¤ã³ã¹ã¿ã³ã¹ã¾ãã¯ã·ã¹ãã ã®ãã©ã¦ã¶ã¼ã + + var ref = window.open urlãã¿ã¼ã²ãã ï¼ãªãã·ã§ã³ï¼; + + +* **ref**: ã¸ã®åç §ã `InAppBrowser` ã¦ã£ã³ãã¦ã*(InAppBrowser)* + +* **url**: *(æåå)*ããã¼ããã URLãé»è©± `encodeURI()` å ´åã¯ããã®ä¸ã® URL 㯠Unicode æåãå«ã¿ã¾ãã + +* **ã¿ã¼ã²ãã**: ã¿ã¼ã²ãã URL ã¯ãæ¢å®å¤ã¯ãçç¥å¯è½ãªãã©ã¡ã¼ã¿ã¼ããã¼ãããã `_self` ã*(æåå)* + + * `_self`: ã³ã«ãã WebView URL ããã¯ã¤ã ãªã¹ãã«ããå ´åã§éãã¾ãããã以å¤ã®å ´åã§éãã¾ãã`InAppBrowser`. + * `_blank`: ã§éãã¾ãã`InAppBrowser`. + * `_system`: ã·ã¹ãã ã® web ãã©ã¦ã¶ã¼ã§éãã¾ãã + +* **ãªãã·ã§ã³**: ãã·ãããã `InAppBrowser` ãçç¥å¯è½ã«ãã: `location=yes` ã*(æåå)* + + `options`æååã«ã¯ããå¿ è¦ãããã¾ãä»»æã®ç©ºç½ã¹ãã¼ã¹ãå«ã¾ãã¦ããªãã¨ãåæ©è½ã®ååã¨å¤ã®ãã¢ãã³ã³ãã§åºåãå¿ è¦ãããã¾ãã æ©è½åã§ã¯å¤§æåå°æåãåºå¥ãã¾ãã 以ä¸ã®å¤ããµãã¼ããããã©ãããã©ã¼ã ã + + * **å ´æ**ï¼ ã«è¨å® `yes` ã¾ã㯠`no` ãæå¹ã«ããã `InAppBrowser` ã®å ´æãã¼ ãªã³ã¾ãã¯ãªãã«ãã¾ãã + + ã¢ã³ããã¤ãã®ã¿ï¼ + + * **closebuttoncaption**: [**å®äº**] ãã¿ã³ã®ãã£ãã·ã§ã³ã¨ãã¦ä½¿ç¨ããæååã«è¨å®ãã¾ãã + * **é表示**: è¨å® `yes` ãã©ã¦ã¶ã¼ã使ãã¦ããã¼ã¸ã®èªã¿è¾¼ã¿ã表示ããã¾ããã Loadstop ã¤ãã³ãã¯ãèªã¿è¾¼ã¿ãå®äºããã¨çºçãã¾ãã çç¥ãããè¨å® `no` (æ¢å®å¤) ãéãããéå¸¸è² è·ãã©ã¦ã¶ã¼ãæã£ã¦ãã¾ãã + * **clearcache**: ã«è¨å®ããã¦ãã `yes` ããã©ã¦ã¶ã¼ã®ã¯ããã¼ ãã£ãã·ã¥ ã¯ãªã¢æ°ããã¦ã£ã³ãã¦ãéãåã« + * **clearsessioncache**ï¼ ã«è¨å®ããã¦ãã `yes` ã¯ã»ãã·ã§ã³ cookie ã®ãã£ãã·ã¥ããªãã«æ°ããã¦ã£ã³ãã¦ãéãåã« + + iOS ã®ã¿: + + * **closebuttoncaption**: [**å®äº**] ãã¿ã³ã®ãã£ãã·ã§ã³ã¨ãã¦ä½¿ç¨ããæååã«è¨å®ãã¾ããèªåã§ãã®å¤ããã¼ã«ã©ã¤ãºããå¿ è¦ããããã¨ã«æ³¨æãã¦ãã ããã + * **disallowoverscroll**: Set to `yes` or `no` (default is `no`). Turns on/off the UIWebViewBounce property. + * **é表示**: è¨å® `yes` ãã©ã¦ã¶ã¼ã使ãã¦ããã¼ã¸ã®èªã¿è¾¼ã¿ã表示ããã¾ããã Loadstop ã¤ãã³ãã¯ãèªã¿è¾¼ã¿ãå®äºããã¨çºçãã¾ãã çç¥ãããè¨å® `no` (æ¢å®å¤) ãéãããéå¸¸è² è·ãã©ã¦ã¶ã¼ãæã£ã¦ãã¾ãã + * **clearcache**: ã«è¨å®ããã¦ãã `yes` ããã©ã¦ã¶ã¼ã®ã¯ããã¼ ãã£ãã·ã¥ ã¯ãªã¢æ°ããã¦ã£ã³ãã¦ãéãåã« + * **clearsessioncache**ï¼ ã«è¨å®ããã¦ãã `yes` ã¯ã»ãã·ã§ã³ cookie ã®ãã£ãã·ã¥ããªãã«æ°ããã¦ã£ã³ãã¦ãéãåã« + * **toolbar**: set to `yes` or `no` to turn the toolbar on or off for the InAppBrowser (defaults to `yes`) + * **enableViewportScale**: Set to `yes` or `no` to prevent viewport scaling through a meta tag (defaults to `no`). + * **mediaPlaybackRequiresUserAction**: Set to `yes` or `no` to prevent HTML5 audio or video from autoplaying (defaults to `no`). + * **allowInlineMediaPlayback**: Set to `yes` or `no` to allow in-line HTML5 media playback, displaying within the browser window rather than a device-specific playback interface. The HTML's `video` element must also include the `webkit-playsinline` attribute (defaults to `no`) + * **keyboardDisplayRequiresUserAction**: Set to `yes` or `no` to open the keyboard when form elements receive focus via JavaScript's `focus()` call (defaults to `yes`). + * **suppressesIncrementalRendering**: Set to `yes` or `no` to wait until all new view content is received before being rendered (defaults to `no`). + * **presentationstyle**: Set to `pagesheet`, `formsheet` or `fullscreen` to set the [presentation style][2] (defaults to `fullscreen`). + * **transitionstyle**: Set to `fliphorizontal`, `crossdissolve` or `coververtical` to set the [transition style][3] (defaults to `coververtical`). + * **toolbarposition**: Set to `top` or `bottom` (default is `bottom`). Causes the toolbar to be at the top or bottom of the window. + + [2]: http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalPresentationStyle + [3]: http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalTransitionStyle + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* ãã©ãã¯ããªã¼ 10 +* iOS +* Windows Phone 7 㨠8 + +### ä¾ + + var ref = window.open('http://apache.org', '_blank', 'location=yes'); + var ref2 = window.open(encodeURI('http://ja.m.wikipedia.org/wiki/ãã³ã°ã«'), '_blank', 'location=yes'); + + +## InAppBrowser + +The object returned from a call to `window.open`. + +### ã¡ã½ãã + +* addEventListener +* removeEventListener +* close +* show +* executeScript +* insertCSS + +## addEventListener + +> ã¤ãã³ãã®ãªã¹ãã¼ã追å ãã¾ãã`InAppBrowser`. + + ref.addEventListener(eventname, callback); + + +* **ref**: ã¸ã®åç §ã `InAppBrowser` ã¦ã£ã³ãã¦*(InAppBrowser)* + +* **eventname**: *(æåå)*ããªãã¹ã³ããã¤ãã³ã + + * ****ï¼ ã¤ãã³ããçºçããã¨ãã `InAppBrowser` ã® URL ã®èªã¿è¾¼ã¿ãéå§ãã¾ãã + * **loadstop**ï¼ ã¤ãã³ããçºçããã¨ãã `InAppBrowser` URL ã®èªã¿è¾¼ã¿ãå®äºãã¾ãã + * **loaderror**ï¼ ã¤ãã³ããçºçããã¨ãã `InAppBrowser` URL ã®èªã¿è¾¼ã¿ã§ã¨ã©ã¼ãçºçãã¾ãã + * **çµäº**: ã¤ãã³ããçºçããã¨ãã `InAppBrowser` ã¦ã£ã³ãã¦ãéãããã¾ãã + +* **ã³ã¼ã«ããã¯**: ã¤ãã³ããçºçããã¨ãã«å®è¡ããã颿°ã颿°ã«æ¸¡ããã¾ããã `InAppBrowserEvent` ãªãã¸ã§ã¯ãããã©ã¡ã¼ã¿ã¼ã¨ãã¦ã + +### InAppBrowserEvent Properties + +* **ã¿ã¤ã**: eventname ã©ã¡ãã `loadstart` ã `loadstop` ã `loaderror` ãã¾ã㯠`exit` ã*(æåå)* + +* **url**: URL ãèªã¿è¾¼ã¾ãã¾ããã*(æåå)* + +* **ã³ã¼ã**: ã®å ´åã«ã®ã¿ãã¨ã©ã¼ ã³ã¼ã `loaderror` ã*(æ°)* + +* **ã¡ãã»ã¼ã¸**: ã®å ´åã«ã®ã¿ãã¨ã©ã¼ ã¡ãã»ã¼ã¸ `loaderror` ã*(æåå)* + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* iOS +* Windows Phone 7 㨠8 + +### ç°¡åãªä¾ + + var ref = window.open('http://apache.org', '_blank', 'location=yes'); + ref.addEventListener('loadstart', function(event) { alert(event.url); }); + + +## removeEventListener + +> ã¤ãã³ãã®ãªã¹ãã¼ãåé¤ãã¾ãã`InAppBrowser`. + + ref.removeEventListener(eventname, callback); + + +* **ref**: ã¸ã®åç §ã `InAppBrowser` ã¦ã£ã³ãã¦ã*(InAppBrowser)* + +* **eventname**: ã¤ãã³ãã®ãªãã¹ã³ã忢ãã¾ãã*(æåå)* + + * ****ï¼ ã¤ãã³ããçºçããã¨ãã `InAppBrowser` ã® URL ã®èªã¿è¾¼ã¿ãéå§ãã¾ãã + * **loadstop**ï¼ ã¤ãã³ããçºçããã¨ãã `InAppBrowser` URL ã®èªã¿è¾¼ã¿ãå®äºãã¾ãã + * **loaderror**ï¼ ã¤ãã³ããçºçããã¨ãã `InAppBrowser` URL ã®èªã¿è¾¼ã¿ã¨ã©ã¼ãçºçãã¾ãã + * **çµäº**: ã¤ãã³ããçºçããã¨ãã `InAppBrowser` ã¦ã£ã³ãã¦ãéãããã¾ãã + +* **ã³ã¼ã«ããã¯**: ã¤ãã³ããçºçããã¨ãã«å®è¡ãã颿°ã颿°ã«æ¸¡ããã¾ããã `InAppBrowserEvent` ãªãã¸ã§ã¯ãã + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* iOS +* Windows Phone 7 㨠8 + +### ç°¡åãªä¾ + + var ref = window.open('http://apache.org', '_blank', 'location=yes'); + var myCallback = function(event) { alert(event.url); } + ref.addEventListener('loadstart', myCallback); + ref.removeEventListener('loadstart', myCallback); + + +## close + +> éããã `InAppBrowser` ã¦ã£ã³ãã¦ã + + ref.close(); + + +* **ref**: ã¸ã®åç §ã `InAppBrowser` ã¦ã£ã³ãã¦*(InAppBrowser)* + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* iOS +* Windows Phone 7 㨠8 + +### ç°¡åãªä¾ + + var ref = window.open('http://apache.org', '_blank', 'location=yes'); + ref.close(); + + +## show + +> é ãããéããã InAppBrowser ã¦ã£ã³ãã¦ã表示ããã¾ãããã®é¢æ°ãå¼ã³åºãã¯å½±é¿ãã¾ãããInAppBrowser ãæ¢ã«è¡¨ç¤ºããã¦ããå ´åã + + ref.show(); + + +* **ref**: InAppBrowser ã¦ã£ã³ã㦠(ã¸ã®åç §`InAppBrowser`) + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* iOS + +### ç°¡åãªä¾ + + var ref = window.open('http://apache.org', '_blank', 'hidden=yes'); + // some time later... + ref.show(); + + +## executeScript + +> JavaScript ã³ã¼ãã«æ¿å ¥ãã¾ãã `InAppBrowser` ã¦ã£ã³ã㦠+ + ref.executeScript(details, callback); + + +* **ref**: ã¸ã®åç §ã `InAppBrowser` ã¦ã£ã³ãã¦ã*(InAppBrowser)* + +* **injectDetails**ï¼ è©³ç´°ãå®è¡ããã¹ã¯ãªããã®ãããããæå®ããã `file` ã¾ã㯠`code` ãã¼ã*(ãªãã¸ã§ã¯ã)* + + * **ãã¡ã¤ã«**ï¼ ã¹ã¯ãªããã® URL ãæ³¨å ¥ãã¾ãã + * **ã³ã¼ã**: ã¹ã¯ãªããã®ããã¹ããæ¿å ¥ãã¾ãã + +* **ã³ã¼ã«ããã¯**: JavaScript ã³ã¼ããæ³¨å ¥ããå¾ã«å®è¡ããã颿°ã + + * æ¿å ¥ãããã¹ã¯ãªãããåã®å ´å `code` ãã¹ã¯ãªããã®æ»ãå¤ã¯ã1 ã¤ã®ãã©ã¡ã¼ã¿ã¼ã§ã³ã¼ã«ããã¯ãå®è¡ããã®ã«å ã¾ãã¦ã `Array` ã ãã«ãã©ã¤ã³ ã¹ã¯ãªããã«ã¤ãã¦ã¯ãæå¾ã®ã¹ãã¼ãã¡ã³ãã§ã¯ãã¾ãã¯è©ä¾¡ããæå¾ã®å¼ã®æ»ãå¤ã§ãã + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* iOS + +### ç°¡åãªä¾ + + var ref = window.open('http://apache.org', '_blank', 'location=yes'); + ref.addEventListener('loadstop', function() { + ref.executeScript({file: "myscript.js"}); + }); + + +## insertCSS + +> CSS ã«æ³¨å ¥ããã `InAppBrowser` ã¦ã£ã³ãã¦ã + + ref.insertCSS(details, callback); + + +* **ref**: ã¸ã®åç §ã `InAppBrowser` ã¦ã£ã³ãã¦*(InAppBrowser)* + +* **injectDetails**ï¼ è©³ç´°ãå®è¡ããã¹ã¯ãªããã®ãããããæå®ããã `file` ã¾ã㯠`code` ãã¼ã*(ãªãã¸ã§ã¯ã)* + + * **ãã¡ã¤ã«**: æ³¨å ¥ããã¹ã¿ã¤ã« ã·ã¼ãã® URLã + * **ã³ã¼ã**: æ³¨å ¥ããã¹ã¿ã¤ã« ã·ã¼ãã®ããã¹ãã + +* **ã³ã¼ã«ããã¯**: CSS ã®æ³¨å ¥å¾ã«å®è¡ããã颿°ã + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* iOS + +### ç°¡åãªä¾ + + var ref = window.open('http://apache.org', '_blank', 'location=yes'); + ref.addEventListener('loadstop', function() { + ref.insertCSS({file: "mystyles.css"}); + }); \ No newline at end of file
