From Bright Pattern Documentation
(Updated via BpDeleteTranslateTags script) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | = Callback= | |
The function that is called upon completion of the call/screen recording methods. | The function that is called upon completion of the call/screen recording methods. | ||
== Syntax == | == Syntax == | ||
callback = function(data) { | callback = function(data) { | ||
− | |||
data.recording = 1/0; | data.recording = 1/0; | ||
− | |||
data.muted = 1/0; | data.muted = 1/0; | ||
− | |||
data.paused = 1/0; | data.paused = 1/0; | ||
− | |||
} | } | ||
Line 35: | Line 31: | ||
| "1" (for false, recording is not paused) | | "1" (for false, recording is not paused) | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 04:31, 29 May 2024
Callback
The function that is called upon completion of the call/screen recording methods.
Syntax
callback = function(data) { data.recording = 1/0; data.muted = 1/0; data.paused = 1/0; }
Parameters
Parameter | Type | Description | Example |
data.recording | Boolean | Indicates if voice/screen recording is currently in progress; note that voice recording is applied to interactions (calls), while screen recording is applied to user sessions | "1" (for true; recording is on) |
data.muted | Boolean | Indicates if voice recording is currently muted; returned only for the voice recording methods | "0" (for false; recording is not muted) |
data.paused | Boolean | Indicates if screen recording is currently paused; returned only for the screen recording methods | "1" (for false, recording is not paused) |