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 新增來電。
在以下情況下,A ConnectionService 不得為指定的 PhoneAccountHandle 呼叫新增:
-
PhoneAccount未設定屬性PhoneAccount#CAPABILITY_SELF_MANAGED(即為受管理ConnectionService),且已達到啟用或保留通話上限。 - 有一通緊急電話正在進行中。
Java 文件 android.telecom.TelecomManager.isIncomingCallPermitted(android.telecom.PhoneAccountHandle)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。