@@ -54,7 +54,7 @@ android {
54
54
``` groovy
55
55
dependencies {
56
56
...
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 '
58
58
...
59
59
}
60
60
```
@@ -143,8 +143,8 @@ class MainActivity : AppCompatActivity() {
143
143
val options = GroupCallOptions (
144
144
this ,
145
145
communicationTokenCredential,
146
+ UUID .fromString(" GROUP_CALL_ID" ),
146
147
" DISPLAY_NAME" ,
147
- UUID .fromString(" GROUP_CALL_ID" )
148
148
)
149
149
150
150
val callComposite: CallComposite = CallCompositeBuilder ().build()
@@ -195,8 +195,8 @@ public class MainActivity extends AppCompatActivity {
195
195
196
196
GroupCallOptions options = new GroupCallOptions (this ,
197
197
communicationTokenCredential,
198
- " DISPLAY_NAME " ,
199
- UUID . fromString( " GROUP_CALL_ID " ) );
198
+ UUID . fromString( " GROUP_CALL_ID " ) ,
199
+ " DISPLAY_NAME " );
200
200
201
201
callComposite. launch(options);
202
202
}
@@ -297,8 +297,8 @@ Replace `"DISPLAY_NAME"` with your name.
297
297
val options = GroupCallOptions (
298
298
this ,
299
299
communicationTokenCredential,
300
+ UUID .fromString(" GROUP_CALL_ID" ),
300
301
" DISPLAY_NAME" ,
301
- UUID .fromString(" GROUP_CALL_ID" )
302
302
)
303
303
```
304
304
@@ -308,8 +308,8 @@ val options = GroupCallOptions(
308
308
GroupCallOptions options = new GroupCallOptions (
309
309
this ,
310
310
communicationTokenCredential,
311
- " DISPLAY_NAME " ,
312
- UUID . fromString( " GROUP_CALL_ID " )
311
+ UUID . fromString( " GROUP_CALL_ID " ) ,
312
+ " DISPLAY_NAME "
313
313
);
314
314
```
315
315
-----
@@ -326,8 +326,8 @@ Replace `"DISPLAY_NAME"` with your name.
326
326
val options = TeamsMeetingOptions (
327
327
this ,
328
328
communicationTokenCredential,
329
+ " TEAMS_MEETING_LINK" ,
329
330
" DISPLAY_NAME" ,
330
- " TEAMS_MEETING_LINK"
331
331
)
332
332
```
333
333
@@ -337,8 +337,8 @@ val options = TeamsMeetingOptions(
337
337
TeamsMeetingOptions options = new TeamsMeetingOptions (
338
338
this ,
339
339
communicationTokenCredential,
340
- " DISPLAY_NAME " ,
341
- " TEAMS_MEETING_LINK "
340
+ " TEAMS_MEETING_LINK " ,
341
+ " DISPLAY_NAME "
342
342
);
343
343
```
344
344
@@ -377,37 +377,21 @@ To receive events, inject a handler to the `CallCompositeBuilder`.
377
377
``` kotlin
378
378
val callComposite: CallComposite =
379
379
CallCompositeBuilder ()
380
- .callCompositeEventsHandler(ApplicationCallCompositeEventsHandler ())
380
+ .onException {
381
+ // ...
382
+ }
381
383
.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
- }
392
384
```
393
385
394
386
#### [ Java] ( #tab/java )
395
387
396
388
``` java
397
389
CallComposite callComposite =
398
390
new CallCompositeBuilder ()
399
- .callCompositeEventsHandler(new ApplicationCallCompositeEventsHandler ())
391
+ .onException(eventArgs - > {
392
+ // ...
393
+ })
400
394
.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
- }
411
395
```
412
396
413
397
-----
0 commit comments