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

java.lang.Object
  extended by net.rim.device.api.io.nfc.handover.ConnectionHandoverEvent
Direct Known Subclasses:
ConnectionHandoverCompletedEvent, ConnectionHandoverFailedEvent

public abstract class ConnectionHandoverEvent
extends Object

Represents a generic connection handover event.

Since:
BlackBerry API 7.1.0

Field Summary
static int BLUETOOTH_TRANSPORT
          Indicates the Bluetooth® transport type.
static int REQUESTER_P2P_DETECTED
          Indicates that an NFC Connection Handover requester device was detected.
static int SELECTOR_P2P_DETECTED
          Indicates that an NFC Connection Handover selector device was detected.
static int SELECTOR_TAG_READ
          Indicates that an NFC tag with an NDEF record containing connection handover information was read.
 
Constructor Summary
protected ConnectionHandoverEvent(int eventType)
          Creates a connection handover event.
 
Method Summary
 int getEventType()
          Gets the type of connection handover event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Field Detail

BLUETOOTH_TRANSPORT

public static final int BLUETOOTH_TRANSPORT
Indicates the Bluetooth® transport type.

See Also:
Constant Field Values
Since:
BlackBerry API 7.1.0

SELECTOR_TAG_READ

public static final int SELECTOR_TAG_READ
Indicates that an NFC tag with an NDEF record containing connection handover information was read.

See Also:
Constant Field Values
Since:
BlackBerry API 7.1.0

REQUESTER_P2P_DETECTED

public static final int REQUESTER_P2P_DETECTED
Indicates that an NFC Connection Handover requester device was detected.

See Also:
Constant Field Values
Since:
BlackBerry API 7.1.0

SELECTOR_P2P_DETECTED

public static final int SELECTOR_P2P_DETECTED
Indicates that an NFC Connection Handover selector device was detected.

See Also:
Constant Field Values
Since:
BlackBerry API 7.1.0


Constructor Detail

ConnectionHandoverEvent

protected ConnectionHandoverEvent(int eventType)
Creates a connection handover event.

Parameters:
eventType - One of the following:
  • ConnectionHandoverEvent.SELECTOR_TAG_READ
  • ConnectionHandoverEvent.REQUESTER_P2P_DETECTED
  • ConnectionHandoverEvent.SELECTOR_P2P_DETECTED
Since:
BlackBerry API 7.1.0


Method Detail

getEventType

public int getEventType()
Gets the type of connection handover event.

Returns:
One of the following:
  • ConnectionHandoverEvent.SELECTOR_TAG_READ
  • ConnectionHandoverEvent.REQUESTER_P2P_DETECTED
  • ConnectionHandoverEvent.SELECTOR_P2P_DETECTED
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