public class

ConnectionHandoverManager

extends Object
implements NdefHandler PrioritizedHandler
java.lang.Object
   ↳ mobisocial.nfc.ConnectionHandoverManager
Known Direct Subclasses

Summary

Constants
int HANDOVER_PRIORITY
String TAG
String USER_HANDOVER_PREFIX
[Expand]
Inherited Constants
From interface mobisocial.nfc.NdefHandler
From interface mobisocial.nfc.PrioritizedHandler
Public Constructors
ConnectionHandoverManager()
Public Methods
void addConnectionHandover(ConnectionHandover handover)
void clearConnectionHandovers()
final int doHandover(NdefMessage handoverRequest)
static int findHandoverRequest(NdefMessage ndef)
Returns true if the given Ndef message contains a connection handover request.
Set<ConnectionHandover> getConnectionHandoverResponders()
Returns the (mutable) set of active connection handover responders.
int getPriority()
final int handleNdef(NdefMessage[] handoverRequest)
Callback issued after an NFC tag is read or an NDEF message is received from a remote device.
static boolean isHandoverRequest(NdefMessage ndefMessage)
boolean removeConnectionHandover(ConnectionHandover handover)
[Expand]
Inherited Methods
From class java.lang.Object
From interface mobisocial.nfc.NdefHandler
From interface mobisocial.nfc.PrioritizedHandler

Constants

public static final int HANDOVER_PRIORITY

Constant Value: 5 (0x00000005)

public static final String TAG

Constant Value: "connectionhandover"

public static final String USER_HANDOVER_PREFIX

Constant Value: "ndef://wkt:hr/"

Public Constructors

public ConnectionHandoverManager ()

Public Methods

public void addConnectionHandover (ConnectionHandover handover)

public void clearConnectionHandovers ()

public final int doHandover (NdefMessage handoverRequest)

public static int findHandoverRequest (NdefMessage ndef)

Returns true if the given Ndef message contains a connection handover request.

public Set<ConnectionHandover> getConnectionHandoverResponders ()

Returns the (mutable) set of active connection handover responders.

public int getPriority ()

public final int handleNdef (NdefMessage[] handoverRequest)

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

public static boolean isHandoverRequest (NdefMessage ndefMessage)

public boolean removeConnectionHandover (ConnectionHandover handover)