From Bright Pattern Documentation
Jump to: navigation, search
(Created new topic from branched topic Documentation:ServicePattern:desktop-javascript-api-specification:Callback:5.1)
 
Line 1: Line 1:
 
<translate>= Callback=
 
<translate>= Callback=
This is 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.muted = 1/0;
 +
 +
data.paused = 1/0;
 +
 +
}
  
''data.recording = 1/0;''
+
=== Parameters ===
 +
{|border="1" style="border-collapse:collapse" cellpadding="5"
 +
| '''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)
 +
|}
  
''data.muted = 1/0;''
 
  
''data.paused = 1/0;''
 
  
''}''
 
  
== Parameters ==
 
''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
 
  
''data.muted'' – Boolean; indicates if voice recording is currently muted; returned only for the voice recording methods
 
 
''data.paused'' – Boolean; indicates if screen recording is currently paused; returned only for the screen recording methods
 
 
 
 
<center>[[desktop-javascript-api-specification/ResumeScreenRecording|< Previous]]  </center>
 
 
</translate>
 
</translate>

Revision as of 18:05, 10 September 2019

• 5.19 • 5.2 • 5.3 • 5.8

<translate>= 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)



</translate>

< Previous