Udostępnij za pośrednictwem


Call Class

Definition

Represents an ongoing phone call that the in-call app should present to the user.

[Android.Runtime.Register("android/telecom/Call", ApiSince=23, DoNotGenerateAcw=true)]
public sealed class Call : Java.Lang.Object
[<Android.Runtime.Register("android/telecom/Call", ApiSince=23, DoNotGenerateAcw=true)>]
type Call = class
    inherit Object
Inheritance
Call
Attributes

Remarks

Represents an ongoing phone call that the in-call app should present to the user.

Java documentation for android.telecom.Call.

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.

Fields

AvailablePhoneAccounts

The key to retrieve the optional PhoneAccounts Telecom can bundle with its Call extras.

EventClearDiagnosticMessage

Event reported from the telecom framework when a diagnostic message previously raised with #EVENT_DISPLAY_DIAGNOSTIC_MESSAGE has cleared and is no longer pertinent.

EventDisplayDiagnosticMessage

Event reported from the Telecom stack to report an in-call diagnostic message which the dialer app may opt to display to the user.

ExtraDiagnosticMessage

CharSequence extra used with #EVENT_DISPLAY_DIAGNOSTIC_MESSAGE.

ExtraDiagnosticMessageId

Integer extra representing a message ID for a message posted via #EVENT_DISPLAY_DIAGNOSTIC_MESSAGE.

ExtraIsSuppressedByDoNotDisturb

Extra key intended for InCallServices that notify the user of an incoming call.

ExtraLastEmergencyCallbackTimeMillis

Extra key used to indicate the time (in milliseconds since midnight, January 1, 1970 UTC) when the last outgoing emergency call was made.

ExtraSilentRingingRequested

Extra key used to indicate whether a CallScreeningService has requested to silence the ringtone for a call.

ExtraSuggestedPhoneAccounts

Key for extra used to pass along a list of PhoneAccountSuggestions to the in-call UI when a call enters the #STATE_SELECT_PHONE_ACCOUNT state.

RejectReasonDeclined
Obsolete.

Reject reason used with #reject(int) to indicate that the user is rejecting this call because they have declined to answer it.

RejectReasonUnwanted
Obsolete.

Reject reason used with #reject(int) to indicate that the user is rejecting this call because it is an unwanted call.

StateAudioProcessing
Obsolete.

The state of a call that is active with the network, but the audio from the call is being intercepted by an app on the local device.

StateSimulatedRinging
Obsolete.

The state of a call that is being presented to the user after being in #STATE_AUDIO_PROCESSING.

Properties

CannedTextResponses

Obtains a list of canned, pre-configured message responses to present to the user as ways of rejecting an incoming Call using via a text message.

Children

Obtains the children of this conference Call, if any.

Class

Returns the runtime class of this Object.

(Inherited from Object)
ConferenceableCalls

Returns the list of Calls with which this Call is allowed to conference.

GenericConferenceActiveChildCall

Returns the child Call in a generic conference that is currently active.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
IsRttActive

Returns whether this call has an active RTT connection.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Parent

Obtains the parent of this Call in a conference, if any.

PeerReference (Inherited from Object)
RemainingPostDialSequence

Obtains the post-dial sequence remaining to be emitted by this Call, if any.

State

Obtains the state of this Call.

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)
VideoCall

Obtains an object that can be used to display video from this Call.

Methods

AddConferenceParticipants(IList<Uri>)

Pulls participants to existing call by forming a conference call.

Answer(VideoProfileState)

Instructs this #STATE_RINGINGCall to answer.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Conference(Call)

Instructs this Call to enter a conference.

Deflect(Uri)

Instructs this #STATE_RINGINGCall to deflect.

Disconnect()

Instructs this Call to disconnect.

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

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

(Inherited from Object)
GetDetails()

Obtains an object containing call details.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetRttCall()

Returns this call's RttCall object.

HandoverTo(PhoneAccountHandle, VideoProfileState, Bundle)

Initiates a handover of this Call to the ConnectionService identified by toHandle.

Hold()

Instructs this Call to go on hold.

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)
MergeConference()

Merges the calls within this conference.

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)
PhoneAccountSelected(PhoneAccountHandle, Boolean)

Notifies this Call that an account has been selected and to proceed with placing an outgoing call.

PlayDtmfTone(Char)

Instructs this Call to play a dual-tone multi-frequency signaling (DTMF) tone.

PostDialContinue(Boolean)

Instructs this Call to continue playing a post-dial DTMF string.

PullExternalCall()

Initiates a request to the ConnectionService to pull an external call to the local device.

PutExtras(Bundle)

Adds some extras to this Call.

RegisterCallback(Call+Callback, Handler)

Registers a callback to this Call.

RegisterCallback(Call+Callback)

Registers a callback to this Call.

Reject(Boolean, String)

Instructs this #STATE_RINGINGCall to reject.

Reject(Int32)

Instructs the ConnectionService providing this #STATE_RINGING call that the user has chosen to reject the call and has indicated a reason why the call is being rejected.

RemoveExtras(IList<String>)

Removes extras from this Call.

RemoveExtras(String[])

Removes extras from this Call.

RespondToRttRequest(Int32, Boolean)

Responds to an RTT request received via the Callback#onRttRequest(Call, int) )} callback.

SendCallEvent(String, Bundle)

Sends a Call event from this Call to the associated Connection in the ConnectionService.

SendRttRequest()

Sends an RTT upgrade request to the remote end of the connection.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SplitFromConference()

Instructs this Call to split from any conference call with which it may be connected.

StopDtmfTone()

Instructs this Call to stop any dual-tone multi-frequency signaling (DTMF) tone currently playing.

StopRtt()

Terminate the RTT session on this call.

SwapConference()

Swaps the calls within this conference.

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

Returns a string representation of the object.

(Inherited from Object)
Unhold()

Instructs this #STATE_HOLDING call to release from hold.

UnregisterCallback(Call+Callback)

Unregisters a callback from this Call.

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)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to