|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.blackberry.api.sendmenu.SendCommandContextKeys
public class SendCommandContextKeys
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.
Field Summary | ||
---|---|---|
|
static String |
PATH
A key for a file URL. |
|
static String |
SUBJECT
A key for a text subject. |
|
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 |
---|
public static final String PATH
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.
public static final String 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.
public static final String 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.
|
|||||||||
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