Share via


Connection.CreateCanceledConnection Method

Definition

Return a Connection which represents a canceled connection attempt.

[Android.Runtime.Register("createCanceledConnection", "()Landroid/telecom/Connection;", "", ApiSince=23)]
public static Android.Telecom.Connection? CreateCanceledConnection ();
[<Android.Runtime.Register("createCanceledConnection", "()Landroid/telecom/Connection;", "", ApiSince=23)>]
static member CreateCanceledConnection : unit -> Android.Telecom.Connection

Returns

A Connection which indicates that the underlying connection should be canceled.

Attributes

Remarks

Return a Connection which represents a canceled connection attempt. The returned Connection will have state #STATE_DISCONNECTED, and cannot be moved out of that state. This connection should not be used for anything, and no other Connections should be attempted.

so users of this method need not maintain a reference to its return value to destroy it.

Java documentation for android.telecom.Connection.createCanceledConnection().

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