net.rim.device.api.io.nfc.readerwriter
Interface DetectionListener


public interface DetectionListener

Receives notifications when a connection to an NFC target is detected.

Since:
BlackBerry API 7.0.0

Method Summary
 void onTargetDetected(Target target)
          Invoked when a connection to an NFC target is detected.
 



Method Detail

onTargetDetected

void onTargetDetected(Target target)
Invoked when a connection to an NFC target is detected. The connection to an NFC target is retrieved by the following code: Connection.open(target.getUri(Target.NDEF_TAG)); Make sure that any communication with the Target occurs on the main event thread. The BlackBerry® device closes the connection to the Target when your application finishes running the onTargetDetected method.

Parameters:
target - An NFC target.
Since:
BlackBerry API 7.0.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