net.rim.device.api.io.nfc.push
Interface NDEFPushStatusCallback


public interface NDEFPushStatusCallback

Receives results from NDEF push requests.

Since:
BlackBerry API 7.1.0

Field Summary
static int DATA_TOO_LARGE
          Indicates that the NDEF message is too large for the local or remote device.
static int INVALID_DATA
          Indicates that an invalid NDEF message was supplied.
static int PUSH_ERROR
          Indicates that the NDEF message push failed due to I/O or other error.
static int REJECTED
          Indicates that the NDEF push request was rejected by the remote device.
static int SUCCESS
          Indicates that the NDEF message was successfully pushed to another device.
 
Method Summary
 void onNDEFPushStatusUpdate(NDEFMessage message, int status)
          Invoked after the device pushes an NDEF message over the SNEP protocol, or if error occurs during a push.
 



Field Detail

SUCCESS

static final int SUCCESS
Indicates that the NDEF message was successfully pushed to another device.

See Also:
Constant Field Values
Since:
BlackBerry API 7.1.0

PUSH_ERROR

static final int PUSH_ERROR
Indicates that the NDEF message push failed due to I/O or other error.

See Also:
Constant Field Values
Since:
BlackBerry API 7.1.0

DATA_TOO_LARGE

static final int DATA_TOO_LARGE
Indicates that the NDEF message is too large for the local or remote device.

See Also:
Constant Field Values
Since:
BlackBerry API 7.1.0

INVALID_DATA

static final int INVALID_DATA
Indicates that an invalid NDEF message was supplied.

See Also:
Constant Field Values
Since:
BlackBerry API 7.1.0

REJECTED

static final int REJECTED
Indicates that the NDEF push request was rejected by the remote device.

See Also:
Constant Field Values
Since:
BlackBerry API 7.1.0


Method Detail

onNDEFPushStatusUpdate

void onNDEFPushStatusUpdate(NDEFMessage message,
                            int status)
Invoked after the device pushes an NDEF message over the SNEP protocol, or if error occurs during a push.

Parameters:
message - The NDEF message pushed.
status - The push result. One of the following:
  • NDEFPushStatusCallback.SUCCESS
  • NDEFPushStatusCallback.PUSH_ERROR
  • NDEFPushStatusCallback.DATA_TOO_LARGE
  • NDEFPushStatusCallback.INVALID_DATA
  • NDEFPushStatusCallback.REJECTED
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