SubscriptionManager.ActiveDataSubscriptionId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get active data subscription id.
public static int ActiveDataSubscriptionId { [Android.Runtime.Register("getActiveDataSubscriptionId", "()I", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getActiveDataSubscriptionId", "()I", "", ApiSince=30)>]
static member ActiveDataSubscriptionId : int
Property Value
Active data subscription id if any is chosen, or #INVALID_SUBSCRIPTION_ID
if
not.
- Attributes
Remarks
Get active data subscription id. Active data subscription refers to the subscription currently chosen to provide cellular internet connection to the user. This may be different from #getDefaultDataSubscriptionId()
.
Java documentation for android.telephony.SubscriptionManager.getActiveDataSubscriptionId()
.
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.