Share via


TelecomManager.AddNewIncomingConference(PhoneAccountHandle, Bundle) Method

Definition

Registers a new incoming conference.

[Android.Runtime.Register("addNewIncomingConference", "(Landroid/telecom/PhoneAccountHandle;Landroid/os/Bundle;)V", "GetAddNewIncomingConference_Landroid_telecom_PhoneAccountHandle_Landroid_os_Bundle_Handler", ApiSince=31)]
public virtual void AddNewIncomingConference (Android.Telecom.PhoneAccountHandle phoneAccount, Android.OS.Bundle extras);
[<Android.Runtime.Register("addNewIncomingConference", "(Landroid/telecom/PhoneAccountHandle;Landroid/os/Bundle;)V", "GetAddNewIncomingConference_Landroid_telecom_PhoneAccountHandle_Landroid_os_Bundle_Handler", ApiSince=31)>]
abstract member AddNewIncomingConference : Android.Telecom.PhoneAccountHandle * Android.OS.Bundle -> unit
override this.AddNewIncomingConference : Android.Telecom.PhoneAccountHandle * Android.OS.Bundle -> unit

Parameters

phoneAccount
PhoneAccountHandle

A PhoneAccountHandle registered with #registerPhoneAccount.

extras
Bundle

A bundle that will be passed through to ConnectionService#onCreateIncomingConference.

Attributes

Remarks

Registers a new incoming conference. A ConnectionService should invoke this method when it has an incoming conference. An incoming Conference is an adhoc conference call initiated on another device which the user is being invited to join in. For managed ConnectionServices, the specified PhoneAccountHandle must have been registered with #registerPhoneAccount and the user must have enabled the corresponding PhoneAccount. This can be checked using #getPhoneAccount(PhoneAccountHandle). Self-managed ConnectionServices must have android.Manifest.permission#MANAGE_OWN_CALLS to add a new incoming call.

The incoming conference you are adding is assumed to have a video state of VideoProfile#STATE_AUDIO_ONLY, unless the extra value #EXTRA_INCOMING_VIDEO_STATE is specified.

Once invoked, this method will cause the system to bind to the ConnectionService associated with the PhoneAccountHandle and request additional information about the call (See ConnectionService#onCreateIncomingConference(PhoneAccountHandle, ConnectionRequest)) before starting the incoming call UI.

For a managed ConnectionService, a SecurityException will be thrown if either the PhoneAccountHandle does not correspond to a registered PhoneAccount or the associated PhoneAccount is not currently enabled by the user.

Java documentation for android.telecom.TelecomManager.addNewIncomingConference(android.telecom.PhoneAccountHandle, android.os.Bundle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to