Transport

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+
- Ripple Emulator

View Supported Platform Table

APIOS 5.0OS 6.0OS 7.0PlayBookRipple
name Y Y Y  Y
type Y 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:


You must declare the feature element(s) below in your configuration document:

Feature IDOS 5.0OS 6.0OS 7.0PlayBookRipple
<feature id="blackberry.identity" /> Y 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.

API Summary


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+
 - Ripple Emulator
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+
 - Ripple Emulator

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 Sun Dec 30 2012 13:31:20 GMT-0500 (EST)