File tree 4 files changed +26
-10
lines changed
widgetssdk/src/main/java/com/glia/widgets
core/callvisualizer/domain
4 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ public static Authentication getAuthentication(@NonNull Authentication.Behavior
301
301
}
302
302
303
303
/**
304
- * Returns Call Visualizer module
304
+ * Provides controls related to the {@link CallVisualizer} module.
305
305
*/
306
306
public static CallVisualizer getCallVisualizer () {
307
307
return Dependencies .getCallVisualizerManager ();
Original file line number Diff line number Diff line change @@ -139,19 +139,19 @@ data class UiTheme(
139
139
val gliaChatHeaderExitQueueButtonTintColor : Int? = null ,
140
140
141
141
/* *
142
- * TODO: MOB-1896
142
+ * Color for Visitor Code numbers
143
143
*/
144
144
@ColorRes
145
145
val visitorCodeTextColor : Int? = null ,
146
146
147
147
/* *
148
- * TODO: MOB-1896
148
+ * Color for Visitor Code number slots background
149
149
*/
150
150
@ColorRes
151
151
val visitorCodeBackgroundColor : Int? = null ,
152
152
153
153
/* *
154
- * TODO: MOB-1896
154
+ * Color for Visitor Code number slots border
155
155
*/
156
156
@ColorRes
157
157
val visitorCodeBorderColor : Int? = null ,
Original file line number Diff line number Diff line change 6
6
7
7
/**
8
8
* Provides controls related to Call Visualizer module
9
- * TODO: improve docs in MOB-1816
9
+ *
10
+ * Some interactions between operators and visitors start as regular phone calls with no Glia engagement.
11
+ * Screen sharing and video engagements are available for such calls via Call Visualizer.
12
+ *
13
+ * For more information, see the <a href="https://docs.glia.com/glia-mobile/docs/android-widgets-call-visualizer">Call Visualizer guide</a>.
10
14
*/
11
15
public interface CallVisualizer {
12
16
/**
13
- * This builds a VisitorCodeView component that can be integrated in the client application
17
+ * Creates a VisitorCodeView component that can be integrated into the client application
18
+ *
19
+ * The visitor code is generated on demand and is unique for every visitor on a particular site.
20
+ * The first time this function is called for a visitor, the code is generated and returned.
21
+ * For each subsequent call thereafter, the same code will be returned as long as the code has not
22
+ * expired. During that time, the code can be used to initiate an engagement. Once the operator
23
+ * has used the visitor code to initiate an engagement, the code will expire immediately.
14
24
*/
15
25
VisitorCodeView createVisitorCodeView (Context context );
16
26
17
27
/**
18
- * This shows Visitor Code inside a Dialog on top of current Activity inside of your application
28
+ * Shows the visitor code in a dialog box on top of the current activity within your application.
29
+ *
30
+ * This dialog will overlay on top of any other dialogs without dismissing them.
31
+ *
32
+ * Otherwise, it behaves the same way as {@link #createVisitorCodeView(Context)}.
19
33
*/
20
34
void showVisitorCodeDialog (Context context );
21
35
Original file line number Diff line number Diff line change @@ -23,11 +23,13 @@ import com.glia.widgets.view.unifiedui.exstensions.applyLayerTheme
23
23
import com.glia.widgets.view.unifiedui.exstensions.applyTextTheme
24
24
import com.glia.widgets.view.unifiedui.exstensions.layoutInflater
25
25
import com.google.android.material.theme.overlay.MaterialThemeOverlay
26
+ import com.glia.widgets.core.callvisualizer.domain.CallVisualizer
26
27
27
28
/* *
28
- * TODO: add doc in MOB-1816
29
- * TODO: N.B: this view is not expected to be used by integrator or view XML
30
- * TODO: Test what will happen if I add it to XML regardless
29
+ * A view for displaying the visitor code to the visitor.
30
+ *
31
+ * This view should not be instantiated directly - neither programmatically nor inside your XML layouts.
32
+ * Use [CallVisualizer.createVisitorCodeView] to create an instance of this view.
31
33
*/
32
34
class VisitorCodeView internal constructor(
33
35
context : Context
You can’t perform that action at this time.
0 commit comments