Featured classes

net.rim.device.api.bluetooth.BluetoothSerialPort

This class provides access to the Bluetooth® Serial Port profile on the BlackBerry® device. This access allows the BlackBerry device to connect to a Bluetooth enabled device, send data to a Bluetooth enabled device, receive data from a Bluetooth enabled device, and retrieve information about the state of the Bluetooth Serial Port profile on the Bluetooth enabled device, such as whether the device supports Bluetooth technology.

The sample application uses this class to verify if the BlackBerry device supports Bluetooth technology. If it supports Bluetooth technology, the BlackBerry device then uses this class to establish a connection with another Bluetooth enabled device to send and receive data.

net.rim.device.api.bluetooth.BluetoothSerialPortInfo

This class provides methods to retrieve information about the BluetoothSerialPort that the class is associated with. One of the BluetoothSerialPort constructors uses this class to associate a Bluetooth enabled client device with a Bluetooth enabled server device.

The sample application uses this class to associate a Bluetooth enabled server device with a Bluetooth enabled client device when the SPPScreen starts.

Featured interfaces

net.rim.device.api.bluetooth.BluetoothSerialPortListener

This interface provides methods to manage I/O events between Bluetooth® connected devices. The methods that this interface implements are invoked when a Bluetooth enabled device connects or disconnects with the BlackBerry® device, when the BlackBerry device sends or receives data using the Bluetooth connection, or when the DTR state changes.

The sample application uses these methods to output text to the BlackBerry device when a connection is opened or closed, send the text input on the Bluetooth client device to the Bluetooth server device, and display text received from the Bluetooth enabled client device on the Bluetooth enabled server device.

Next topic: Featured interfaces
Previous topic: Overview

Was this information helpful? Send us your comments.