Udostępnij za pośrednictwem


SmsManager.DefaultSmsSubscriptionId Property

Definition

Get default sms subscription id.

public static int DefaultSmsSubscriptionId { [Android.Runtime.Register("getDefaultSmsSubscriptionId", "()I", "", ApiSince=22)] get; }
[<get: Android.Runtime.Register("getDefaultSmsSubscriptionId", "()I", "", ApiSince=22)>]
static member DefaultSmsSubscriptionId : int

Property Value

the user-defined default SMS subscription id, or the active subscription id if there's only one active subscription available, otherwise SubscriptionManager#INVALID_SUBSCRIPTION_ID.

Attributes

Remarks

Get default sms subscription id.

<p class="note"><strong>Note:</strong>This returns a value different from SubscriptionManager#getDefaultSmsSubscriptionId if the user has not chosen a default. In this case it returns the active subscription id if there's only one active subscription available.

Java documentation for android.telephony.SmsManager.getDefaultSmsSubscriptionId().

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