API Docs for: 1.3.12
Show:

XapiConfig Class

Object that holds the xAPI Adapter configuration values returned from the server and provides methods for saving new config values

Methods

get

(
  • serverUrl
  • success
  • failure
)
static

Retrieves the adapter configuration values from the server

Parameters:

  • serverUrl Object

    URL of server to save configuration values to

  • success Object

    Callback triggered on successfully retrieving config values to server

  • failure Object

    Callback triggered if an error occurs while getting the config values

save

(
  • serverUrl
  • success
  • failure
)

Saves this config Objects configuration values to the server specified

Parameters:

  • serverUrl Object

    URL of server to save configuration values to

  • success Object

    Callback triggered on successfully saving config values to server

  • failure Object

    Callback triggered if an error occurs while saving the config values

Properties

/ var end_of_stream = -1; /** A stream represents an ordered sequence of tokens.

Unknown final

End-of-stream is a special token that signifies no more tokens are in the stream.

Sub-properties:

  • tokens !(Array. | Uint8Array)

    Array of tokens that provide the stream.

!Array.<{ heading: string, encodings: Array.<{name:string,labels:Array.> }>} final