net.rim.device.api.io.nfc.push
Class NDEFPushManager

java.lang.Object
  extended by net.rim.device.api.io.nfc.push.NDEFPushManager

public class NDEFPushManager
extends Object

Registers listeners for NDEF push messages.

Since:
BlackBerry API 7.1.0

Method Summary
 void cancelNDEFPush(int pushID)
          Removes an NDEF push request registration.
static NDEFPushManager getInstance()
          Retrieves the system instance of NDEFPushManager, which provides access to the NDEF push feature of the API.
 int pushNDEF(NDEFMessageBuilder ndefMessageBuilder, NDEFPushStatusCallback statusCallback)
          Registers an NDEF push request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Method Detail

getInstance

public static NDEFPushManager getInstance()
                                   throws NFCException
Retrieves the system instance of NDEFPushManager, which provides access to the NDEF push feature of the API.

Returns:
An instance of the NDEFPushManager.
Throws:
SecurityException - If NFC is disabled by an IT policy.
ControlledAccessException - If NFC is disabled by application permissions.
NFCException - If an exception occurs while retrieving the instance.
Since:
BlackBerry API 7.1.0

pushNDEF

public int pushNDEF(NDEFMessageBuilder ndefMessageBuilder,
                    NDEFPushStatusCallback statusCallback)
Registers an NDEF push request. Overwrites previous registrations if the method is invoked more than once.

Parameters:
ndefMessageBuilder - The NDEFMessageBuilder to build NDEF messages.
statusCallback - The NDEFPushStatusCallback to receive notification of push status.
Returns:
The registration ID.
Since:
BlackBerry API 7.1.0

cancelNDEFPush

public void cancelNDEFPush(int pushID)
Removes an NDEF push request registration.

Parameters:
pushID - The registration ID to be removed.
Since:
BlackBerry API 7.1.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