Connection.CreateFailedConnection(DisconnectCause) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.