net.rim.device.api.io.nfc.handover
Class BluetoothConnectionHandoverCompletedEvent

java.lang.Object
  extended by net.rim.device.api.io.nfc.handover.ConnectionHandoverEvent
      extended by net.rim.device.api.io.nfc.handover.ConnectionHandoverCompletedEvent
          extended by net.rim.device.api.io.nfc.handover.BluetoothConnectionHandoverCompletedEvent

public class BluetoothConnectionHandoverCompletedEvent
extends ConnectionHandoverCompletedEvent

Delivered to an application when a Bluetooth® connection handover event completes. Provides the class of device, the device address, the device name and service class UUID properties as specified by the Bluetooth specification.

Since:
BlackBerry API 7.1.0

Field Summary
 
Fields inherited from class net.rim.device.api.io.nfc.handover.ConnectionHandoverEvent
BLUETOOTH_TRANSPORT, REQUESTER_P2P_DETECTED, SELECTOR_P2P_DETECTED, SELECTOR_TAG_READ
 
Constructor Summary
BluetoothConnectionHandoverCompletedEvent(int eventType, byte[] deviceAddress, String deviceName, int classOfDevice, byte[][] serviceClassUUID)
          Constructs a Bluetooth connection handover completed event using the ConnectionHandoverEvent type specified.
 
Method Summary
 int getClassOfDevice()
          Gets the Bluetooth class of device.
 byte[] getDeviceAddress()
          Gets the Bluetooth device address.
 String getDeviceName()
          Gets the Bluetooth device's name.
 byte[][] getServiceClassUUID()
          Gets the Bluetooth device's service class UUID.
 
Methods inherited from class net.rim.device.api.io.nfc.handover.ConnectionHandoverCompletedEvent
getTransportType
 
Methods inherited from class net.rim.device.api.io.nfc.handover.ConnectionHandoverEvent
getEventType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

BluetoothConnectionHandoverCompletedEvent

public BluetoothConnectionHandoverCompletedEvent(int eventType,
                                                 byte[] deviceAddress,
                                                 String deviceName,
                                                 int classOfDevice,
                                                 byte[][] serviceClassUUID)
Constructs a Bluetooth connection handover completed event using the ConnectionHandoverEvent type specified.

Parameters:
eventType - One of the following:
  • ConnectionHandoverEvent.SELECTOR_TAG_READ
  • ConnectionHandoverEvent.REQUESTER_P2P_DETECTED
  • ConnectionHandoverEvent.SELECTOR_P2P_DETECTED
deviceAddress - The Bluetooth device address.
deviceName - The Bluetooth device's name.
classOfDevice - The Bluetooth class of device.
serviceClassUUID - The Bluetooth device's service class UUID.
Since:
BlackBerry API 7.1.0


Method Detail

getClassOfDevice

public int getClassOfDevice()
Gets the Bluetooth class of device.

Returns:
The Bluetooth class of device.
Since:
BlackBerry API 7.1.0

getDeviceAddress

public byte[] getDeviceAddress()
Gets the Bluetooth device address.

Returns:
The Bluetooth device address.
Since:
BlackBerry API 7.1.0

getDeviceName

public String getDeviceName()
Gets the Bluetooth device's name.

Returns:
The Bluetooth device's name.
Since:
BlackBerry API 7.1.0

getServiceClassUUID

public byte[][] getServiceClassUUID()
Gets the Bluetooth device's service class UUID.

Returns:
The Bluetooth device's service class UUID.
Since:
BlackBerry API 7.1.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal