Freigeben über


SmsManager.CreateForSubscriptionId(Int32) Method

Definition

Get the instance of the SmsManager associated with a particular subscription ID.

[Android.Runtime.Register("createForSubscriptionId", "(I)Landroid/telephony/SmsManager;", "", ApiSince=31)]
public Android.Telephony.SmsManager CreateForSubscriptionId (int subId);
[<Android.Runtime.Register("createForSubscriptionId", "(I)Landroid/telephony/SmsManager;", "", ApiSince=31)>]
member this.CreateForSubscriptionId : int -> Android.Telephony.SmsManager

Parameters

subId
Int32

an SMS subscription ID, typically accessed using SubscriptionManager

Returns

the instance of the SmsManager associated with subscription

Attributes

Remarks

Get the instance of the SmsManager associated with a particular subscription ID.

<p class="note"><strong>Note:</strong> Constructing an SmsManager in this manner will never cause an SMS disambiguation dialog to appear, unlike #getDefault(). </p>

Java documentation for android.telephony.SmsManager.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