Constructor and Description |
---|
Listener() |
Modifier and Type | Method and Description |
---|---|
void |
onAudioStateChanged(Phone phone,
AudioState audioState)
Deprecated.
Use
onCallAudioStateChanged(Phone, CallAudioState) instead. |
void |
onBringToForeground(Phone phone,
boolean showDialpad)
Called to bring the in-call screen to the foreground.
|
void |
onCallAdded(Phone phone,
Call call)
Called when a
Call has been added to this in-call session. |
void |
onCallAudioStateChanged(Phone phone,
CallAudioState callAudioState)
Called when the audio state changes.
|
void |
onCallRemoved(Phone phone,
Call call)
Called when a
Call has been removed from this in-call session. |
void |
onCanAddCallChanged(Phone phone,
boolean canAddCall)
Called when the
Phone ability to add more calls changes. |
void |
onSilenceRinger(Phone phone)
Called to silence the ringer if a ringing call exists.
|
@Deprecated public void onAudioStateChanged(Phone phone, AudioState audioState)
onCallAudioStateChanged(Phone, CallAudioState)
instead.phone
- The Phone
calling this method.audioState
- The new AudioState
.public void onCallAudioStateChanged(Phone phone, CallAudioState callAudioState)
phone
- The Phone
calling this method.callAudioState
- The new CallAudioState
.public void onBringToForeground(Phone phone, boolean showDialpad)
Call
s.phone
- The Phone
calling this method.showDialpad
- If true, put up the dialpad when the screen is shown.public void onCallAdded(Phone phone, Call call)
Call
has been added to this in-call session. The in-call user
experience should add necessary state listeners to the specified Call
and
immediately start to show the user information about the existence
and nature of this Call
. Subsequent invocations of Phone.getCalls()
will
include this Call
.phone
- The Phone
calling this method.call
- A newly added Call
.public void onCallRemoved(Phone phone, Call call)
Call
has been removed from this in-call session. The in-call user
experience should remove any state listeners from the specified Call
and
immediately stop displaying any information about this Call
.
Subsequent invocations of Phone.getCalls()
will no longer include this Call
.phone
- The Phone
calling this method.call
- A newly removed Call
.public void onCanAddCallChanged(Phone phone, boolean canAddCall)
Phone
ability to add more calls changes. If the phone cannot
support more calls then canAddCall
is set to false
. If it can, then it
is set to true
.phone
- The Phone
calling this method.canAddCall
- Indicates whether an additional call can be added.public void onSilenceRinger(Phone phone)
phone
- The Phone
calling this method.