# SubscriptionManagerCompat

# SubscriptionManagerCompat

Artifact:[androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core)  
[View Source](https://cs.android.com/search?q=file:androidx/core/telephony/SubscriptionManagerCompat.java+class:androidx.core.telephony.SubscriptionManagerCompat)  
Added in[1.6.0](https://developer.android.com/jetpack/androidx/releases/core#1.6.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/telephony/SubscriptionManagerCompat "View this page in Java")

<br />

```
@RequiresApi(value = 22)
class SubscriptionManagerCompat
```

<br />

*** ** * ** ***

Helper for accessing features in[SubscriptionManager](https://developer.android.com/reference/android/telephony/SubscriptionManager.html).

## Summary

|                                   ### Public functions                                    |
|-------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `java-static `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [getSlotIndex](https://developer.android.com/reference/kotlin/androidx/core/telephony/SubscriptionManagerCompat#getSlotIndex(int))`(subId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns the slot index associated with the subscription id. |

## Public functions

### getSlotIndex

Added in[1.6.0](https://developer.android.com/jetpack/androidx/releases/core#1.6.0)  

```
java-static fun getSlotIndex(subId: Int): Int
```

Returns the slot index associated with the subscription id.