You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mw...@apache.org on 2013/03/14 19:12:35 UTC
docs commit: CB-2490 Describe NetworkConnection.type.CELL
Updated Branches:
refs/heads/master 9c5a68e97 -> d6d5807da
CB-2490 Describe NetworkConnection.type.CELL
- add CELL type
- updated examples
- updated WP7 / WP8 usage
- added deprecation note for iOS
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/d6d5807d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/d6d5807d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/d6d5807d
Branch: refs/heads/master
Commit: d6d5807da7b94c41ae5dce74f97f40d5f191e9f8
Parents: 9c5a68e
Author: James Jong <wj...@gmail.com>
Authored: Wed Mar 13 22:34:15 2013 -0400
Committer: Michael Brooks <mi...@michaelbrooks.ca>
Committed: Thu Mar 14 11:11:54 2013 -0700
----------------------------------------------------------------------
docs/en/edge/cordova/connection/connection.md | 1 +
docs/en/edge/cordova/connection/connection.type.md | 6 +++++-
2 files changed, 6 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/d6d5807d/docs/en/edge/cordova/connection/connection.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/connection/connection.md b/docs/en/edge/cordova/connection/connection.md
index 6cce266..ebecd12 100644
--- a/docs/en/edge/cordova/connection/connection.md
+++ b/docs/en/edge/cordova/connection/connection.md
@@ -38,6 +38,7 @@ Constants
- Connection.CELL_2G
- Connection.CELL_3G
- Connection.CELL_4G
+- Connection.CELL
- Connection.NONE
Permissions
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/d6d5807d/docs/en/edge/cordova/connection/connection.type.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/connection/connection.type.md b/docs/en/edge/cordova/connection/connection.type.md
index dbecfad..2d3d96e 100644
--- a/docs/en/edge/cordova/connection/connection.type.md
+++ b/docs/en/edge/cordova/connection/connection.type.md
@@ -52,6 +52,7 @@ Quick Example
states[Connection.CELL_2G] = 'Cell 2G connection';
states[Connection.CELL_3G] = 'Cell 3G connection';
states[Connection.CELL_4G] = 'Cell 4G connection';
+ states[Connection.CELL] = 'Cell generic connection';
states[Connection.NONE] = 'No network connection';
alert('Connection type: ' + states[networkState]);
@@ -90,6 +91,7 @@ Full Example
states[Connection.CELL_2G] = 'Cell 2G connection';
states[Connection.CELL_3G] = 'Cell 3G connection';
states[Connection.CELL_4G] = 'Cell 4G connection';
+ states[Connection.CELL] = 'Cell generic connection';
states[Connection.NONE] = 'No network connection';
alert('Connection type: ' + states[networkState]);
@@ -114,7 +116,7 @@ iOS Quirks
----------
- iOS cannot detect the type of cellular network connection.
- - `navigator.connection.type` is set to `Connection.CELL_2G` for all cellular data.
+ - `navigator.connection.type` is set to `Connection.CELL_2G` for all cellular data. This is deprecated as of 2.6.0 and will be changed to return `Connection.CELL` in a future release.
Bada Quirks
-----------
@@ -131,6 +133,8 @@ Windows Phone Quirks
--------------------
- When running in the emulator, always detects `navigator.connection.type` as `Connection.UNKNOWN`.
+- Windows Phone cannot detect the type of cellular network connection.
+ - `navigator.connection.type` is set to `Connection.CELL` for all cellular data.
Tizen Quirks
--------------------