Share via


SmsManager.GetSmsManagerForSubscriptionId(Int32) Method

Definition

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

[Android.Runtime.Register("getSmsManagerForSubscriptionId", "(I)Landroid/telephony/SmsManager;", "", ApiSince=22)]
public static Android.Telephony.SmsManager? GetSmsManagerForSubscriptionId (int subId);
[<Android.Runtime.Register("getSmsManagerForSubscriptionId", "(I)Landroid/telephony/SmsManager;", "", ApiSince=22)>]
static member GetSmsManagerForSubscriptionId : 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>

This member is deprecated. Use Context#getSystemService Context.getSystemService(SmsManager.class) .#createForSubscriptionId createForSubscriptionId(subId) instead

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