Partager via


Connection.CreateFailedConnection(DisconnectCause) Method

Definition

Return a Connection which represents a failed connection attempt.

[Android.Runtime.Register("createFailedConnection", "(Landroid/telecom/DisconnectCause;)Landroid/telecom/Connection;", "", ApiSince=23)]
public static Android.Telecom.Connection? CreateFailedConnection (Android.Telecom.DisconnectCause? disconnectCause);
[<Android.Runtime.Register("createFailedConnection", "(Landroid/telecom/DisconnectCause;)Landroid/telecom/Connection;", "", ApiSince=23)>]
static member CreateFailedConnection : Android.Telecom.DisconnectCause -> Android.Telecom.Connection

Parameters

disconnectCause
DisconnectCause

The disconnect cause, (android.telecomm.DisconnectCause).

Returns

A Connection which indicates failure.

Attributes

Remarks

Return a Connection which represents a failed connection attempt. The returned Connection will have a android.telecom.DisconnectCause and as specified, and a #getState() of #STATE_DISCONNECTED.

The returned Connection can be assumed to #destroy() itself when appropriate, so users of this method need not maintain a reference to its return value to destroy it.

Java documentation for android.telecom.Connection.createFailedConnection(android.telecom.DisconnectCause).

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