다음을 통해 공유


TelecomManager.IsOutgoingCallPermitted(PhoneAccountHandle) Method

Definition

Determines whether Telecom would permit an outgoing call to be placed via the #placeCall(Uri, Bundle) API for the specified PhoneAccountHandle.

[Android.Runtime.Register("isOutgoingCallPermitted", "(Landroid/telecom/PhoneAccountHandle;)Z", "GetIsOutgoingCallPermitted_Landroid_telecom_PhoneAccountHandle_Handler", ApiSince=26)]
public virtual bool IsOutgoingCallPermitted (Android.Telecom.PhoneAccountHandle? phoneAccountHandle);
[<Android.Runtime.Register("isOutgoingCallPermitted", "(Landroid/telecom/PhoneAccountHandle;)Z", "GetIsOutgoingCallPermitted_Landroid_telecom_PhoneAccountHandle_Handler", ApiSince=26)>]
abstract member IsOutgoingCallPermitted : Android.Telecom.PhoneAccountHandle -> bool
override this.IsOutgoingCallPermitted : Android.Telecom.PhoneAccountHandle -> bool

Parameters

phoneAccountHandle
PhoneAccountHandle

The PhoneAccountHandle the call will be added for.

Returns

true if telecom will permit an outgoing call to be placed, false otherwise.

Attributes

Remarks

Determines whether Telecom would permit an outgoing call to be placed via the #placeCall(Uri, Bundle) API for the specified PhoneAccountHandle.

A ConnectionService may not place 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, held or ringing call limit has been reached.</li> <li>PhoneAccount has property PhoneAccount#CAPABILITY_SELF_MANAGED set (i.e. it is a self-managed ConnectionService and there is an ongoing call in another ConnectionService.</li> <li>There is an ongoing emergency call.</li> </ul>

Java documentation for android.telecom.TelecomManager.isOutgoingCallPermitted(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