什么不同的呼叫状态在Android电话堆栈重新present? [英] What does the different Call states in the Android telephony stack represent?
本文介绍了什么不同的呼叫状态在Android电话堆栈重新present?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在内部机器人类<一href="https://android.googlesource.com/platform/frameworks/opt/telephony/+/master/src/java/com/android/internal/telephony/Call.java"相对=nofollow> com.android.internal.telephony.Call 包含一个名为国家和定义一个枚举如下:
The internal Android class com.android.internal.telephony.Call contains an enum called State and defined as follows:
public enum State {
IDLE, ACTIVE, HOLDING, DIALING, ALERTING, INCOMING, WAITING, DISCONNECTED, DISCONNECTING;
public boolean isAlive() {
return !(this == IDLE || this == DISCONNECTED || this == DISCONNECTING);
}
public boolean isRinging() {
return this == INCOMING || this == WAITING;
}
public boolean isDialing() {
return this == DIALING || this == ALERTING;
}
}
什么不同的状态重新present?
推荐答案
好了,这是我自己尝试回答这个问题:
Okay, this is my own attempt at answering the question:
/** Call is idle. */
IDLE,
/** Call is active i.e. audio paths are connected. */
ACTIVE,
/** We have placed the call on hold. */
HOLDING,
/** Outgoing dialling call initiated. */
DIALING,
/** Outgoing call is alerting receiving party. */
ALERTING,
/** Incoming call ready for pickup. */
INCOMING,
/** Incoming call is waiting for pickup, while another call is in progress. */
WAITING,
/** Call is disconnected, by either party. */
DISCONNECTED,
/** Call is currently being disconnected. */
DISCONNECTING;
这篇关于什么不同的呼叫状态在Android电话堆栈重新present?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文