java.lang.Object | |
↳ | android.telecom.Call |
Represents an ongoing phone call that the in-call app should present to the user.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Call.Callback | |||||||||||
Call.Details |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | AVAILABLE_PHONE_ACCOUNTS |
The key to retrieve the optional PhoneAccount s Telecom can bundle with its Call
extras.
|
|||||||||
int | STATE_ACTIVE |
The state of a Call when actively supporting conversation.
|
|||||||||
int | STATE_CONNECTING |
The initial state of an outgoing Call .
|
|||||||||
int | STATE_DIALING |
The state of an outgoing Call when dialing the remote number, but not yet connected.
|
|||||||||
int | STATE_DISCONNECTED |
The state of a Call when no further voice or other communication is being
transmitted, the remote side has been or will inevitably be informed that the Call
is no longer active, and the local data transport has or inevitably will release resources
associated with this Call .
|
|||||||||
int | STATE_DISCONNECTING |
The state of a Call when the user has initiated a disconnection of the call, but the
call has not yet been disconnected by the underlying ConnectionService .
|
|||||||||
int | STATE_HOLDING |
The state of a Call when in a holding state.
|
|||||||||
int | STATE_NEW |
The state of a Call when newly created.
|
|||||||||
int | STATE_RINGING |
The state of an incoming Call when ringing locally, but not yet connected.
|
|||||||||
int | STATE_SELECT_PHONE_ACCOUNT |
The state of an outgoing Call when waiting on user to select a
PhoneAccount through which to place the call.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instructs this
STATE_RINGING Call to answer.
| |||||||||||
Instructs this
Call to enter a conference.
| |||||||||||
Instructs this
Call to disconnect.
| |||||||||||
Obtains a list of canned, pre-configured message responses to present to the user as
ways of rejecting this
Call using via a text message.
| |||||||||||
Obtains the children of this conference
Call , if any.
| |||||||||||
Returns the list of
Call s with which this Call is allowed to conference.
| |||||||||||
Obtains an object containing call details.
| |||||||||||
Obtains the parent of this
Call in a conference, if any.
| |||||||||||
Obtains the post-dial sequence remaining to be emitted by this
Call , if any.
| |||||||||||
Obtains the state of this
Call .
| |||||||||||
Obtains an object that can be used to display video from this
Call .
| |||||||||||
Instructs this
Call to go on hold.
| |||||||||||
Merges the calls within this conference.
| |||||||||||
Notifies this
Call that an account has been selected and to proceed with placing
an outgoing call.
| |||||||||||
Instructs this
Call to play a dual-tone multi-frequency signaling (DTMF) tone.
| |||||||||||
Instructs this
Call to continue playing a post-dial DTMF string.
| |||||||||||
Registers a callback to this
Call .
| |||||||||||
Registers a callback to this
Call .
| |||||||||||
Instructs this
STATE_RINGING Call to reject.
| |||||||||||
Instructs this
Call to split from any conference call with which it may be
connected.
| |||||||||||
Instructs this
Call to stop any dual-tone multi-frequency signaling (DTMF) tone
currently playing.
| |||||||||||
Swaps the calls within this conference.
| |||||||||||
Instructs this
STATE_HOLDING call to release from hold.
| |||||||||||
Unregisters a callback from this
Call .
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The key to retrieve the optional PhoneAccount
s Telecom can bundle with its Call
extras. Used to pass the phone accounts to display on the front end to the user in order to
select phone accounts to (for example) place a call.
The state of a Call
when actively supporting conversation.
The initial state of an outgoing Call
.
Common transitions are to STATE_DIALING
state for a successful call or
STATE_DISCONNECTED
if it failed.
The state of an outgoing Call
when dialing the remote number, but not yet connected.
The state of a Call
when no further voice or other communication is being
transmitted, the remote side has been or will inevitably be informed that the Call
is no longer active, and the local data transport has or inevitably will release resources
associated with this Call
.
The state of a Call
when the user has initiated a disconnection of the call, but the
call has not yet been disconnected by the underlying ConnectionService
. The next
state of the call is (potentially) STATE_DISCONNECTED
.
The state of a Call
when in a holding state.
The state of a Call
when newly created.
The state of an incoming Call
when ringing locally, but not yet connected.
The state of an outgoing Call
when waiting on user to select a
PhoneAccount
through which to place the call.
Instructs this STATE_RINGING
Call
to answer.
videoState | The video state in which to answer the call. |
---|
Instructs this Call
to enter a conference.
callToConferenceWith | The other call with which to conference. |
---|
Obtains a list of canned, pre-configured message responses to present to the user as
ways of rejecting this Call
using via a text message.
Obtains the children of this conference Call
, if any.
Call
if this Call
is a conference, or an empty
List
otherwise.
Returns the list of Call
s with which this Call
is allowed to conference.
Call
s.
Obtains an object containing call details.
Call.Details
object. Depending on the state of the Call
, the
result may be null
.
Obtains the parent of this Call
in a conference, if any.
Call
, or null
if this Call
is not a
child of any conference Call
s.
Obtains the post-dial sequence remaining to be emitted by this Call
, if any.
null
if there is no post-dial sequence
remaining or this Call
is not in a post-dial state.
Obtains the state of this Call
.
STATE_*
constants.
Obtains an object that can be used to display video from this Call
.
Call.VideoCall
.
Merges the calls within this conference. See CAPABILITY_MERGE_CONFERENCE
.
Notifies this Call
that an account has been selected and to proceed with placing
an outgoing call. Optionally sets this account as the default account.
Instructs this Call
to play a dual-tone multi-frequency signaling (DTMF) tone.
Any other currently playing DTMF tone in the specified call is immediately stopped.
digit | A character representing the DTMF digit for which to play the tone. This
value must be one of '0' through '9' , '*' or '#' .
|
---|
Instructs this Call
to continue playing a post-dial DTMF string.
A post-dial DTMF string is a string of digits entered after a phone number, when dialed,
that are immediately sent as DTMF tones to the recipient as soon as the connection is made.
If the DTMF string contains a DTMF_CHARACTER_PAUSE
symbol, this
Call
will temporarily pause playing the tones for a pre-defined period of time.
If the DTMF string contains a DTMF_CHARACTER_WAIT
symbol, this
Call
will pause playing the tones and notify callbacks via
onPostDialWait(Call, String)
. At this point, the in-call app
should display to the user an indication of this state and an affordance to continue
the postdial sequence. When the user decides to continue the postdial sequence, the in-call
app should invoke the postDialContinue(boolean)
method.
proceed | Whether or not to continue with the post-dial sequence. |
---|
Registers a callback to this Call
.
callback | A Callback .
|
---|
Registers a callback to this Call
.
callback | A Callback . |
---|---|
handler | A handler which command and status changes will be delivered to. |
Instructs this STATE_RINGING
Call
to reject.
rejectWithMessage | Whether to reject with a text message. |
---|---|
textMessage | An optional text message with which to respond. |
Instructs this Call
to split from any conference call with which it may be
connected.
Instructs this Call
to stop any dual-tone multi-frequency signaling (DTMF) tone
currently playing.
DTMF tones are played by calling playDtmfTone(char)
. If no DTMF tone is
currently playing, this method will do nothing.
Swaps the calls within this conference. See CAPABILITY_SWAP_CONFERENCE
.
Unregisters a callback from this Call
.
callback | A Callback .
|
---|