다음을 통해 공유


TelecomManager.GetPhoneAccount(PhoneAccountHandle) Method

Definition

Return the PhoneAccount for a specified PhoneAccountHandle.

[Android.Runtime.Register("getPhoneAccount", "(Landroid/telecom/PhoneAccountHandle;)Landroid/telecom/PhoneAccount;", "GetGetPhoneAccount_Landroid_telecom_PhoneAccountHandle_Handler", ApiSince=23)]
public virtual Android.Telecom.PhoneAccount? GetPhoneAccount (Android.Telecom.PhoneAccountHandle? account);
[<Android.Runtime.Register("getPhoneAccount", "(Landroid/telecom/PhoneAccountHandle;)Landroid/telecom/PhoneAccount;", "GetGetPhoneAccount_Landroid_telecom_PhoneAccountHandle_Handler", ApiSince=23)>]
abstract member GetPhoneAccount : Android.Telecom.PhoneAccountHandle -> Android.Telecom.PhoneAccount
override this.GetPhoneAccount : Android.Telecom.PhoneAccountHandle -> Android.Telecom.PhoneAccount

Parameters

account
PhoneAccountHandle

The PhoneAccountHandle.

Returns

The PhoneAccount object.

Attributes

Remarks

Return the PhoneAccount for a specified PhoneAccountHandle. Object includes resources which can be used in a user interface.

Requires Permission: android.Manifest.permission#READ_PHONE_NUMBERS for applications targeting API level 31+.

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