English | Site Directory

opensocial.Activity.MediaItem (v0.6)

 SUMMARY     DETAIL

Class opensocial.Activity.MediaItem

A media item associated with an activity. Represents images, movies, and audio. Create a MediaItem object using the opensocial.newActivityMediaItem() method.

Method Summary

 String getField(key)
Gets the media item data that's associated with the specified key.
setField(key, data)
Sets data for this media item associated with the given key.
 

Method Detail

getField

String getField(key)
    Gets the media item data that's associated with the specified key.
    Parameters:
      String key - The key to get data for; see the Field class for possible values
    Returns:
      String The data

setField

setField(key, data)
    Sets data for this media item associated with the given key.
    Parameters:
      String key - The key to set data for
      String data - The data to set

Documentation generated by JsDoc Toolkit 1.3.3