net.rim.device.api.io.nfc.handover
Interface ConnectionHandoverListener


public interface ConnectionHandoverListener

Processes connection handover events that are triggered after the device establishes a wireless connection.

Since:
BlackBerry API 7.1.0

Method Summary
 boolean completeConnectionHandover()
          Invoked by the platform when a connection handover negotiation is about to start when two NFC-enabled devices tapped.
 void onConnectionHandoverCompleted(ConnectionHandoverCompletedEvent event)
          Invoked by the platform when a connection handover event completes.
 void onConnectionHandoverFailed(ConnectionHandoverFailedEvent event)
          Invoked by the platform when a connection handover event fails.
 



Method Detail

completeConnectionHandover

boolean completeConnectionHandover()
Invoked by the platform when a connection handover negotiation is about to start when two NFC-enabled devices tapped. Based on the response to this method, the platform will decide whether to the connection handover negotiation or not. The platform expects a quick response from this method, UI or other time-consuming action in the implementation of this method is not recommended.

Returns:
True if the ConnectinHandoverListener wishes the connection handover negotiation to start; false otherwise.
Since:
BlackBerry API 7.1.0

onConnectionHandoverCompleted

void onConnectionHandoverCompleted(ConnectionHandoverCompletedEvent event)
Invoked by the platform when a connection handover event completes.

Parameters:
event - The completed event.
Since:
BlackBerry API 7.1.0

onConnectionHandoverFailed

void onConnectionHandoverFailed(ConnectionHandoverFailedEvent event)
Invoked by the platform when a connection handover event fails.

Parameters:
event - The failed event.
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