Skip to main content

opensocial.Activity

Method​

opensocial.Activity.getId​

Not supported.

opensocial.Activity.getField​

String getField(key, opt_params)

Acquires data for the Activity linked to the specified key.

Parameter​
ParameterTypeDescription
keyStringKey for acquiring data. Refer to the Field class for possible values.
opt_paramsMap.<opensocial.DataRequest.DataRequestFieldsObject>
Return value​
TypeDescription
StringData
Sample​
var title = activity.getField(opensocial.Activity.Field.TITLE);

opensocial.Activity.setField​

setField(key, data)

Sets data in the Activity with the specified key.

Parameter​
NameTypeDescription
keyStringThe key to set in data
StringStringThe data to set
Return value​

None

Sample​
activity.setField(opensocial.Activity.Field.TITLE, "Hello!");

opensocial.Activity.Field​

opensocial.Activity.Field.TITLE_ID​

Not supported.

opensocial.Activity.Field.TITLE​

The title of the activity. Please use 42 single-byte characters or less (or 21 double-byte characters or less).

opensocial.Activity.Field.TEMPLATE_PARAMS​

Not supported

opensocial.Activity.Field.URL​

This is an activity reference URL for PC. When omitted, it is the URL for the home page of the application.

opensocial.Activity.Field.MEDIA_ITEMS​

Image files on the activities. You can register up to three MediaItem. At this moment, it displayed at a size of 75×75 in the PC version and it will not displayed in the Mobile version.

opensocial.Activity.Field.BODY_ID​

Not supported.

opensocial.Activity.Field.BODY​

This is the main text of an activity. Please do not set the unrestricted text from a user. In addition, the body is not displayed on the mobile version at this point in time.

opensocial.Activity.Field.EXTERNAL_ID​

Not supported.

opensocial.Activity.Field.STREAM_TITLE​

Not supported.

opensocial.Activity.Field.STREAM_URL​

Not supported.

opensocial.Activity.Field.STREAM_SOURCE_URL​

Not supported.

opensocial.Activity.Field.STREAM_FAVICON_URL​

Not supported.

opensocial.Activity.Field.PRIORITY​

There are no discrepancies with the priority order at this moment.

opensocial.Activity.Field.ID​

Not supported.

opensocial.Activity.Field.USER_ID​

Not supported.

opensocial.Activity.Field.APP_ID​

Not supported.

opensocial.Activity.Field.POSTED_TIME​

Not supported.

mbga.Activity.Field​

mbga.Activity.Field.MOBILE_URL​

This is an activity reference URL for mobile devices. When omitted, it is the URL for the home page of the application.

mbga.Activity.Field.TOUCH_URL​

This is an activity reference URL for smartphone devices. When omitted, it is the URL for the home page of the application.

Revision History​

  • 12/2010
    • Initial Release.