|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.io.nfc.handover.ConnectionHandoverEvent
net.rim.device.api.io.nfc.handover.ConnectionHandoverFailedEvent
public class ConnectionHandoverFailedEvent
Represents a failed connection handover event.
| Field Summary | ||
|---|---|---|
static int |
FATAL_NFC_SUBSYSTEM_ERROR
Indicates a failure occurred because of a fatal NFC subsystem error. |
|
static int |
HANDOVER_TIMEOUT
Indicates a failure occurred because the handover process timed out. |
|
static int |
LOCAL_TRANSPORT_UNAVAILABLE
Indicates a failure occurred because the transport was unavailable on the device. |
|
static int |
NO_TRANSPORT_AVAILABLE
Indicates a failure occurred because the transport type is unavailable. |
|
static int |
REMOTE_TRANSPORT_UNAVAILABLE
Indicates a failure occurred because the transport was unavailable on the partner device. |
|
static int |
TRANSPORT_ERROR
Indicates a failure occurred for a transport-specific reason. |
|
static int |
TRANSPORT_HANDOVER_CANCELED
Indicates a failure occurred because the user cancelled the request. |
|
static int |
TRANSPORT_POWERED_OFF
Indicates a failure occurred because the transport is powered off. |
|
static int |
TRANSPORT_UNKNOWN
Indicates a failure occurred for a transport-specific reason. |
|
| 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 | ||
|---|---|---|
ConnectionHandoverFailedEvent(int eventType,
int reasonFailed)
Creates a connection handover failed event. |
||
| Method Summary | ||
|---|---|---|
int |
getFailedReason()
Gets the connection handover failure reason. |
|
int |
getTransportReason(int transport)
Gets the connection handover failure reason for the transport type specified. |
|
| 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 |
| Field Detail |
|---|
public static final int NO_TRANSPORT_AVAILABLE
public static final int HANDOVER_TIMEOUT
public static final int FATAL_NFC_SUBSYSTEM_ERROR
public static final int LOCAL_TRANSPORT_UNAVAILABLE
public static final int REMOTE_TRANSPORT_UNAVAILABLE
public static final int TRANSPORT_POWERED_OFF
public static final int TRANSPORT_HANDOVER_CANCELED
public static final int TRANSPORT_ERROR
public static final int TRANSPORT_UNKNOWN
| Constructor Detail |
|---|
public ConnectionHandoverFailedEvent(int eventType,
int reasonFailed)
eventType - One of the following:
ConnectionHandoverEvent.SELECTOR_TAG_READConnectionHandoverEvent.REQUESTER_P2P_DETECTEDConnectionHandoverEvent.SELECTOR_P2P_DETECTEDreasonFailed - One of the following:
ConnectionHandoverFailedEvent.NO_TRANSPORT_AVAILABLEConnectionHandoverFailedEvent.HANDOVER_TIMEOUTConnectionHandoverFailedEvent.FATAL_NFC_SUBSYSTEM_ERROR| Method Detail |
|---|
public int getTransportReason(int transport)
transport - The transport type. Currently, the only supported transport is ConnectionHandoverEvent.BLUETOOTH_TRANSPORT.
ConnectionHandoverFailedEvent.LOCAL_TRANSPORT_UNAVAILABLEConnectionHandoverFailedEvent.REMOTE_TRANSPORT_UNAVAILABLEConnectionHandoverFailedEvent.TRANSPORT_POWERED_OFFConnectionHandoverFailedEvent.TRANSPORT_HANDOVER_CANCELEDConnectionHandoverFailedEvent.TRANSPORT_ERRORConnectionHandoverFailedEvent.TRANSPORT_UNKNOWNpublic int getFailedReason()
ConnectionHandoverFailedEvent.NO_TRANSPORT_AVAILABLEConnectionHandoverFailedEvent.HANDOVER_TIMEOUTConnectionHandoverFailedEvent.FATAL_NFC_SUBSYSTEM_ERROR
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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