Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Constants](https://developer.android.com/reference/android/telephony/SubscriptionInfo#inhconstants) \| [Fields](https://developer.android.com/reference/android/telephony/SubscriptionInfo#lfields) \| [Methods](https://developer.android.com/reference/android/telephony/SubscriptionInfo#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/telephony/SubscriptionInfo#inhmethods)

# SubscriptionInfo

*** ** * ** ***

` public class SubscriptionInfo `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/android/os/Parcelable `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.telephony.SubscriptionInfo |

<br />

*** ** * ** ***

A Parcelable class for Subscription Information.

## Summary

### Inherited constants

From interface `https://developer.android.com/reference/android/os/Parcelable` `int` `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR`

Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor.
`int` `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`

Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`".

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/telephony/SubscriptionInfo>` | `https://developer.android.com/reference/android/telephony/SubscriptionInfo#CREATOR` <br /> |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/graphics/Bitmap` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#createIconBitmap(android.content.Context)(https://developer.android.com/reference/android/content/Context context) ` Creates and returns an icon `Bitmap` to represent this `SubscriptionInfo` in a user interface. |
| ` int` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` boolean` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object o) ` Indicates whether some other object is "equal to" this one. |
| ` int` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getCardId()() ` |
| ` int` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getCarrierId()() ` |
| ` https://developer.android.com/reference/java/lang/CharSequence` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getCarrierName()() ` |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getCountryIso()() ` |
| ` int` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getDataRoaming()() ` Whether user enables data roaming for this subscription or not. |
| ` https://developer.android.com/reference/java/lang/CharSequence` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getDisplayName()() ` |
| ` https://developer.android.com/reference/android/os/ParcelUuid` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getGroupUuid()() ` Used in scenarios where different subscriptions are bundled as a group. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getIccId()() ` Returns the ICC ID. |
| ` int` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getIconTint()() ` A highlight color to use in displaying information about this `PhoneAccount`. |
| ` int` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getMcc()() ` *This method was deprecated in API level 29. Use `https://developer.android.com/reference/android/telephony/SubscriptionInfo#getMccString()` instead.* |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getMccString()() ` |
| ` int` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getMnc()() ` *This method was deprecated in API level 29. Use `https://developer.android.com/reference/android/telephony/SubscriptionInfo#getMncString()` instead.* |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getMncString()() ` |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getNumber()() ` *This method was deprecated in API level 33. use `https://developer.android.com/reference/android/telephony/SubscriptionManager#getPhoneNumber(int)` instead, which takes a `https://developer.android.com/reference/android/telephony/SubscriptionInfo#getSubscriptionId()`.* |
| ` int` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getPortIndex()() ` |
| ` https://developer.android.com/reference/java/util/Set<https://developer.android.com/reference/java/lang/Integer>` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getServiceCapabilities()() ` Retrieves the service capabilities for the current subscription. |
| ` int` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getSimSlotIndex()() ` |
| ` long` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getStreamingAppMaxDownlinkKbps()() ` Returns the maximum downstream bitrate for streaming applications on this subscription plan, in Kilobits per second (Kbps) defined in GSMA TS.43 9.1.3. |
| ` long` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getStreamingAppMaxUplinkKbps()() ` Returns the maximum upstream bitrate for streaming applications on this subscription plan, in Kilobits per second (Kbps) defined in GSMA TS.43 9.1.3. |
| ` int` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getSubscriptionId()() ` |
| ` int` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getSubscriptionType()() ` This method returns the type of a subscription. |
| ` int` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#getUsageSetting()() ` Get the usage setting for this subscription. |
| ` int` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#hashCode()() ` Returns a hash code value for the object. |
| ` boolean` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#isEmbedded()() ` |
| ` boolean` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#isOnlyNonTerrestrialNetwork()() ` Check if the subscription is exclusively for non-terrestrial networks. |
| ` boolean` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#isOpportunistic()() ` An opportunistic subscription connects to a network that is limited in functionality and / or coverage. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#toString()() ` Returns a string representation of the object. |
| ` void` | ` https://developer.android.com/reference/android/telephony/SubscriptionInfo#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Flatten this object in to a Parcel. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.
From interface ` https://developer.android.com/reference/android/os/Parcelable ` ` abstract int` ` https://developer.android.com/reference/android/os/Parcelable#describeContents()() `

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
` abstract void` ` https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) `

Flatten this object in to a Parcel.

## Fields

### CREATOR

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Creator<SubscriptionInfo> CREATOR
```

<br />

<br />

## Public methods

### createIconBitmap

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Bitmap createIconBitmap (Context context)
```

Creates and returns an icon `Bitmap` to represent this `SubscriptionInfo` in a user interface.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: A `Context` to get the `DisplayMetrics`s from. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/Bitmap` | A bitmap icon for this `SubscriptionInfo`. <br /> |

### describeContents

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int describeContents ()
```

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`, the return value of this method must include the `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### equals

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean equals (Object o)
```

Indicates whether some other object is "equal to" this one.

The `equals` method implements an equivalence relation on non-null object references:

- It is *reflexive*: for any non-null reference value `x`, `x.equals(x)` should return `true`.
- It is *symmetric*: for any non-null reference values `x` and `y`, `x.equals(y)` should return `true` if and only if `y.equals(x)` returns `true`.
- It is *transitive*: for any non-null reference values `x`, `y`, and `z`, if `x.equals(y)` returns `true` and `y.equals(z)` returns `true`, then `x.equals(z)` should return `true`.
- It is *consistent*: for any non-null reference values `x` and `y`, multiple invocations of `x.equals(y)` consistently return `true` or consistently return `false`, provided no information used in `equals` comparisons on the objects is modified.
- For any non-null reference value `x`, `x.equals(null)` should return `false`.

An equivalence relation partitions the elements it operates on into *equivalence classes*; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

<br />

| Parameters ||
|---|---|
| `o` | `Object`: the reference object with which to compare. <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if this object is the same as the obj argument; `false` otherwise. <br /> |

### getCardId

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getCardId ()
```

<br />

<br />

| Returns ||
|---|---|
| `int` | The card ID of the SIM card which contains the subscription. <br /> |

**See also:**

- `https://developer.android.com/reference/android/telephony/UiccCardInfo#getCardId()`

### getCarrierId

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getCarrierId ()
```

<br />

<br />

| Returns ||
|---|---|
| `int` | The carrier id of this subscription carrier. <br /> |

**See also:**

- `https://developer.android.com/reference/android/telephony/TelephonyManager#getSimCarrierId()`

### getCarrierName

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public CharSequence getCarrierName ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence` | The name displayed to the user that identifies subscription provider name. This name is the SPN displayed in status bar and many other places. Can't be renamed by the user. <br /> |

**See also:**

- `https://developer.android.com/reference/android/telephony/SubscriptionInfo#getDisplayName()`

### getCountryIso

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getCountryIso ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The ISO country code. Empty if not available. <br /> |

### getDataRoaming

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getDataRoaming ()
```

Whether user enables data roaming for this subscription or not. Either `https://developer.android.com/reference/android/telephony/SubscriptionManager#DATA_ROAMING_ENABLE` or `https://developer.android.com/reference/android/telephony/SubscriptionManager#DATA_ROAMING_DISABLE`.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getDisplayName

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public CharSequence getDisplayName ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence` | The name displayed to the user that identifies this subscription. This name is used in Settings page and can be renamed by the user. <br /> |

**See also:**

- `https://developer.android.com/reference/android/telephony/SubscriptionInfo#getCarrierName()`

### getGroupUuid

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ParcelUuid getGroupUuid ()
```

Used in scenarios where different subscriptions are bundled as a group. It's typically a primary and an opportunistic subscription. (see `https://developer.android.com/reference/android/telephony/SubscriptionInfo#isOpportunistic()`) Such that those subscriptions will have some affiliated behaviors such as opportunistic subscription may be invisible to the user.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/os/ParcelUuid` | Group UUID a String of group UUID if it belongs to a group. Otherwise `null`. <br /> |

### getIccId

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getIccId ()
```

Returns the ICC ID. Starting with API level 29 Security Patch 2021-04-05, returns the ICC ID if the calling app has been granted the READ_PRIVILEGED_PHONE_STATE permission, has carrier privileges (see `https://developer.android.com/reference/android/telephony/TelephonyManager#hasCarrierPrivileges()`), or is a device owner or profile owner that has been granted the READ_PHONE_STATE permission. The profile owner is an app that owns a managed profile on the device; for more details see [Work profiles](https://developer.android.com/work/managed-profiles). Profile owner access is deprecated and will be removed in a future release.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the ICC ID, or an empty string if one of these requirements is not met <br /> |

### getIconTint

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getIconTint ()
```

A highlight color to use in displaying information about this `PhoneAccount`.

<br />

| Returns ||
|---|---|
| `int` | A hexadecimal color value. <br /> |

### getMcc

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getMcc ()
```

<br />

**This method was deprecated in API level 29.**   

Use `https://developer.android.com/reference/android/telephony/SubscriptionInfo#getMccString()` instead.

<br />

<br />

| Returns ||
|---|---|
| `int` | The mobile country code. <br /> |

### getMccString

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getMccString ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The mobile country code. This value may be `null`. <br /> |

### getMnc

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getMnc ()
```

<br />

**This method was deprecated in API level 29.**   

Use `https://developer.android.com/reference/android/telephony/SubscriptionInfo#getMncString()` instead.

<br />

<br />

| Returns ||
|---|---|
| `int` | The mobile network code. <br /> |

### getMncString

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getMncString ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The mobile network code. This value may be `null`. <br /> |

### getNumber

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getNumber ()
```

<br />

**This method was deprecated in API level 33.**   

use `https://developer.android.com/reference/android/telephony/SubscriptionManager#getPhoneNumber(int)` instead, which takes a `https://developer.android.com/reference/android/telephony/SubscriptionInfo#getSubscriptionId()`.

Returns the number of this subscription. Starting with API level 30, returns the number of this subscription if the calling app meets at least one of the following requirements:

- If the calling app's target SDK is API level 29 or lower and the app has been granted the READ_PHONE_STATE permission.
- If the calling app has been granted any of READ_PRIVILEGED_PHONE_STATE, READ_PHONE_NUMBERS, or READ_SMS.
- If the calling app has carrier privileges (see `https://developer.android.com/reference/android/telephony/TelephonyManager#hasCarrierPrivileges()`).
- If the calling app is the default SMS role holder.

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the number of this subscription, or an empty string if none of the requirements are met. <br /> |

### getPortIndex

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getPortIndex ()
```

<br />

<br />

| Returns ||
|---|---|
| `int` | The port index of the SIM card which contains the subscription. <br /> |

### getServiceCapabilities

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Set<Integer> getServiceCapabilities ()
```

Retrieves the service capabilities for the current subscription.

These capabilities are hint to system components and applications, allowing them to enhance user experience. For instance, a Dialer application can inform the user that the current subscription is incapable of making voice calls if the voice service is not available.

Correct usage of these service capabilities must also consider the device's overall service capabilities. For example, even if the subscription supports voice calls, a voice call might not be feasible on a device that only supports data services. To determine the device's capabilities for voice and SMS services, refer to `TelephonyManager#isDeviceVoiceCapable()` and `TelephonyManager#isDeviceSmsCapable()`.

Emergency service availability may not directly correlate with the subscription or device's general service capabilities. In some cases, emergency calls might be possible even if the subscription or device does not typically support voice services.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/Set<https://developer.android.com/reference/java/lang/Integer>` | A set of integer representing the subscription's service capabilities, defined by `SubscriptionManager#SERVICE_CAPABILITY_VOICE`, `SubscriptionManager#SERVICE_CAPABILITY_SMS` and `SubscriptionManager#SERVICE_CAPABILITY_DATA`. This value cannot be `null`. Value is one of the following: - `https://developer.android.com/reference/android/telephony/SubscriptionManager#SERVICE_CAPABILITY_VOICE` - `https://developer.android.com/reference/android/telephony/SubscriptionManager#SERVICE_CAPABILITY_SMS` - `https://developer.android.com/reference/android/telephony/SubscriptionManager#SERVICE_CAPABILITY_DATA` |

**See also:**

- `https://developer.android.com/reference/android/telephony/TelephonyManager#isDeviceVoiceCapable()`
- `https://developer.android.com/reference/android/telephony/TelephonyManager#isDeviceSmsCapable()`
- `https://developer.android.com/reference/android/telephony/CarrierConfigManager#KEY_CELLULAR_SERVICE_CAPABILITIES_INT_ARRAY`
- `https://developer.android.com/reference/android/telephony/SubscriptionManager#SERVICE_CAPABILITY_VOICE`
- `https://developer.android.com/reference/android/telephony/SubscriptionManager#SERVICE_CAPABILITY_SMS`
- `https://developer.android.com/reference/android/telephony/SubscriptionManager#SERVICE_CAPABILITY_DATA`

### getSimSlotIndex

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getSimSlotIndex ()
```

<br />

<br />

| Returns ||
|---|---|
| `int` | The index of the SIM slot that currently contains the subscription and not necessarily unique and maybe `https://developer.android.com/reference/android/telephony/SubscriptionManager#INVALID_SIM_SLOT_INDEX` if unknown or the subscription is inactive. <br /> |

### getStreamingAppMaxDownlinkKbps

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getStreamingAppMaxDownlinkKbps ()
```

Returns the maximum downstream bitrate for streaming applications on this subscription plan, in Kilobits per second (Kbps) defined in GSMA TS.43 9.1.3.

This value represents the data rate that the carrier has allocated for streaming applications. It can be used by streaming apps to select an appropriate media quality that matches the available bandwidth, helping to avoid buffering.

For example, a 2000 Kbps connection would be represented as `2000`.

<br />

| Returns ||
|---|---|
| `long` | The maximum downstream bandwidth for streaming in Kbps, or `https://developer.android.com/reference/android/telephony/SubscriptionPlan#BITRATE_UNKNOWN` if unknown or not applicable. <br /> |

### getStreamingAppMaxUplinkKbps

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getStreamingAppMaxUplinkKbps ()
```

Returns the maximum upstream bitrate for streaming applications on this subscription plan, in Kilobits per second (Kbps) defined in GSMA TS.43 9.1.3.

This value represents the data rate that the carrier has allocated for streaming applications to upload data. It can be used by streaming apps to select an appropriate media quality for outgoing streams, helping to avoid buffering or connection issues.

For example, a 1000 Kbps connection would be represented as `1000`.

<br />

| Returns ||
|---|---|
| `long` | The maximum upstream bitrate for streaming in Kbps, or `https://developer.android.com/reference/android/telephony/SubscriptionPlan#BITRATE_UNKNOWN` if unknown or not applicable. <br /> |

### getSubscriptionId

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getSubscriptionId ()
```

<br />

<br />

| Returns ||
|---|---|
| `int` | The subscription ID. <br /> |

### getSubscriptionType

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getSubscriptionType ()
```

This method returns the type of a subscription. It can be `https://developer.android.com/reference/android/telephony/SubscriptionManager#SUBSCRIPTION_TYPE_LOCAL_SIM` or `https://developer.android.com/reference/android/telephony/SubscriptionManager#SUBSCRIPTION_TYPE_REMOTE_SIM`.

<br />

| Returns ||
|---|---|
| `int` | The type of the subscription. Value is one of the following: - `https://developer.android.com/reference/android/telephony/SubscriptionManager#SUBSCRIPTION_TYPE_LOCAL_SIM` - `https://developer.android.com/reference/android/telephony/SubscriptionManager#SUBSCRIPTION_TYPE_REMOTE_SIM` |

### getUsageSetting

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getUsageSetting ()
```

Get the usage setting for this subscription.

<br />

| Returns ||
|---|---|
| `int` | The usage setting used for this subscription. Value is one of the following: - `https://developer.android.com/reference/android/telephony/SubscriptionManager#USAGE_SETTING_UNKNOWN` - `https://developer.android.com/reference/android/telephony/SubscriptionManager#USAGE_SETTING_DEFAULT` - `https://developer.android.com/reference/android/telephony/SubscriptionManager#USAGE_SETTING_VOICE_CENTRIC` - `https://developer.android.com/reference/android/telephony/SubscriptionManager#USAGE_SETTING_DATA_CENTRIC` |

### hashCode

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int hashCode ()
```

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by `https://developer.android.com/reference/java/util/HashMap`.

The general contract of `hashCode` is:

- Whenever it is invoked on the same object more than once during an execution of a Java application, the `hashCode` method must consistently return the same integer, provided no information used in `equals` comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
- If two objects are equal according to the `https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)` method, then calling the `hashCode` method on each of the two objects must produce the same integer result.
- It is *not* required that if two objects are unequal according to the `https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)` method, then calling the `hashCode` method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.

<br />

<br />

| Returns ||
|---|---|
| `int` | a hash code value for this object. <br /> |

### isEmbedded

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isEmbedded ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | `true` if the subscription is from eSIM. <br /> |

### isOnlyNonTerrestrialNetwork

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isOnlyNonTerrestrialNetwork ()
```

Check if the subscription is exclusively for non-terrestrial networks.

<br />

| Returns ||
|---|---|
| `boolean` | `true` if it is a non-terrestrial network subscription, `false` otherwise. <br /> |

### isOpportunistic

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isOpportunistic ()
```

An opportunistic subscription connects to a network that is limited in functionality and / or coverage.

<br />

| Returns ||
|---|---|
| `boolean` | Whether subscription is opportunistic. <br /> |

### toString

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> |

### writeToParcel

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void writeToParcel (Parcel dest, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

| Parameters ||
|---|---|
| `dest` | `Parcel`: The Parcel in which the object should be written. This value cannot be `null`. <br /> |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` |