Condividi tramite


TelecomManager.UserSelectedOutgoingPhoneAccount Property

Definition

Return the PhoneAccount which is the user-chosen default for making outgoing phone calls.

public virtual Android.Telecom.PhoneAccountHandle? UserSelectedOutgoingPhoneAccount { [Android.Runtime.Register("getUserSelectedOutgoingPhoneAccount", "()Landroid/telecom/PhoneAccountHandle;", "GetGetUserSelectedOutgoingPhoneAccountHandler", ApiSince=29)] [Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")] get; }
[<get: Android.Runtime.Register("getUserSelectedOutgoingPhoneAccount", "()Landroid/telecom/PhoneAccountHandle;", "GetGetUserSelectedOutgoingPhoneAccountHandler", ApiSince=29)>]
[<get: Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")>]
member this.UserSelectedOutgoingPhoneAccount : Android.Telecom.PhoneAccountHandle

Property Value

The user outgoing phone account selected by the user, or null if there is no user selected outgoing PhoneAccountHandle.

Attributes

Remarks

Return the PhoneAccount which is the user-chosen default for making outgoing phone calls. This PhoneAccount will always be a member of the list which is returned from calling #getCallCapablePhoneAccounts()

Apps must be prepared for this method to return null, indicating that there currently exists no user-chosen default PhoneAccount.

The default dialer has access to use this method.

Java documentation for android.telecom.TelecomManager.getUserSelectedOutgoingPhoneAccount().

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