public final class PhoneCallStateHelper
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
PhoneCallStateHelper.OnStateChangeListener
手机来电状态监听器。
|
构造器和说明 |
---|
PhoneCallStateHelper(android.content.Context context,
PhoneCallStateHelper.OnStateChangeListener listener)
创建一个
PhoneCallStateHelper 对象。 |
限定符和类型 | 方法和说明 |
---|---|
boolean |
isCallIDLE()
是否没有任何来电。
|
void |
registerCallStateListener()
注册监听器。
|
void |
unregisterCallStateListener()
取消已注册的监听器。
|
public PhoneCallStateHelper(@NonNull android.content.Context context, @NonNull PhoneCallStateHelper.OnStateChangeListener listener)
PhoneCallStateHelper
对象。context
- Context 对象,不能为 nulllistener
- 监听器对象,不能为 null