Share via


TelecomManager.GetDefaultOutgoingPhoneAccount(String) Method

Definition

Return the PhoneAccount which will be used to place outgoing calls to addresses with the specified uriScheme.

[Android.Runtime.Register("getDefaultOutgoingPhoneAccount", "(Ljava/lang/String;)Landroid/telecom/PhoneAccountHandle;", "GetGetDefaultOutgoingPhoneAccount_Ljava_lang_String_Handler", ApiSince=23)]
[Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")]
public virtual Android.Telecom.PhoneAccountHandle? GetDefaultOutgoingPhoneAccount (string? uriScheme);
[<Android.Runtime.Register("getDefaultOutgoingPhoneAccount", "(Ljava/lang/String;)Landroid/telecom/PhoneAccountHandle;", "GetGetDefaultOutgoingPhoneAccount_Ljava_lang_String_Handler", ApiSince=23)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")>]
abstract member GetDefaultOutgoingPhoneAccount : string -> Android.Telecom.PhoneAccountHandle
override this.GetDefaultOutgoingPhoneAccount : string -> Android.Telecom.PhoneAccountHandle

Parameters

uriScheme
String

The URI scheme.

Returns

The PhoneAccountHandle corresponding to the account to be used.

Attributes

Remarks

Return the PhoneAccount which will be used to place outgoing calls to addresses with the specified uriScheme. This PhoneAccount will always be a member of the list which is returned from invoking #getCallCapablePhoneAccounts(). The specific account returned depends on the following priorities: <ul> <li> If the user-selected default PhoneAccount supports the specified scheme, it will be returned. </li> <li> If there exists only one PhoneAccount that supports the specified scheme, it will be returned. </li> </ul>

If no PhoneAccount fits the criteria above, this method will return null.

Java documentation for android.telecom.TelecomManager.getDefaultOutgoingPhoneAccount(java.lang.String).

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