Share via


SubscriptionManager.IsUsableSubscriptionId(Int32) Method

Definition

Check if the supplied subscription ID is usable.

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

Parameters

subscriptionId
Int32

the subscription ID

Returns

true if the subscription ID is usable; false otherwise.

Attributes

Remarks

Check if the supplied subscription ID is usable.

A usable subscription ID is a valid subscription ID, but not necessarily an active subscription ID (see #isActiveSubscriptionId(int)). Some subscription APIs require a usable subscription ID, and this is noted in their documentation; otherwise, a subscription ID does not need to be usable for subscription functions, only valid.

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