net.rim.blackberry.api.sendmenu
Class SendCommandContextKeys

java.lang.Object
  extended by net.rim.blackberry.api.sendmenu.SendCommandContextKeys

public class SendCommandContextKeys
extends Object

Defines keys to store and access the content context data in JSONObject objects for SendCommand objects.

There is no requirement that these keys actually be used, but are defined to standardize the keys.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 7.0.0

Field Summary
Category: Signed static String PATH
          A key for a file URL.
Category: Signed static String SUBJECT
          A key for a text subject.
Category: Signed static String TEXT
          A key for text.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Field Detail

PATH

public static final String PATH
A key for a file URL.

This is a string whose value can be used as a key in a JSONObject to store a String value representing a file system path. An example value could be "/SDCard/BlackBerry/camera/photo.jpg". There is no requirement for this file to actually exist. If a SendCommand type is SendCommand.TYPE_PATH, then this key is required in the context object.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 7.0.0

SUBJECT

public static final String SUBJECT
A key for a text subject.

This is a string whose value can be used as a key in a JSONObject to store a String value representing a message’s subject. If a SendCommand type is SendCommand.TYPE_TEXT, then this key is optional in the context object.

For example, if the target application is the Messages application, then the subject of the message will be set to the value under this key, if one is present in the JSONObject content context object.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 7.0.0

TEXT

public static final String TEXT
A key for text.

This is a string whose value can be used as a key in a JSONObject to store a String value representing a mesage’s body. If a SendCommand type is SendCommand.TYPE_TEXT, then this key is required in the context object.

For example, if the target application is the Messages application, then the body of the message will be set to the value under this key, if one is present in the JSONObject content context object.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 7.0.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