Share via


DisconnectCause Class

Definition

Describes the cause of a disconnected call.

[Android.Runtime.Register("android/telecom/DisconnectCause", ApiSince=23, DoNotGenerateAcw=true)]
public sealed class DisconnectCause : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/telecom/DisconnectCause", ApiSince=23, DoNotGenerateAcw=true)>]
type DisconnectCause = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
DisconnectCause
Attributes
Implements

Remarks

Describes the cause of a disconnected call. This always includes a code describing the generic cause of the disconnect. Optionally, it may include a label and/or description to display to the user. It is the responsibility of the ConnectionService to provide localized versions of the label and description. It also may contain a reason for the disconnect, which is intended for logging and not for display to the user.

Java documentation for 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.

Constructors

Fields

ReasonEmergencyCallPlaced

This reason is set when a call is ended in order to place an emergency call when a PhoneAccount doesn't support holding an ongoing call to place an emergency call.

ReasonEmulatingSingleCall

Reason code (returned via #getReason()), which indicates that the connection service is setting the call's state to Call#STATE_DISCONNECTED because it is internally changing the representation of an IMS conference call to simulate a single-party call.

ReasonImsAccessBlocked

Reason code (returned via #getReason()), which indicates that the call was disconnected because IMS access is blocked.

ReasonWifiOnButWfcOff

Reason code (returned via #getReason()) which indicates that a call could not be completed because the cellular radio is off or out of service, the device is connected to a wifi network, but the user has not enabled wifi calling.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Code

Returns the code for the reason for this disconnect.

Creator
Description
DescriptionFormatted

Returns a description which explains the reason for the disconnect cause and is for display in the user interface.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Label
LabelFormatted

Returns a short label which explains the reason for the disconnect cause and is for display in the user interface.

PeerReference (Inherited from Object)
Reason

Returns an explanation of the reason for the disconnect.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
Tone

Returns the tone to play when disconnected.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DescribeContents()
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Explicit Interface Implementations

Extension Methods

Applies to