ConnectionService.OnCreateIncomingConnection Method

Definition

Create a Connection given an incoming request.

[Android.Runtime.Register("onCreateIncomingConnection", "(Landroid/telecom/PhoneAccountHandle;Landroid/telecom/ConnectionRequest;)Landroid/telecom/Connection;", "GetOnCreateIncomingConnection_Landroid_telecom_PhoneAccountHandle_Landroid_telecom_ConnectionRequest_Handler", ApiSince=23)]
public virtual Android.Telecom.Connection? OnCreateIncomingConnection (Android.Telecom.PhoneAccountHandle? connectionManagerPhoneAccount, Android.Telecom.ConnectionRequest? request);
[<Android.Runtime.Register("onCreateIncomingConnection", "(Landroid/telecom/PhoneAccountHandle;Landroid/telecom/ConnectionRequest;)Landroid/telecom/Connection;", "GetOnCreateIncomingConnection_Landroid_telecom_PhoneAccountHandle_Landroid_telecom_ConnectionRequest_Handler", ApiSince=23)>]
abstract member OnCreateIncomingConnection : Android.Telecom.PhoneAccountHandle * Android.Telecom.ConnectionRequest -> Android.Telecom.Connection
override this.OnCreateIncomingConnection : Android.Telecom.PhoneAccountHandle * Android.Telecom.ConnectionRequest -> Android.Telecom.Connection

Parameters

connectionManagerPhoneAccount
PhoneAccountHandle

See description at #onCreateOutgoingConnection(PhoneAccountHandle, ConnectionRequest).

request
ConnectionRequest

Details about the incoming call.

Returns

The Connection object to satisfy this call, or null to not handle the call.

Attributes

Remarks

Create a Connection given an incoming request. This is used to attach to existing incoming calls.

Java documentation for android.telecom.ConnectionService.onCreateIncomingConnection(android.telecom.PhoneAccountHandle, android.telecom.ConnectionRequest).

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