TelecomManager.IsIncomingCallPermitted(PhoneAccountHandle) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷電信是否允許透過 #addNewIncomingCall(PhoneAccountHandle, Bundle) 指定 PhoneAccountHandleAPI 新增來電。
[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 否則。
- 屬性
備註
判斷電信是否允許透過 #addNewIncomingCall(PhoneAccountHandle, Bundle) 指定 PhoneAccountHandleAPI 新增來電。
ConnectionService A 在以下情況下不得新增指定呼叫PhoneAccountHandle:<ul><li>PhoneAccount 未設定屬性PhoneAccount#CAPABILITY_SELF_MANAGED(即為受管理 ConnectionService),且已達到有效或保留呼叫上限。</李><莉>有緊急電話正在進行中。</li></ul>
Java 文件 android.telecom.TelecomManager.isIncomingCallPermitted(android.telecom.PhoneAccountHandle)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。