Partager via


TelecomManager.RegisteredPhoneAccounts Property

Definition

This API will return all PhoneAccounts the caller registered via TelecomManager#registerPhoneAccount(PhoneAccount).

public virtual System.Collections.Generic.IList<Android.Telecom.PhoneAccount> RegisteredPhoneAccounts { [Android.Runtime.Register("getRegisteredPhoneAccounts", "()Ljava/util/List;", "GetGetRegisteredPhoneAccountsHandler", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getRegisteredPhoneAccounts", "()Ljava/util/List;", "GetGetRegisteredPhoneAccountsHandler", ApiSince=35)>]
member this.RegisteredPhoneAccounts : System.Collections.Generic.IList<Android.Telecom.PhoneAccount>

Property Value

all the PhoneAccounts registered by the caller.

Attributes

Remarks

This API will return all PhoneAccounts the caller registered via TelecomManager#registerPhoneAccount(PhoneAccount). If a PhoneAccount appears to be missing from the list, Telecom has either unregistered the PhoneAccount (for cleanup purposes) or the caller registered the PhoneAccount under a different user and does not have the android.Manifest.permission#INTERACT_ACROSS_USERS permission. <b>Note:</b> This API will only return PhoneAccounts registered by the same app. For system Dialers that need all the PhoneAccounts registered by every application, see TelecomManager#getAllPhoneAccounts().

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

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