net.rim.device.api.io.nfc
Interface NFCFieldListener


public interface NFCFieldListener

Receives notifications when an emulated target detects changes in the NFC field. Note that when two devices negotiate an LLCP connection, they take turns generating an RF field. Immediately prior to the connection being established, the device generating the field reports a FIELD_NOT_PRESENT event. The other device reports a FIELD_PRESENT event to indicate that it can detect an external field. While the connection is established, no additional field events are generated. NFC field events may resume when there are no LLCP connections in progress.

Since:
BlackBerry API 7.0.0

Field Summary
static int FIELD_NOT_PRESENT
          NFC field event indicating that field is not present any more.
static int FIELD_PRESENT
          NFC field event indicating that field is present.
 
Method Summary
 void onFieldChanged(int fieldEvent)
          Invoked by device when NFC field presence has changed.
 



Field Detail

FIELD_PRESENT

static final int FIELD_PRESENT
NFC field event indicating that field is present.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0

FIELD_NOT_PRESENT

static final int FIELD_NOT_PRESENT
NFC field event indicating that field is not present any more.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0


Method Detail

onFieldChanged

void onFieldChanged(int fieldEvent)
Invoked by device when NFC field presence has changed.

Parameters:
fieldEvent - FIELD_PRESENT or FIELD_NOT_PRESENT
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