Proview.init(initOptions)
. The options
parameter is a configuration object .
Function Type: SynchronousInit Options
Attribute | Type | Description | Default |
---|---|---|---|
dsn* | string | The DSN tells the SDK where to send the events. If this is not set, the SDK will not send any events. | |
attendee_identifier | string | Value that can identify the user in the source platform. While this is not a mandatory field at the time of init but its required to start a proctored session. | |
workflow_identifier | string | Value that can identify the exam in the source platform. While this is not a mandatory field at the time of init but its required to start a proctored session. | |
session_identifier | string | Value that can identify the proctored session in the source platform. | |
limit_languages | [locale.languages] [] | This will limit language options for users to select from the supported list | All supported languages |
language | [locale.languages] | Explicitly set the SDK language | Browser default if its not supported then fallback to English (en-US ). |
Example
Error Object
Attribute | Type | Description | Default |
---|---|---|---|
code | string | This will identify predefined error by code. Ref Error Code section | |
message | string | Message will contain reason for the error. | |
type | enum | Error could be of type warning or critical. When critical error is raised it will impact core proctoring feature delivery. | |
validationErrors | validationError[] |
Example
Example
Example
Attendee Attributes
Attribute | Type | Description | Default |
---|---|---|---|
identifier* | string | unique user identifier from the source system. It will be the external id in the Talview platform. | |
first_name | string | ||
last_name | string | ||
middle_name | string | ||
string | If not passed then system will generate email based on identifier. e.g: Att0001@dnd.talview.com | ||
country_code | string (3) | ISO country code | |
country | string | Country code is passed then system will auto identify the country otherwise system will identify country code from country. | |
phone | string (15) | E164 format | |
id | int | Talview unique id generated for the course |
Example
Attendee Attributes
Attribute | Type | Description | Default |
---|---|---|---|
identifier* | string | unique user identifier from the source system. It will be the external id in the Talview platform. | |
first_name | string | ||
last_name | string | ||
middle_name | string | ||
string | If not passed then system will generate email based on identifier. e.g: Att0001@dnd.talview.com | ||
country_code | string (3) | ISO country code | |
country | string | Country code is passed then system will auto identify the country otherwise system will identify country code from country. | |
phone | string (15) | E164 format | |
id | int | Talview unique id generated for the course |
Example
Workflow
Attribute | Type | Description | Default |
---|---|---|---|
identifier* | string | Unique identifier for the exam from the calling application. It will be the external id in the Talview platform. | |
name | string | Name of the exam | If name is not passed then external id will be used. |
flow_id | int | This is the proctor session onboarding flow identifier. | if not passed then detail flow will be mapped based on project DSN |
duration | int | duration of the exam in min | |
resource | [{string,string}] | Array of key value pair to persist additional info related to exam. | |
course | [Course] | ||
id | int | Talview unique id generated for the course |
Workflow
Attribute | Type | Description | Default |
---|---|---|---|
identifier* | string | Unique identifier for the exam from the calling application. It will be the external id in the Talview platform. | |
name | string | Name of the exam | If name is not passed then external id will be used. |
flow_id | int | This is the proctor session onboarding flow identifier. | if not passed then detail flow will be mapped based on project DSN |
duration | int | duration of the exam in min | |
resource | [{string,string}] | Array of key value pair to persist additional info related to exam. | |
course | [Course] | ||
id | int | Talview unique id generated for the course |
Example
Locale
Attribute | Type | Description | Default |
---|---|---|---|
language | string | based on browser info | |
string | ISO 4217 currency codes | based on browser info | |
string | Timezone | based on browser info |
SessionState
init
registered
running
paused
suspended
terminated
stopped
completed
SessionOutput
Attribute | Type | Description | Default |
---|---|---|---|
uuid | GUID | Reference Talview identifier for client application to track. | |
state | session.states | ||
attendee | Attendee | ||
workflow | Workflow | If not passed then system will generate email based on identifier. e.g: Att0001@dnd.talview.com | |
identifier | string | unique session identifier from the source system. It will be the session external id in the Talview platform. |
Proview.Hooks.onRegister
, Proview.Hooks.onSessionStateChange
)Example
register
is not called beforehand, it will be executed as part of the start process.SessionOutput
Attribute | Type | Description | Default |
---|---|---|---|
uuid | GUID | Reference Talview identifier for client application to track. | |
state | session.states | ||
attendee | Attendee | ||
workflow | Workflow | If not passed then system will generate email based on identifier. e.g: Att0001@dnd.talview.com | |
identifier | string | unique session identifier from the source system. It will be the session external id in the Talview platform. |
SessionOptions
Attribute | Type | Description | Default |
---|---|---|---|
attendee_identifier | string | Value that can identify the user in the source platform. | |
workflow_identifier | string | Value that can identify the exam in the source platform. | |
session_identifier | string | Value that can identify the proctored session in the source platform. If not passed will use workflow_identifier as default. | |
type | string | The type of the Proctored Session | |
durtion | number | Total allotted time (In minutes) for the proctored session. . | |
remaining_duration | number | Remaining time for(In minutes) the ongoing proctored session. |
Error
Attribute | Type | Description | Default |
---|---|---|---|
code | string | This will identify predefined error by code. Ref Error Code section | |
message | string | Message will contain reason for the error. | |
type | enum | Error could be of type warning or critical. When critical error is raised it will impact core proctoring feature delivery. | |
validationErrors | validationError[] |
Example
SessionOutput
Attribute | Type | Description | Default |
---|---|---|---|
uuid | GUID | Reference Talview identifier for client application to track. | |
state | session.states | ||
attendee | Attendee | ||
workflow | Workflow | If not passed then system will generate email based on identifier. e.g: Att0001@dnd.talview.com | |
identifier | string | unique session identifier from the source system. It will be the session external id in the Talview platform. |
Error
Attribute | Type | Description | Default |
---|---|---|---|
code | string | This will identify predefined error by code. Ref Error Code section | |
message | string | Message will contain reason for the error. | |
type | enum | Error could be of type warning or critical. When critical error is raised it will impact core proctoring feature delivery. | |
validationErrors | validationError[] |
Example
SessionOutput
Attribute | Type | Description | Default |
---|---|---|---|
uuid | GUID | Reference Talview identifier for client application to track. | |
state | session.states | ||
attendee | Attendee | ||
workflow | Workflow | If not passed then system will generate email based on identifier. e.g: Att0001@dnd.talview.com | |
identifier | string | unique session identifier from the source system. It will be the session external id in the Talview platform. |
Error
Attribute | Type | Description | Default |
---|---|---|---|
code | string | This will identify predefined error by code. Ref Error Code section | |
message | string | Message will contain reason for the error. | |
type | enum | Error could be of type warning or critical. When critical error is raised it will impact core proctoring feature delivery. | |
validationErrors | validationError[] |
Example