Skip to content

Commit 6b7f656

Browse files
authored
Merge pull request #179076 from pavelprystinka/pavelprystinka-update-android-quickstart
Update Android UI library get-started-call
2 parents 02ea344 + 7fdb76e commit 6b7f656

File tree

1 file changed

+16
-32
lines changed
  • articles/communication-services/quickstarts/ui-library/includes/get-started-call

1 file changed

+16
-32
lines changed

articles/communication-services/quickstarts/ui-library/includes/get-started-call/android.md

Lines changed: 16 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ android {
5454
```groovy
5555
dependencies {
5656
...
57-
implementation 'com.azure.android:azure-communication-ui:1.0.0-alpha.1'
57+
implementation 'com.azure.android:azure-communication-ui:1.0.0-alpha.2'
5858
...
5959
}
6060
```
@@ -143,8 +143,8 @@ class MainActivity : AppCompatActivity() {
143143
val options = GroupCallOptions(
144144
this,
145145
communicationTokenCredential,
146+
UUID.fromString("GROUP_CALL_ID"),
146147
"DISPLAY_NAME",
147-
UUID.fromString("GROUP_CALL_ID")
148148
)
149149

150150
val callComposite: CallComposite = CallCompositeBuilder().build()
@@ -195,8 +195,8 @@ public class MainActivity extends AppCompatActivity {
195195

196196
GroupCallOptions options = new GroupCallOptions(this,
197197
communicationTokenCredential,
198-
"DISPLAY_NAME",
199-
UUID.fromString("GROUP_CALL_ID"));
198+
UUID.fromString("GROUP_CALL_ID"),
199+
"DISPLAY_NAME");
200200

201201
callComposite.launch(options);
202202
}
@@ -297,8 +297,8 @@ Replace `"DISPLAY_NAME"` with your name.
297297
val options = GroupCallOptions(
298298
this,
299299
communicationTokenCredential,
300+
UUID.fromString("GROUP_CALL_ID"),
300301
"DISPLAY_NAME",
301-
UUID.fromString("GROUP_CALL_ID")
302302
)
303303
```
304304

@@ -308,8 +308,8 @@ val options = GroupCallOptions(
308308
GroupCallOptions options = new GroupCallOptions(
309309
this,
310310
communicationTokenCredential,
311-
"DISPLAY_NAME",
312-
UUID.fromString("GROUP_CALL_ID")
311+
UUID.fromString("GROUP_CALL_ID"),
312+
"DISPLAY_NAME"
313313
);
314314
```
315315
-----
@@ -326,8 +326,8 @@ Replace `"DISPLAY_NAME"` with your name.
326326
val options = TeamsMeetingOptions(
327327
this,
328328
communicationTokenCredential,
329+
"TEAMS_MEETING_LINK",
329330
"DISPLAY_NAME",
330-
"TEAMS_MEETING_LINK"
331331
)
332332
```
333333

@@ -337,8 +337,8 @@ val options = TeamsMeetingOptions(
337337
TeamsMeetingOptions options = new TeamsMeetingOptions(
338338
this,
339339
communicationTokenCredential,
340-
"DISPLAY_NAME",
341-
"TEAMS_MEETING_LINK"
340+
"TEAMS_MEETING_LINK",
341+
"DISPLAY_NAME"
342342
);
343343
```
344344

@@ -377,37 +377,21 @@ To receive events, inject a handler to the `CallCompositeBuilder`.
377377
```kotlin
378378
val callComposite: CallComposite =
379379
CallCompositeBuilder()
380-
.callCompositeEventsHandler(ApplicationCallCompositeEventsHandler())
380+
.onException {
381+
//...
382+
}
381383
.build()
382-
383-
...
384-
import com.azure.android.communication.ui.CallCompositeEventsHandler
385-
import com.azure.android.communication.ui.configuration.events.OnExceptionEventArgs
386-
387-
class ApplicationCallCompositeEventsHandler : CallCompositeEventsHandler {
388-
override fun onException(eventArgs: OnExceptionEventArgs) {
389-
//...
390-
}
391-
}
392384
```
393385

394386
#### [Java](#tab/java)
395387

396388
```java
397389
CallComposite callComposite =
398390
new CallCompositeBuilder()
399-
.callCompositeEventsHandler(new ApplicationCallCompositeEventsHandler())
391+
.onException(eventArgs -> {
392+
//...
393+
})
400394
.build();
401-
...
402-
import com.azure.android.communication.ui.CallCompositeEventsHandler;
403-
import com.azure.android.communication.ui.configuration.events.OnExceptionEventArgs;
404-
405-
class ApplicationCallCompositeEventsHandler implements CallCompositeEventsHandler {
406-
@Override
407-
public void onException(@NonNull OnExceptionEventArgs eventArgs) {
408-
//...
409-
}
410-
}
411395
```
412396

413397
-----

0 commit comments

Comments
 (0)