You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
close
Home > PIXO Platform Unity SDK > Data Reporting > Functions - SendSessionEvent()
Functions - SendSessionEvent()
print icon

SendSessionEvent()

SendSessionEvent(TinCan.Statement) : Boolean

The SendSessionEvent function is how you send any data to Apex during a session.

It:

  • Constructs an xAPI statement from provided session data.
  • Sends an event with xAPI statement data.
  • Returns false if there is no logged in user, if JoinSession has not been called to start a session, or if eventStatement is null.

 

OnSendEventSuccess is called when the event has been sent successfully.

 

OnSendEventFailed is called when the session was not started, contains invalid information or when the server is not able to be reached.

  • eventStatement:TinCan.Statement The object that provides all the necessary data to generate the xAPI statement.

 

TinCan

TinCan is a 3rd party software package that helps to build and enforce xAPI standards. The Apex SDK documentation should provide enough context for you to effectively use our implementation of the package, but if you want to dig deeper, the full documentation is available here

 

Feedback
0 out of 0 found this helpful

scroll to top icon