Partager via


ConnectionService.OnCreateOutgoingConnectionFailed Method

Definition

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

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

Parameters

connectionManagerPhoneAccount
PhoneAccountHandle

See description at #onCreateOutgoingConnection(PhoneAccountHandle, ConnectionRequest).

request
ConnectionRequest

The outgoing connection request.

Attributes

Remarks

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

Used when a self-managed ConnectionService attempts to create a new outgoing Connection, but Telecom has determined that the call cannot be placed at this time. The ConnectionService is responisible for informing the user that the Connection cannot be made at this time.

See TelecomManager#isOutgoingCallPermitted(PhoneAccountHandle) for more information.

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