SubscriptionManager.IsValidSubscriptionId(Int32) Method

Definition

Check if the supplied subscription ID is valid.

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

Parameters

subscriptionId
Int32

The subscription ID.

Returns

true if the supplied subscriptionId is valid; false otherwise.

Attributes

Remarks

Check if the supplied subscription ID is valid.

A valid subscription ID is not necessarily an active subscription ID (see #isActiveSubscriptionId(int)) or an usable subscription ID (see #isUsableSubscriptionId(int)). Unless specifically noted, subscription APIs work with a valid subscription ID.

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