JavaScript Kuoll API. Allows to handle recording process. May be accessed as
window.kuoll
on any page that contains bootloader.js- Source:
Methods
(static) cancelRecord()
Deletes the record and stops the recording.
- Deprecated:
- Use finishRecord instead
- Source:
(static) createIssue(typeopt, descriptionopt, stacktraceopt) → {Promise}
Persists current record and marks current moment of the record as Issue.
Some issues are created automatically by unhandled
Errors and console.error calls.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
type |
String |
<optional> |
"error" | Type of created issue. Later you can group issues by type. |
description |
String |
<optional> |
issue description. | |
stacktrace |
String |
<optional> |
issue stacktrace. |
- Source:
Returns:
Resolves to recording information is successfully created issue; Fails if recording isn't active
- Type
- Promise
(static) finishRecord()
- Deprecated:
- Stop recording and mark the record as finished. Placeholder for kuoll.stopRecord with no parameters.
- Source:
(static) getRecordInfo() → {Promise}
- Source:
Returns:
Resolves to recording information if it's available, fails otherwise
- Type
- Promise
(static) isRecordActive() → {Promise}
Check if the recording is active.
- Source:
Returns:
Resolves to true, if the recording has been started and hasn't been stopped yet
- Type
- Promise
(static) restartRecord()
Finishes the record and starts new one for the same user.
- Deprecated:
- Use finishRecord instead
- Source:
(static) setUserData()
Updates custom data attached to current user.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
params.userId |
String |
<optional> |
|
params.userEmail |
String |
<optional> |
|
params.orgId |
String |
<optional> |
|
params.orgName |
String |
<optional> |
- Source:
(static) startRecord(params) → {Promise}
Turn Kuoll ON and start new record (if it is not started yet).
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | String | Object with API_KEY, User info (optional), User Organization info (optional). Or just string with your API_KEY.
Properties
|
- Source:
Returns:
Resolves to an object with info about started record if started successfully. Fails with an error message otherwise.
- Type
- Promise
(static) stopRecord(paramsopt) → {Promise}
Marks the record as finished and stops the recording.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object |
<optional> |
Properties
|
- Source:
Returns:
Resolves if recording is successfully stopped; If params.restart is true, resolves with
a promise returned from kuoll.startRecord method. Fails with an error message if record cannot be stopped.
- Type
- Promise
Type Definitions
startCallback(kuollUserId, recordCode)
This callback will be called when record is successfully started.
Parameters:
| Name | Type | Description |
|---|---|---|
kuollUserId |
number | |
recordCode |
number |
- Source: