TelephonyManager.CreateForPhoneAccountHandle(PhoneAccountHandle) Method

Definition

Create a new TelephonyManager object pinned to the subscription ID associated with the given phone account.

[Android.Runtime.Register("createForPhoneAccountHandle", "(Landroid/telecom/PhoneAccountHandle;)Landroid/telephony/TelephonyManager;", "GetCreateForPhoneAccountHandle_Landroid_telecom_PhoneAccountHandle_Handler", ApiSince=26)]
public virtual Android.Telephony.TelephonyManager? CreateForPhoneAccountHandle (Android.Telecom.PhoneAccountHandle? phoneAccountHandle);
[<Android.Runtime.Register("createForPhoneAccountHandle", "(Landroid/telecom/PhoneAccountHandle;)Landroid/telephony/TelephonyManager;", "GetCreateForPhoneAccountHandle_Landroid_telecom_PhoneAccountHandle_Handler", ApiSince=26)>]
abstract member CreateForPhoneAccountHandle : Android.Telecom.PhoneAccountHandle -> Android.Telephony.TelephonyManager
override this.CreateForPhoneAccountHandle : Android.Telecom.PhoneAccountHandle -> Android.Telephony.TelephonyManager

Parameters

phoneAccountHandle
PhoneAccountHandle

Returns

a TelephonyManager that uses the given phone account for all calls, or null if the phone account does not correspond to a valid subscription ID.

Attributes

Remarks

Create a new TelephonyManager object pinned to the subscription ID associated with the given phone account.

Java documentation for android.telephony.TelephonyManager.createForPhoneAccountHandle(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