TelephonyManager.CreateForSubscriptionId(Int32) Method

Definition

Create a new TelephonyManager object pinned to the given subscription ID.

[Android.Runtime.Register("createForSubscriptionId", "(I)Landroid/telephony/TelephonyManager;", "GetCreateForSubscriptionId_IHandler", ApiSince=24)]
public virtual Android.Telephony.TelephonyManager? CreateForSubscriptionId (int subId);
[<Android.Runtime.Register("createForSubscriptionId", "(I)Landroid/telephony/TelephonyManager;", "GetCreateForSubscriptionId_IHandler", ApiSince=24)>]
abstract member CreateForSubscriptionId : int -> Android.Telephony.TelephonyManager
override this.CreateForSubscriptionId : int -> Android.Telephony.TelephonyManager

Parameters

subId
Int32

Returns

a TelephonyManager that uses the given subId for all calls.

Attributes

Remarks

Create a new TelephonyManager object pinned to the given subscription ID.

Java documentation for android.telephony.TelephonyManager.createForSubscriptionId(int).

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