Skip to content

Commit 524f10c

Browse files
author
sm-deployer
authored
Merge pull request #470 from salemove/MOB-1896_visitor-code-docs
2 parents b17ca22 + b21be66 commit 524f10c

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

widgetssdk/src/main/java/com/glia/widgets/GliaWidgets.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public static Authentication getAuthentication(@NonNull Authentication.Behavior
301301
}
302302

303303
/**
304-
* Returns Call Visualizer module
304+
* Provides controls related to the {@link CallVisualizer} module.
305305
*/
306306
public static CallVisualizer getCallVisualizer() {
307307
return Dependencies.getCallVisualizerManager();

widgetssdk/src/main/java/com/glia/widgets/UiTheme.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,19 +139,19 @@ data class UiTheme(
139139
val gliaChatHeaderExitQueueButtonTintColor: Int? = null,
140140

141141
/**
142-
* TODO: MOB-1896
142+
* Color for Visitor Code numbers
143143
*/
144144
@ColorRes
145145
val visitorCodeTextColor: Int? = null,
146146

147147
/**
148-
* TODO: MOB-1896
148+
* Color for Visitor Code number slots background
149149
*/
150150
@ColorRes
151151
val visitorCodeBackgroundColor: Int? = null,
152152

153153
/**
154-
* TODO: MOB-1896
154+
* Color for Visitor Code number slots border
155155
*/
156156
@ColorRes
157157
val visitorCodeBorderColor: Int? = null,

widgetssdk/src/main/java/com/glia/widgets/core/callvisualizer/domain/CallVisualizer.java

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,30 @@
66

77
/**
88
* 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>.
1014
*/
1115
public interface CallVisualizer {
1216
/**
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.
1424
*/
1525
VisitorCodeView createVisitorCodeView(Context context);
1626

1727
/**
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)}.
1933
*/
2034
void showVisitorCodeDialog(Context context);
2135

widgetssdk/src/main/java/com/glia/widgets/view/VisitorCodeView.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ import com.glia.widgets.view.unifiedui.exstensions.applyLayerTheme
2323
import com.glia.widgets.view.unifiedui.exstensions.applyTextTheme
2424
import com.glia.widgets.view.unifiedui.exstensions.layoutInflater
2525
import com.google.android.material.theme.overlay.MaterialThemeOverlay
26+
import com.glia.widgets.core.callvisualizer.domain.CallVisualizer
2627

2728
/**
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.
3133
*/
3234
class VisitorCodeView internal constructor(
3335
context: Context

0 commit comments

Comments
 (0)