Example usage for Java android.telephony SubscriptionManager fields, constructors, methods, implement or subclass
The text is from its open source code.
int | INVALID_SUBSCRIPTION_ID An invalid subscription identifier |
int | SIM_NOT_INSERTED |
int | DATA_ROAMING_ENABLE Indicates that data roaming is enabled for a subscription |
SubscriptionManager | from(Context context) |
SubscriptionInfo | getActiveSubscriptionInfo(int subId) Get the active SubscriptionInfo with the input subId. |
int | getActiveSubscriptionInfoCount() Requires Permission: android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE or that the calling app has carrier privileges (see TelephonyManager#hasCarrierPrivileges ). |
int | getActiveSubscriptionInfoCountMax() |
List | getActiveSubscriptionInfoList() Get the SubscriptionInfo(s) of the currently active SIM(s). |
int | getDefaultDataSubscriptionId() Returns the system's default data subscription id. |
int | getDefaultSmsSubscriptionId() Returns the system's default SMS subscription id. |
int | getDefaultVoiceSubscriptionId() Returns the system's default voice subscription id. |
int | getPhoneId(int subId) |
boolean | isNetworkRoaming(int subId) Returns true if the device is considered roaming on the current network for a subscription. |
boolean | isUsableSubIdValue(int subId) |
void | removeOnSubscriptionsChangedListener(OnSubscriptionsChangedListener listener) Unregister the OnSubscriptionsChangedListener . |