opensocial.Collection

Method

opensocial.Collection.getById

Acquires entry using ID. If it does not exist, “null” is returned.

Parameter

Name

Type

Description

id

String

ID

Return value

Type

Description

Object

Data

Sample

opensocial.Collection.size

Acquires collection sizes.

Parameter

None

Return value

Type

Description

Number

 

Sample

opensocial.Collection.each

The specified functions are executed consecutively, with collection members as parameters.

Parameter

名前

Type

Description

fn

Function

Functions to be executed

Return value

None

Sample

opensocial.Collection.asArray

Acquires as object arrays.

Parameter

None

Return value

Type

Description

Array.<Object>

Object arrays

Sample

opensocial.Collection.getTotalSize

Acquires the size of the overall results the collection belongs to.

Parameter

None

Return value

Type

Description

Number

Total size of overall results

Sample

opensocial.Collection.getOffset

Acquires the offset in the overall results the collection belongs to.

Parameter

None

Return value

Type

Description

Number

Offset

Sample

Revision History

  • 12/2010
    • Initial Release.

PREVIOUS

opensocial.BodyType

NEXT

opensocial.CreateActivityPriority