|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.io.nfc.handover.ConnectionHandoverManager
public class ConnectionHandoverManager
Registers connection handover listeners. The listeners are called by the platform when a connection handover event occurs. Currently, the platform only supports handovers for the Bluetooth® transport.
| Method Summary | ||
|---|---|---|
void |
addConnectionHandoverListener(ConnectionHandoverListener listener,
int transportType,
boolean autoRemoveOnSuccess)
Registers a ConnectionHandoverListener for handover events releating to the transport specified. |
|
static ConnectionHandoverManager |
getInstance()
Retrieves the system instance of the ConnectionHandoverManager object,
which provides access to NFC handover functionality. |
|
void |
removeConnectionHandoverListener(ConnectionHandoverListener listener)
Removes a ConnectionHandoverListener. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ConnectionHandoverManager getInstance()
ConnectionHandoverManager object,
which provides access to NFC handover functionality.
ConnectionHandoverManager.
public void addConnectionHandoverListener(ConnectionHandoverListener listener,
int transportType,
boolean autoRemoveOnSuccess)
throws NFCException
ConnectionHandoverListener for handover events releating to the transport specified.
listener - A ConnectionHandoverListener.transportType - The connection transport type. Currently, the
platform only supports the
BLUETOOTH_TRANSPORT.autoRemoveOnSuccess - Remove the listener when a successful connection handover event has occured.
NFCException - When the ConnectionHandoverListener cannot be registered.
public void removeConnectionHandoverListener(ConnectionHandoverListener listener)
throws NFCException
ConnectionHandoverListener.
listener - The ConnectionHandoverListener to remove.
NFCException - When the ConnectionHandoverListener cannot be removed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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