-
Notifications
You must be signed in to change notification settings - Fork 0
/
InCallService.xml
1341 lines (1331 loc) · 90.2 KB
/
InCallService.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="InCallService" FullName="Android.Telecom.InCallService">
<TypeSignature Language="C#" Value="public abstract class InCallService : Android.App.Service" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit InCallService extends Android.App.Service" />
<TypeSignature Language="DocId" Value="T:Android.Telecom.InCallService" />
<TypeSignature Language="F#" Value="type InCallService = class
 inherit Service" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Android.App.Service</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("android/telecom/InCallService", ApiSince=23, DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/telecom/InCallService", ApiSince=23, DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>This service is implemented by an app that wishes to provide functionality for managing
phone calls.</summary>
<remarks>
<para>This service is implemented by an app that wishes to provide functionality for managing
phone calls.
<h2>Becoming the Default Phone App</h2>
The default dialer/phone app is one which provides the in-call user interface while the device is
in a call. It also provides the user with a means to initiate calls and see a history of calls
on their device. A device is bundled with a system provided default dialer/phone app. The user
may choose a single app to take over this role from the system app. An app which wishes to
fulfill this role uses the <c>android.app.role.RoleManager</c> to request that they fill the
<c>android.app.role.RoleManager#ROLE_DIALER</c> role.</para>
<para>The default phone app provides a user interface while the device is in a call, and the device is
not in car mode (i.e. <c>UiModeManager#getCurrentModeType()</c> is not
<c>android.content.res.Configuration#UI_MODE_TYPE_CAR</c>).</para>
<para>In order to fill the <c>android.app.role.RoleManager#ROLE_DIALER</c> role, an app must meet a
number of requirements:
<ul>
<li>It must handle the <c>Intent#ACTION_DIAL</c> intent. This means the app must provide
a dial pad UI for the user to initiate outgoing calls.</li>
<li>It must fully implement the <c>InCallService</c> API and provide both an incoming call
UI, as well as an ongoing call UI.</li>
</ul></para>
<para>Note: If the app filling the <c>android.app.role.RoleManager#ROLE_DIALER</c> returns a
<c>null</c><c>InCallService</c> during binding, the Telecom framework will automatically fall
back to using the dialer app preloaded on the device. The system will display a notification to
the user to let them know that their call was continued using the preloaded dialer app. Your
app should never return a <c>null</c> binding; doing so means it does not fulfil the
requirements of <c>android.app.role.RoleManager#ROLE_DIALER</c>.</para>
<para>Note: If your app fills <c>android.app.role.RoleManager#ROLE_DIALER</c> and makes changes at
runtime which cause it to no longer fulfil the requirements of this role,
<c>android.app.role.RoleManager</c> will automatically remove your app from the role and close
your app. For example, if you use
<c>android.content.pm.PackageManager#setComponentEnabledSetting(ComponentName, int, int)</c> to
programmatically disable the <c>InCallService</c> your app declares in its manifest, your app
will no longer fulfil the requirements expected of
<c>android.app.role.RoleManager#ROLE_DIALER</c>.</para>
<para>The preloaded dialer will ALWAYS be used when the user places an emergency call, even if your
app fills the <c>android.app.role.RoleManager#ROLE_DIALER</c> role. To ensure an optimal
experience when placing an emergency call, the default dialer should ALWAYS use
<c>android.telecom.TelecomManager#placeCall(Uri, Bundle)</c> to place calls (including
emergency calls). This ensures that the platform is able to verify that the request came from
the default dialer. If a non-preloaded dialer app uses <c>Intent#ACTION_CALL</c> to place an
emergency call, it will be raised to the preloaded dialer app using <c>Intent#ACTION_DIAL</c>
for confirmation; this is a suboptimal user experience.</para>
<para>Below is an example manifest registration for an <c>InCallService</c>. The meta-data
<c>TelecomManager#METADATA_IN_CALL_SERVICE_UI</c> indicates that this particular
<c>InCallService</c> implementation intends to replace the built-in in-call UI.
The meta-data <c>TelecomManager#METADATA_IN_CALL_SERVICE_RINGING</c> indicates that this
<c>InCallService</c> will play the ringtone for incoming calls. See
below for more information on showing the incoming call
UI and playing the ringtone in your app.</para>
<code lang="text/java">{@code
<service android:name="your.package.YourInCallServiceImplementation"
android:permission="android.permission.BIND_INCALL_SERVICE"
android:exported="true">
<meta-data android:name="android.telecom.IN_CALL_SERVICE_UI" android:value="true" />
<meta-data android:name="android.telecom.IN_CALL_SERVICE_RINGING"
android:value="true" />
<intent-filter>
<action android:name="android.telecom.InCallService"/>
</intent-filter>
</service>
}
</code>
<para><em>Note: You should NOT mark your <c>InCallService</c> with the attribute
<c>android:exported="false"</c>; doing so can result in a failure to bind to your implementation
during calls.</em></para>
<para>In addition to implementing the <c>InCallService</c> API, you must also declare an activity in
your manifest which handles the <c>Intent#ACTION_DIAL</c> intent. The example below illustrates
how this is done:</para>
<code lang="text/java">{@code
<activity android:name="your.package.YourDialerActivity"
android:label="@string/yourDialerActivityLabel">
<intent-filter>
<action android:name="android.intent.action.DIAL" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.DIAL" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="tel" />
</intent-filter>
</activity>
}
</code>
<para>When a user installs your application and runs it for the first time, you should use the
<c>android.app.role.RoleManager</c> to prompt the user to see if they would like your app to
be the new default phone app.
<p id="requestRole">
The code below shows how your app can request to become the default phone/dialer app:</para>
<code lang="text/java">{@code
private static final int REQUEST_ID = 1;
public void requestRole() {
RoleManager roleManager = (RoleManager) getSystemService(ROLE_SERVICE);
Intent intent = roleManager.createRequestRoleIntent(RoleManager.ROLE_DIALER);
startActivityForResult(intent, REQUEST_ID);
}
&#64;Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == REQUEST_ID) {
if (resultCode == android.app.Activity.RESULT_OK) {
// Your app is now the default dialer app
} else {
// Your app is not the default dialer app
}
}
}
}
</code>
<para><p id="companionInCallService">
<h3>Access to InCallService for Wearable Devices</h3>
<ol>
If your app is a third-party companion app and wants to access InCallService APIs, what your
app could do are:</para>
<para><ol>
<li> Declare MANAGE_ONGOING_CALLS permission in your manifest
<li> Associate with a physical wearable device via the
<c>android.companion.CompanionDeviceManager</c> API as a companion app. See:
https://developer.android.com/guide/topics/connectivity/companion-device-pairing
<li> Implement this InCallService with BIND_INCALL_SERVICE permission
</ol>
</ol></para>
<para></pre>
<p id="incomingCallNotification">
<h3>Showing the Incoming Call Notification</h3>
When your app receives a new incoming call via <c>InCallService#onCallAdded(Call)</c>, it is
responsible for displaying an incoming call UI for the incoming call. It should do this using
<c>android.app.NotificationManager</c> APIs to post a new incoming call notification.</para>
<para>Where your app declares the meta-data <c>TelecomManager#METADATA_IN_CALL_SERVICE_RINGING</c>, it
is responsible for playing the ringtone for incoming calls. Your app should create a
<c>android.app.NotificationChannel</c> which specifies the desired ringtone. For example:</para>
<code lang="text/java"><code>
NotificationChannel channel = new NotificationChannel(YOUR_CHANNEL_ID, "Incoming Calls",
NotificationManager.IMPORTANCE_MAX);
// other channel setup stuff goes here.
// We'll use the default system ringtone for our incoming call notification channel. You can
// use your own audio resource here.
Uri ringtoneUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE);
channel.setSound(ringtoneUri, new AudioAttributes.Builder()
// Setting the AudioAttributes is important as it identifies the purpose of your
// notification sound.
.setUsage(AudioAttributes.USAGE_NOTIFICATION_RINGTONE)
.setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)
.build());
NotificationManager mgr = getSystemService(NotificationManager.class);
mgr.createNotificationChannel(channel);
</code></code>
<para>When your app receives a new incoming call, it creates a <c>android.app.Notification</c> for the
incoming call and associates it with your incoming call notification channel. You can specify a
<c>android.app.PendingIntent</c> on the notification which will launch your full screen
incoming call UI. The notification manager framework will display your notification as a
heads-up notification if the user is actively using the phone. When the user is not using the
phone, your full-screen incoming call UI is used instead.
For example:</para>
<code lang="text/java"><code>{@code
// Create an intent which triggers your fullscreen incoming call user interface.
Intent intent = new Intent(Intent.ACTION_MAIN, null);
intent.setFlags(Intent.FLAG_ACTIVITY_NO_USER_ACTION | Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setClass(context, YourIncomingCallActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 1, intent, PendingIntent.FLAG_MUTABLE_UNAUDITED);
// Build the notification as an ongoing high priority item; this ensures it will show as
// a heads up notification which slides down over top of the current content.
final Notification.Builder builder = new Notification.Builder(context);
builder.setOngoing(true);
builder.setPriority(Notification.PRIORITY_HIGH);
// Set notification content intent to take user to the fullscreen UI if user taps on the
// notification body.
builder.setContentIntent(pendingIntent);
// Set full screen intent to trigger display of the fullscreen UI when the notification
// manager deems it appropriate.
builder.setFullScreenIntent(pendingIntent, true);
// Setup notification content.
builder.setSmallIcon( yourIconResourceId );
builder.setContentTitle("Your notification title");
builder.setContentText("Your notification content.");
// Use builder.addAction(..) to add buttons to answer or reject the call.
NotificationManager notificationManager = mContext.getSystemService(
NotificationManager.class);
notificationManager.notify(YOUR_CHANNEL_ID, YOUR_TAG, YOUR_ID, builder.build());
}</code>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService" title="Reference documentation">Java documentation for <code>android.telecom.InCallService</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public InCallService ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "()V", "", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "()V", "", ApiSince=23)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected InCallService (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(native int javaReference, valuetype Android.Runtime.JniHandleOwnership transfer) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.#ctor(System.IntPtr,Android.Runtime.JniHandleOwnership)" />
<MemberSignature Language="F#" Value="new Android.Telecom.InCallService : nativeint * Android.Runtime.JniHandleOwnership -> Android.Telecom.InCallService" Usage="new Android.Telecom.InCallService (javaReference, transfer)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="javaReference" Type="System.IntPtr" />
<Parameter Name="transfer" Type="Android.Runtime.JniHandleOwnership" />
</Parameters>
<Docs>
<param name="javaReference">To be added.</param>
<param name="transfer">To be added.</param>
<summary>To be added.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CallAudioState">
<MemberSignature Language="C#" Value="public Android.Telecom.CallAudioState? CallAudioState { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Android.Telecom.CallAudioState CallAudioState" />
<MemberSignature Language="DocId" Value="P:Android.Telecom.InCallService.CallAudioState" />
<MemberSignature Language="F#" Value="member this.CallAudioState : Android.Telecom.CallAudioState" Usage="Android.Telecom.InCallService.CallAudioState" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.ObsoletedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.ObsoletedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getCallAudioState", "()Landroid/telecom/CallAudioState;", "", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getCallAudioState", "()Landroid/telecom/CallAudioState;", "", ApiSince=23)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Telecom.CallAudioState</ReturnType>
</ReturnValue>
<Docs>
<summary>Obtains the current phone call audio state.</summary>
<value>An object encapsulating the audio state. Returns null if the service is not
fully initialized.</value>
<remarks>
<para>Obtains the current phone call audio state.</para>
<para>This member is deprecated. Use <c>#getCurrentCallEndpoint()</c>,
<c>#onAvailableCallEndpointsChanged(List)</c> and
<c>#onMuteStateChanged(boolean)</c> instead.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#getCallAudioState()" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.getCallAudioState()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Calls">
<MemberSignature Language="C#" Value="public System.Collections.Generic.IList<Android.Telecom.Call>? Calls { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IList`1<class Android.Telecom.Call> Calls" />
<MemberSignature Language="DocId" Value="P:Android.Telecom.InCallService.Calls" />
<MemberSignature Language="F#" Value="member this.Calls : System.Collections.Generic.IList<Android.Telecom.Call>" Usage="Android.Telecom.InCallService.Calls" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getCalls", "()Ljava/util/List;", "", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getCalls", "()Ljava/util/List;", "", ApiSince=23)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.IList<Android.Telecom.Call></ReturnType>
</ReturnValue>
<Docs>
<summary>Obtains the current list of <c>Call</c>s to be displayed by this in-call service.</summary>
<value>A list of the relevant <c>Call</c>s.</value>
<remarks>
<para>Obtains the current list of <c>Call</c>s to be displayed by this in-call service.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#getCalls()" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.getCalls()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CanAddCall">
<MemberSignature Language="C#" Value="public bool CanAddCall ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool CanAddCall() cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.CanAddCall" />
<MemberSignature Language="F#" Value="member this.CanAddCall : unit -> bool" Usage="inCallService.CanAddCall " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("canAddCall", "()Z", "", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("canAddCall", "()Z", "", ApiSince=23)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns if the device can support additional calls.</summary>
<returns>Whether the phone supports adding more calls.</returns>
<remarks>
<para>Returns if the device can support additional calls.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#canAddCall()" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.canAddCall()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CurrentCallEndpoint">
<MemberSignature Language="C#" Value="public Android.Telecom.CallEndpoint CurrentCallEndpoint { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Android.Telecom.CallEndpoint CurrentCallEndpoint" />
<MemberSignature Language="DocId" Value="P:Android.Telecom.InCallService.CurrentCallEndpoint" />
<MemberSignature Language="F#" Value="member this.CurrentCallEndpoint : Android.Telecom.CallEndpoint" Usage="Android.Telecom.InCallService.CurrentCallEndpoint" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getCurrentCallEndpoint", "()Landroid/telecom/CallEndpoint;", "", ApiSince=34)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getCurrentCallEndpoint", "()Landroid/telecom/CallEndpoint;", "", ApiSince=34)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Telecom.CallEndpoint</ReturnType>
</ReturnValue>
<Docs>
<summary>Obtains the current CallEndpoint.</summary>
<value>An object encapsulating the CallEndpoint.</value>
<remarks>
<para>Obtains the current CallEndpoint.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#getCurrentCallEndpoint()" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.getCurrentCallEndpoint()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="JniPeerMembers">
<MemberSignature Language="C#" Value="public override Java.Interop.JniPeerMembers JniPeerMembers { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Interop.JniPeerMembers JniPeerMembers" />
<MemberSignature Language="DocId" Value="P:Android.Telecom.InCallService.JniPeerMembers" />
<MemberSignature Language="F#" Value="member this.JniPeerMembers : Java.Interop.JniPeerMembers" Usage="Android.Telecom.InCallService.JniPeerMembers" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Interop.JniPeerMembers</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="OnAvailableCallEndpointsChanged">
<MemberSignature Language="C#" Value="public virtual void OnAvailableCallEndpointsChanged (System.Collections.Generic.IList<Android.Telecom.CallEndpoint> availableEndpoints);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnAvailableCallEndpointsChanged(class System.Collections.Generic.IList`1<class Android.Telecom.CallEndpoint> availableEndpoints) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.OnAvailableCallEndpointsChanged(System.Collections.Generic.IList{Android.Telecom.CallEndpoint})" />
<MemberSignature Language="F#" Value="abstract member OnAvailableCallEndpointsChanged : System.Collections.Generic.IList<Android.Telecom.CallEndpoint> -> unit
override this.OnAvailableCallEndpointsChanged : System.Collections.Generic.IList<Android.Telecom.CallEndpoint> -> unit" Usage="inCallService.OnAvailableCallEndpointsChanged availableEndpoints" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onAvailableCallEndpointsChanged", "(Ljava/util/List;)V", "GetOnAvailableCallEndpointsChanged_Ljava_util_List_Handler", ApiSince=34)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onAvailableCallEndpointsChanged", "(Ljava/util/List;)V", "GetOnAvailableCallEndpointsChanged_Ljava_util_List_Handler", ApiSince=34)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="availableEndpoints" Type="System.Collections.Generic.IList<Android.Telecom.CallEndpoint>" />
</Parameters>
<Docs>
<param name="availableEndpoints">The set of available CallEndpoint <c>CallEndpoint</c>.</param>
<summary>Called when the available CallEndpoint changes.</summary>
<remarks>
<para>Called when the available CallEndpoint changes.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#onAvailableCallEndpointsChanged(java.util.List%3Candroid.telecom.CallEndpoint%3E)" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.onAvailableCallEndpointsChanged(java.util.List<android.telecom.CallEndpoint>)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="OnBind">
<MemberSignature Language="C#" Value="public override Android.OS.IBinder? OnBind (Android.Content.Intent? intent);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class Android.OS.IBinder OnBind(class Android.Content.Intent intent) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.OnBind(Android.Content.Intent)" />
<MemberSignature Language="F#" Value="override this.OnBind : Android.Content.Intent -> Android.OS.IBinder" Usage="inCallService.OnBind intent" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "GetOnBind_Landroid_content_Intent_Handler", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "GetOnBind_Landroid_content_Intent_Handler", ApiSince=23)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.OS.IBinder</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="intent" Type="Android.Content.Intent" />
</Parameters>
<Docs>
<param name="intent">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="OnBringToForeground">
<MemberSignature Language="C#" Value="public virtual void OnBringToForeground (bool showDialpad);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnBringToForeground(bool showDialpad) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.OnBringToForeground(System.Boolean)" />
<MemberSignature Language="F#" Value="abstract member OnBringToForeground : bool -> unit
override this.OnBringToForeground : bool -> unit" Usage="inCallService.OnBringToForeground showDialpad" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onBringToForeground", "(Z)V", "GetOnBringToForeground_ZHandler", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onBringToForeground", "(Z)V", "GetOnBringToForeground_ZHandler", ApiSince=23)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="showDialpad" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="showDialpad">If true, put up the dialpad when the screen is shown.</param>
<summary>Called to bring the in-call screen to the foreground.</summary>
<remarks>
<para>Called to bring the in-call screen to the foreground. The in-call experience should
respond immediately by coming to the foreground to inform the user of the state of
ongoing <c>Call</c>s.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#onBringToForeground(boolean)" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.onBringToForeground(boolean)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="OnCallAdded">
<MemberSignature Language="C#" Value="public virtual void OnCallAdded (Android.Telecom.Call? call);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnCallAdded(class Android.Telecom.Call call) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.OnCallAdded(Android.Telecom.Call)" />
<MemberSignature Language="F#" Value="abstract member OnCallAdded : Android.Telecom.Call -> unit
override this.OnCallAdded : Android.Telecom.Call -> unit" Usage="inCallService.OnCallAdded call" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onCallAdded", "(Landroid/telecom/Call;)V", "GetOnCallAdded_Landroid_telecom_Call_Handler", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onCallAdded", "(Landroid/telecom/Call;)V", "GetOnCallAdded_Landroid_telecom_Call_Handler", ApiSince=23)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="call" Type="Android.Telecom.Call" />
</Parameters>
<Docs>
<param name="call">A newly added <c>Call</c>.</param>
<summary>Called when a <c>Call</c> has been added to this in-call session.</summary>
<remarks>
<para>Called when a <c>Call</c> has been added to this in-call session. The in-call user
experience should add necessary state listeners to the specified <c>Call</c> and
immediately start to show the user information about the existence
and nature of this <c>Call</c>. Subsequent invocations of <c>#getCalls()</c> will
include this <c>Call</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#onCallAdded(android.telecom.Call)" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.onCallAdded(android.telecom.Call)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="OnCallAudioStateChanged">
<MemberSignature Language="C#" Value="public virtual void OnCallAudioStateChanged (Android.Telecom.CallAudioState? audioState);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnCallAudioStateChanged(class Android.Telecom.CallAudioState audioState) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.OnCallAudioStateChanged(Android.Telecom.CallAudioState)" />
<MemberSignature Language="F#" Value="abstract member OnCallAudioStateChanged : Android.Telecom.CallAudioState -> unit
override this.OnCallAudioStateChanged : Android.Telecom.CallAudioState -> unit" Usage="inCallService.OnCallAudioStateChanged audioState" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onCallAudioStateChanged", "(Landroid/telecom/CallAudioState;)V", "GetOnCallAudioStateChanged_Landroid_telecom_CallAudioState_Handler", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onCallAudioStateChanged", "(Landroid/telecom/CallAudioState;)V", "GetOnCallAudioStateChanged_Landroid_telecom_CallAudioState_Handler", ApiSince=23)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.ObsoletedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.ObsoletedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="audioState" Type="Android.Telecom.CallAudioState" />
</Parameters>
<Docs>
<param name="audioState">The new <c>CallAudioState</c>.</param>
<summary>Called when the audio state changes.</summary>
<remarks>
<para>Called when the audio state changes.</para>
<para>This member is deprecated. Use <c>#onCallEndpointChanged(CallEndpoint)</c>,
<c>#onAvailableCallEndpointsChanged(List)</c> and
<c>#onMuteStateChanged(boolean)</c> instead.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#onCallAudioStateChanged(android.telecom.CallAudioState)" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.onCallAudioStateChanged(android.telecom.CallAudioState)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="OnCallEndpointChanged">
<MemberSignature Language="C#" Value="public virtual void OnCallEndpointChanged (Android.Telecom.CallEndpoint callEndpoint);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnCallEndpointChanged(class Android.Telecom.CallEndpoint callEndpoint) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.OnCallEndpointChanged(Android.Telecom.CallEndpoint)" />
<MemberSignature Language="F#" Value="abstract member OnCallEndpointChanged : Android.Telecom.CallEndpoint -> unit
override this.OnCallEndpointChanged : Android.Telecom.CallEndpoint -> unit" Usage="inCallService.OnCallEndpointChanged callEndpoint" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onCallEndpointChanged", "(Landroid/telecom/CallEndpoint;)V", "GetOnCallEndpointChanged_Landroid_telecom_CallEndpoint_Handler", ApiSince=34)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onCallEndpointChanged", "(Landroid/telecom/CallEndpoint;)V", "GetOnCallEndpointChanged_Landroid_telecom_CallEndpoint_Handler", ApiSince=34)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="callEndpoint" Type="Android.Telecom.CallEndpoint" />
</Parameters>
<Docs>
<param name="callEndpoint">The current CallEndpoint <c>CallEndpoint</c>.</param>
<summary>Called when the current CallEndpoint changes.</summary>
<remarks>
<para>Called when the current CallEndpoint changes.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#onCallEndpointChanged(android.telecom.CallEndpoint)" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.onCallEndpointChanged(android.telecom.CallEndpoint)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="OnCallRemoved">
<MemberSignature Language="C#" Value="public virtual void OnCallRemoved (Android.Telecom.Call? call);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnCallRemoved(class Android.Telecom.Call call) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.OnCallRemoved(Android.Telecom.Call)" />
<MemberSignature Language="F#" Value="abstract member OnCallRemoved : Android.Telecom.Call -> unit
override this.OnCallRemoved : Android.Telecom.Call -> unit" Usage="inCallService.OnCallRemoved call" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onCallRemoved", "(Landroid/telecom/Call;)V", "GetOnCallRemoved_Landroid_telecom_Call_Handler", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onCallRemoved", "(Landroid/telecom/Call;)V", "GetOnCallRemoved_Landroid_telecom_Call_Handler", ApiSince=23)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="call" Type="Android.Telecom.Call" />
</Parameters>
<Docs>
<param name="call">A newly removed <c>Call</c>.</param>
<summary>Called when a <c>Call</c> has been removed from this in-call session.</summary>
<remarks>
<para>Called when a <c>Call</c> has been removed from this in-call session. The in-call user
experience should remove any state listeners from the specified <c>Call</c> and
immediately stop displaying any information about this <c>Call</c>.
Subsequent invocations of <c>#getCalls()</c> will no longer include this <c>Call</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#onCallRemoved(android.telecom.Call)" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.onCallRemoved(android.telecom.Call)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="OnCanAddCallChanged">
<MemberSignature Language="C#" Value="public virtual void OnCanAddCallChanged (bool canAddCall);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnCanAddCallChanged(bool canAddCall) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.OnCanAddCallChanged(System.Boolean)" />
<MemberSignature Language="F#" Value="abstract member OnCanAddCallChanged : bool -> unit
override this.OnCanAddCallChanged : bool -> unit" Usage="inCallService.OnCanAddCallChanged canAddCall" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onCanAddCallChanged", "(Z)V", "GetOnCanAddCallChanged_ZHandler", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onCanAddCallChanged", "(Z)V", "GetOnCanAddCallChanged_ZHandler", ApiSince=23)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="canAddCall" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="canAddCall">Indicates whether an additional call can be added.</param>
<summary>Called when the ability to add more calls changes.</summary>
<remarks>
<para>Called when the ability to add more calls changes. If the phone cannot
support more calls then <c>canAddCall</c> is set to <c>false</c>. If it can, then it
is set to <c>true</c>. This can be used to control the visibility of UI to add more calls.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#onCanAddCallChanged(boolean)" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.onCanAddCallChanged(boolean)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="OnConnectionEvent">
<MemberSignature Language="C#" Value="public virtual void OnConnectionEvent (Android.Telecom.Call? call, string? e, Android.OS.Bundle? extras);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnConnectionEvent(class Android.Telecom.Call call, string e, class Android.OS.Bundle extras) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.OnConnectionEvent(Android.Telecom.Call,System.String,Android.OS.Bundle)" />
<MemberSignature Language="F#" Value="abstract member OnConnectionEvent : Android.Telecom.Call * string * Android.OS.Bundle -> unit
override this.OnConnectionEvent : Android.Telecom.Call * string * Android.OS.Bundle -> unit" Usage="inCallService.OnConnectionEvent (call, e, extras)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onConnectionEvent", "(Landroid/telecom/Call;Ljava/lang/String;Landroid/os/Bundle;)V", "GetOnConnectionEvent_Landroid_telecom_Call_Ljava_lang_String_Landroid_os_Bundle_Handler", ApiSince=25)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onConnectionEvent", "(Landroid/telecom/Call;Ljava/lang/String;Landroid/os/Bundle;)V", "GetOnConnectionEvent_Landroid_telecom_Call_Ljava_lang_String_Landroid_os_Bundle_Handler", ApiSince=25)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android25.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android25.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="call" Type="Android.Telecom.Call" />
<Parameter Name="e" Type="System.String" />
<Parameter Name="extras" Type="Android.OS.Bundle" />
</Parameters>
<Docs>
<param name="e">To be added.</param>
<param name="call">The call the event is associated with.</param>
<param name="event">The event.</param>
<param name="extras">Any associated extras.</param>
<summary>Unused; to handle connection events issued by a <c>ConnectionService</c>, implement the
<c>android.telecom.Call.Callback#onConnectionEvent(Call, String, Bundle)</c> callback.</summary>
<remarks>
<para>Unused; to handle connection events issued by a <c>ConnectionService</c>, implement the
<c>android.telecom.Call.Callback#onConnectionEvent(Call, String, Bundle)</c> callback.</para>
<para>See <c>Connection#sendConnectionEvent(String, Bundle)</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#onConnectionEvent(android.telecom.Call,%20java.lang.String,%20android.os.Bundle)" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.onConnectionEvent(android.telecom.Call, java.lang.String, android.os.Bundle)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="OnMuteStateChanged">
<MemberSignature Language="C#" Value="public virtual void OnMuteStateChanged (bool isMuted);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnMuteStateChanged(bool isMuted) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.OnMuteStateChanged(System.Boolean)" />
<MemberSignature Language="F#" Value="abstract member OnMuteStateChanged : bool -> unit
override this.OnMuteStateChanged : bool -> unit" Usage="inCallService.OnMuteStateChanged isMuted" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onMuteStateChanged", "(Z)V", "GetOnMuteStateChanged_ZHandler", ApiSince=34)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onMuteStateChanged", "(Z)V", "GetOnMuteStateChanged_ZHandler", ApiSince=34)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="isMuted" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="isMuted">The current mute state.</param>
<summary>Called when the mute state changes.</summary>
<remarks>
<para>Called when the mute state changes.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#onMuteStateChanged(boolean)" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.onMuteStateChanged(boolean)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="OnSilenceRinger">
<MemberSignature Language="C#" Value="public virtual void OnSilenceRinger ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnSilenceRinger() cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.OnSilenceRinger" />
<MemberSignature Language="F#" Value="abstract member OnSilenceRinger : unit -> unit
override this.OnSilenceRinger : unit -> unit" Usage="inCallService.OnSilenceRinger " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onSilenceRinger", "()V", "GetOnSilenceRingerHandler", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onSilenceRinger", "()V", "GetOnSilenceRingerHandler", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Called to silence the ringer if a ringing call exists.</summary>
<remarks>
<para>Called to silence the ringer if a ringing call exists.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/telecom/InCallService#onSilenceRinger()" title="Reference documentation">Java documentation for <code>android.telecom.InCallService.onSilenceRinger()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="RequestBluetoothAudio">
<MemberSignature Language="C#" Value="public void RequestBluetoothAudio (Android.Bluetooth.BluetoothDevice bluetoothDevice);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void RequestBluetoothAudio(class Android.Bluetooth.BluetoothDevice bluetoothDevice) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Telecom.InCallService.RequestBluetoothAudio(Android.Bluetooth.BluetoothDevice)" />
<MemberSignature Language="F#" Value="member this.RequestBluetoothAudio : Android.Bluetooth.BluetoothDevice -> unit" Usage="inCallService.RequestBluetoothAudio bluetoothDevice" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("requestBluetoothAudio", "(Landroid/bluetooth/BluetoothDevice;)V", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("requestBluetoothAudio", "(Landroid/bluetooth/BluetoothDevice;)V", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.ObsoletedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.ObsoletedOSPlatform("android34.0")>]</AttributeName>
</Attribute>