Transport objects are used to store information about BlackBerry connections such as BES, BIS-B, Unite and Hotspots.

Supported Platform(s)
- BlackBerry OS 5.0+
- Supported Platform Table: Expand
API OS 5.0 OS 6.0 OS 7.0 PlayBook
name Y Y Y  
type Y Y Y  

Configuration Document Settings
To use all of the API described for this object, you must ensure the following settings are in your configuration document:
Feature Elements
You must declare the feature element(s) below in your configuration document:
Feature ID OS 5.0 OS 6.0 OS 7.0 PlayBook
<feature id="blackberry.identity" /> Y Y Y  

Permission Elements (PlayBook Only)
This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application.

Properties

Properties:


Property Type Description Supported Platform(s)
name String
readonly
Specifies the name of the Transport, for example, 'Desktop', 'Unite', or 'BIS'.
 - BlackBerry OS 5.0+
type String
readonly
Specifies the type of the Transport. Can be one of the following: TCP Cellular, Wap, Wap 2.0, MDS, Bis B, Unite!, or TCP Wifi.
 - BlackBerry OS 5.0+

Code Example(s)


<script type="text/javascript">    
  var transports = blackberry.identity.getTransportList();
  for (var i = 0; i < transports.length;i++) {
    if (transports[i].type == "BES") {
      alert("You are registered with a BES");
      break;
    }
  }  
</script>

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Sep 14 2011 09:55:32 GMT-0000 (UTC)