TelecomManager.SelfManagedPhoneAccounts Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a list of PhoneAccountHandle
s for all self-managed
ConnectionService
s owned by the calling UserHandle
.
public virtual System.Collections.Generic.IList<Android.Telecom.PhoneAccountHandle> SelfManagedPhoneAccounts { [Android.Runtime.Register("getSelfManagedPhoneAccounts", "()Ljava/util/List;", "GetGetSelfManagedPhoneAccountsHandler", ApiSince=26)] [Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")] get; }
[<get: Android.Runtime.Register("getSelfManagedPhoneAccounts", "()Ljava/util/List;", "GetGetSelfManagedPhoneAccountsHandler", ApiSince=26)>]
[<get: Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")>]
member this.SelfManagedPhoneAccounts : System.Collections.Generic.IList<Android.Telecom.PhoneAccountHandle>
Property Value
A list of PhoneAccountHandle
objects.
- Attributes
Remarks
Returns a list of PhoneAccountHandle
s for all self-managed ConnectionService
s owned by the calling UserHandle
.
Self-Managed ConnectionService
s have a PhoneAccount
with PhoneAccount#CAPABILITY_SELF_MANAGED
.
Requires permission android.Manifest.permission#READ_PHONE_STATE
, or that the caller is the default dialer app.
A SecurityException
will be thrown if a called is not the default dialer, or lacks the android.Manifest.permission#READ_PHONE_STATE
permission.
Java documentation for android.telecom.TelecomManager.getSelfManagedPhoneAccounts()
.
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.