-
public interface ISubscriptionManagerCompat
-
-
Method Summary
Modifier and Type Method Description abstract List<Integer>getActiveSubscriptionIds()Retrieves all unique ids of active subscriptions. abstract List<SubscribedNetwork>getActiveSubscriptions()Retrieves all unique ids of active subscriptions and PLMNs that are currently in useBy active is meant that: SIM is inserted and ready to be used
eSIM is activated
-
-
Method Detail
-
getActiveSubscriptionIds
@RequiresPermission(allOf = {android.permission.READ_PHONE_STATE, android.permission.ACCESS_COARSE_LOCATION}) abstract List<Integer> getActiveSubscriptionIds()
Retrieves all unique ids of active subscriptions.
By active is meant that:
SIM is inserted and ready to be used
eSIM is activated
Resulting list is never empty, in case if subscription id is unknown or unsupported on current Android version Int.MAX_VALUE is the only value in the list.
-
getActiveSubscriptions
@RequiresPermission(allOf = {android.permission.READ_PHONE_STATE, android.permission.ACCESS_COARSE_LOCATION}) abstract List<SubscribedNetwork> getActiveSubscriptions()
Retrieves all unique ids of active subscriptions and PLMNs that are currently in use
By active is meant that:
SIM is inserted and ready to be used
eSIM is activated
Resulting list is never empty, in case if subscription is unknown or unsupported on current Android version one SubscribedNetwork with SubscribedNetwork.subscriptionId equal to Int.MAX_VALUE and SubscribedNetwork.network == null is the only value in the list.
-
-
-