opensocial.Activity
- Method
- opensocial.Activity.Field
- opensocial.Activity.Field.TITLE_ID
- opensocial.Activity.Field.TITLE
- opensocial.Activity.Field.TEMPLATE_PARAMS
- opensocial.Activity.Field.URL
- opensocial.Activity.Field.MEDIA_ITEMS
- opensocial.Activity.Field.BODY_ID
- opensocial.Activity.Field.BODY
- opensocial.Activity.Field.EXTERNAL_ID
- opensocial.Activity.Field.STREAM_TITLE
- opensocial.Activity.Field.STREAM_URL
- opensocial.Activity.Field.STREAM_SOURCE_URL
- opensocial.Activity.Field.STREAM_FAVICON_URL
- opensocial.Activity.Field.PRIORITY
- opensocial.Activity.Field.ID
- opensocial.Activity.Field.USER_ID
- opensocial.Activity.Field.APP_ID
- opensocial.Activity.Field.POSTED_TIME
- mbga.Activity.Field
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
| Parameter | Type | Description |
|---|---|---|
| key | String | Key for acquiring data. Refer to the Field class for possible values. |
| opt_params | Map.<opensocial.DataRequest.DataRequestFields | Object> |
Return value
| Type | Description |
|---|---|
| String | Data |
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
| Name | Type | Description |
|---|---|---|
| key | String | The key to set in data |
| String | String | The 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.