Context

Statement fieldMethod nameParametersDescription

contextActivities

xapiContext.setActivityId

(String id)

Add a context activity object to the statement

xapiContext.setActivityName

(String name)

xapiContext.setActivityDescription

(String description)

xapiContext.setActivityType

(String type)

parent | category | grouping | other

xapiContext.addActivity

(String classification)

Add a context activity object to the statement

extensions

xapiContext.addExtension

(String key, Object value)

language

xapiContext.setLanguage

(String language)

platform

xapiContext.setPlatform

(String platform)

revision

xapiContext.setRevision

(String revision)

statement

xapiContext.setStatement

(String statementId)

instructor

xapiContext.setInstructorName

(String name)

xapiContext.setInstructorAccount

(String name, String homePage)

Only one of these identifiers can be set in a statement. Each method will clear out any other instructor identifiers when called to ensure this XAPI requirement is met.

xapiContext.setInstructorMbox

(String mbox)

xapiContext.setInstructorMboxSha1Sum

(String mbox_sha1sum)

xapiContext.setInstructorOpenId

(String openid)

registration

xapiContext.setRegistration

(String registration)

Last updated