Condividi tramite


SubscriptionManager.GetSlotIndex(Int32) Method

Definition

Get slotIndex associated with the subscription.

[Android.Runtime.Register("getSlotIndex", "(I)I", "", ApiSince=29)]
public static int GetSlotIndex (int subscriptionId);
[<Android.Runtime.Register("getSlotIndex", "(I)I", "", ApiSince=29)>]
static member GetSlotIndex : int -> int

Parameters

subscriptionId
Int32

the unique SubscriptionInfo index in database

Returns

slotIndex as a positive integer or #INVALID_SIM_SLOT_INDEX if the supplied subscriptionId doesn't have an associated slot index.

Attributes

Remarks

Get slotIndex associated with the subscription.

Java documentation for android.telephony.SubscriptionManager.getSlotIndex(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