Aracılığıyla paylaş


SubscriptionManager.DefaultSubscriptionId Property

Definition

Returns the system's default subscription id.

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

Property Value

the "system" default subscription id.

Attributes

Remarks

Returns the system's default subscription id.

For a voice capable device, it will return getDefaultVoiceSubscriptionId. For a data only device, it will return the getDefaultDataSubscriptionId. May return an INVALID_SUBSCRIPTION_ID on error.

Java documentation for android.telephony.SubscriptionManager.getDefaultSubscriptionId().

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