org.opennfc.p2p
Interface P2PLinkEventHandler


public interface P2PLinkEventHandler

Interface definition for a callback to be invoked each time a P2P Link is established or an error occurred or when the connection is broken. These callbacks methods are called if the P2PLinkEventHandler has been registered with the P2P Link Manager using the establishLink() method.

Since:
Open NFC 4.1

Method Summary
 void onLinkDetected(P2PLink link)
          Method called when a new P2P link is established.
 void onLinkError()
          Method called when an error or a call to cancelLink() function occurs during a P2P establishment procedure.
 void onLinkReleased()
          Method called when the link is broken.
 

Method Detail

onLinkDetected

void onLinkDetected(P2PLink link)
Method called when a new P2P link is established.

Parameters:
link - the P2P link.
Since:
Open NFC 4.1

onLinkError

void onLinkError()
Method called when an error or a call to cancelLink() function occurs during a P2P establishment procedure.

Since:
Open NFC 4.1

onLinkReleased

void onLinkReleased()
Method called when the link is broken.

Since:
Open NFC 4.1

Copyright © 2010-2011 Inside Secure
Except as noted, this content is licensed under Apache 2.0 License.