Package 

Interface ISubscriptionManagerCompat

    • 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.