ConnectionService.OnCreateIncomingConnectionFailed Method

Definition

Called by Telecom to inform the ConnectionService that its request to create a new incoming Connection was denied.

[Android.Runtime.Register("onCreateIncomingConnectionFailed", "(Landroid/telecom/PhoneAccountHandle;Landroid/telecom/ConnectionRequest;)V", "GetOnCreateIncomingConnectionFailed_Landroid_telecom_PhoneAccountHandle_Landroid_telecom_ConnectionRequest_Handler", ApiSince=26)]
public virtual void OnCreateIncomingConnectionFailed (Android.Telecom.PhoneAccountHandle? connectionManagerPhoneAccount, Android.Telecom.ConnectionRequest? request);
[<Android.Runtime.Register("onCreateIncomingConnectionFailed", "(Landroid/telecom/PhoneAccountHandle;Landroid/telecom/ConnectionRequest;)V", "GetOnCreateIncomingConnectionFailed_Landroid_telecom_PhoneAccountHandle_Landroid_telecom_ConnectionRequest_Handler", ApiSince=26)>]
abstract member OnCreateIncomingConnectionFailed : Android.Telecom.PhoneAccountHandle * Android.Telecom.ConnectionRequest -> unit
override this.OnCreateIncomingConnectionFailed : Android.Telecom.PhoneAccountHandle * Android.Telecom.ConnectionRequest -> unit

Parameters

connectionManagerPhoneAccount
PhoneAccountHandle

See description at #onCreateOutgoingConnection(PhoneAccountHandle, ConnectionRequest).

request
ConnectionRequest

The incoming connection request.

Attributes

Remarks

Called by Telecom to inform the ConnectionService that its request to create a new incoming Connection was denied.

Used when a self-managed ConnectionService attempts to create a new incoming Connection, but Telecom has determined that the call cannot be allowed at this time. The ConnectionService is responsible for silently rejecting the new incoming Connection.

See TelecomManager#isIncomingCallPermitted(PhoneAccountHandle) for more information.

Java documentation for android.telecom.ConnectionService.onCreateIncomingConnectionFailed(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