TelecomManager.IsIncomingCallPermitted(PhoneAccountHandle) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定 Telecom 是否允许通过 #addNewIncomingCall(PhoneAccountHandle, Bundle)
指定 API PhoneAccountHandle
添加传入调用。
[Android.Runtime.Register("isIncomingCallPermitted", "(Landroid/telecom/PhoneAccountHandle;)Z", "GetIsIncomingCallPermitted_Landroid_telecom_PhoneAccountHandle_Handler", ApiSince=26)]
public virtual bool IsIncomingCallPermitted (Android.Telecom.PhoneAccountHandle? phoneAccountHandle);
[<Android.Runtime.Register("isIncomingCallPermitted", "(Landroid/telecom/PhoneAccountHandle;)Z", "GetIsIncomingCallPermitted_Landroid_telecom_PhoneAccountHandle_Handler", ApiSince=26)>]
abstract member IsIncomingCallPermitted : Android.Telecom.PhoneAccountHandle -> bool
override this.IsIncomingCallPermitted : Android.Telecom.PhoneAccountHandle -> bool
参数
- phoneAccountHandle
- PhoneAccountHandle
将 PhoneAccountHandle
为其添加调用。
返回
true
如果电信允许添加传入呼叫, false
则为
- 属性
注解
确定 Telecom 是否允许通过 #addNewIncomingCall(PhoneAccountHandle, Bundle)
指定 API PhoneAccountHandle
添加传入调用。
在以下情况下,A ConnectionService
可能不会添加指定PhoneAccountHandle
调用:<ul<>li>PhoneAccount
没有属性PhoneAccount#CAPABILITY_SELF_MANAGED
集(即是托管ConnectionService
的),并且已达到活动或保留的调用限制。</li li><>有一个正在进行的紧急呼叫。</li></ul>
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。