public interface

NdefHandler

mobisocial.nfc.NdefHandler
Known Indirect Subclasses

Class Overview

A callback issued when an Nfc tag is read.

Summary

Constants
int NDEF_CONSUME
int NDEF_PROPAGATE
Public Methods
abstract int handleNdef(NdefMessage[] ndefMessages)
Callback issued after an NFC tag is read or an NDEF message is received from a remote device.

Constants

public static final int NDEF_CONSUME

Constant Value: 1 (0x00000001)

public static final int NDEF_PROPAGATE

Constant Value: 0 (0x00000000)

Public Methods

public abstract int handleNdef (NdefMessage[] ndefMessages)

Callback issued after an NFC tag is read or an NDEF message is received from a remote device. This method is executed off the main thread, so be careful when updating UI elements as a result of this callback.

Returns