TelecomManager.IsIncomingCallPermitted(PhoneAccountHandle) Method

Definition

Determines whether Telecom would permit an incoming call to be added via the #addNewIncomingCall(PhoneAccountHandle, Bundle) API for the specified 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

Parameters

phoneAccountHandle
PhoneAccountHandle

The PhoneAccountHandle the call will be added for.

Returns

true if telecom will permit an incoming call to be added, false otherwise.

Attributes

Remarks

Determines whether Telecom would permit an incoming call to be added via the #addNewIncomingCall(PhoneAccountHandle, Bundle) API for the specified PhoneAccountHandle.

A ConnectionService may not add a call for the specified PhoneAccountHandle in the following situations: <ul> <li>PhoneAccount does not have property PhoneAccount#CAPABILITY_SELF_MANAGED set (i.e. it is a managed ConnectionService), and the active or held call limit has been reached.</li> <li>There is an ongoing emergency call.</li> </ul>

Java documentation for android.telecom.TelecomManager.isIncomingCallPermitted(android.telecom.PhoneAccountHandle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to