rim:connection element

Supported platforms

  • yes BlackBerry OS: 5.0 - 7.0
  • no BlackBerry PlayBook OS: 2.0+
  • no BlackBerry 10 OS

Syntax

<rim:connection timeout="number" />

Description

The <rim:connection> element specifies the amount of time the BlackBerry device can use to make a connection to the wireless network.

Parent elements

<widget>

Child elements

<id>.

Occurrences

Zero or one

Attributes

You can use the following attributes in this element:

Attribute Description
timeout

The timeout attribute overrides the default timeout when the device attempts to connect to the wireless network by using a particular transport method. If you do not specify a value for this attribute, the device uses the timeout that the BlackBerry Device Software applications use.

You specify the value for this attribute in milliseconds. If you do not specify a valid numeric value, the timeout that you specify is ignored.

The default timeout is 30000 ms.

Example: Specifying the connection timeout

<rim:connection timeout="25000" />