TelephonyManager.CreateForPhoneAccountHandle(PhoneAccountHandle) Method
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.
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.
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.