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

# Builder

*** ** * ** ***

```
class Builder
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.telephony.SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#) |

Builder for a `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan`.

## Summary

| Public methods ||
|---|---|
| open [SubscriptionPlan](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan)! | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#build()()` <br /> |
| open static [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#) | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#createNonrecurring(java.time.Period)(duration: https://developer.android.com/reference/kotlin/java/time/Period.html#)` Start defining a template for a non-recurring `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan` with a specific duration. |
| open static [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#)! | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#createNonrecurring(java.time.ZonedDateTime,%20java.time.ZonedDateTime)(start: https://developer.android.com/reference/kotlin/java/time/ZonedDateTime.html#!, end: https://developer.android.com/reference/kotlin/java/time/ZonedDateTime.html#!)` Start defining a `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan` that covers a very specific window of time, and never automatically recurs. |
| open static [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#)! | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#createRecurring(java.time.ZonedDateTime,%20java.time.Period)(start: https://developer.android.com/reference/kotlin/java/time/ZonedDateTime.html#!, period: https://developer.android.com/reference/kotlin/java/time/Period.html#!)` Start defining a `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan` that starts at a specific time, and automatically recurs after each specific period of time, repeating indefinitely. |
| open [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#) | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#resetNetworkTypes()()` Reset any network types that were set with `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setNetworkTypes(kotlin.IntArray)`. |
| open [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#)! | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setDataLimit(kotlin.Long,%20kotlin.Int)(dataLimitBytes: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html, dataLimitBehavior: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Set the usage threshold at which data access changes. |
| open [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#)! | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setDataUsage(kotlin.Long,%20kotlin.Long)(dataUsageBytes: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html, dataUsageTime: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` Set a snapshot of currently known mobile data usage. |
| open [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#) | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setDataUsageResetTime(java.time.ZonedDateTime)(dataUsageResetTime: https://developer.android.com/reference/kotlin/java/time/ZonedDateTime.html#?)` Sets the time when the data usage allowance will reset. |
| open [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#) | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setId(kotlin.Int)(id: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Sets the unique integer identifier for this subscription plan. |
| open [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#) | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setNetworkTypes(kotlin.IntArray)(networkTypes: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)` Set the network types this SubscriptionPlan applies to. |
| open [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#) | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setStreamingAppMaxDownlinkKbps(kotlin.Long)(downlinkKbps: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` Sets the maximum downstream bitrate for streaming applications on this subscription plan, in Kilobits per second (Kbps) defined in GSMA TS. |
| open [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#) | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setStreamingAppMaxUplinkKbps(kotlin.Long)(uplinkKbps: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` Sets the maximum upstream bitrate for streaming applications on this subscription plan, in Kilobits per second (Kbps) defined in GSMA TS. |
| open [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#) | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setSubscriptionStatus(kotlin.Int)(subscriptionStatus: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Set the subscription status. |
| open [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#)! | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setSummary(kotlin.CharSequence)(summary: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html?)` Sets a brief, human-readable summary of the subscription plan. |
| open [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#)! | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setTitle(kotlin.CharSequence)(title: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html?)` Sets a user-visible title for this plan. |
| open [SubscriptionPlan.Builder](https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#) | `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setTypes(kotlin.IntArray)(types: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)` Set the types of this subscription plan. |

## Public methods

### build

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

```
open fun build(): SubscriptionPlan!
```

### createNonrecurring

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

```
open static fun createNonrecurring(duration: Period): SubscriptionPlan.Builder
```

Start defining a template for a non-recurring `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan` with a specific duration.

This is useful for describing fixed-duration plans that users can enroll in, such as a travel pass or a one-time data package. The actual start and end dates are determined upon enrollment.

Plans created with this builder should be marked with `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setSubscriptionStatus(kotlin.Int)` and a status of `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#SUBSCRIPTION_STATUS_INACTIVE:kotlin.Int`.

| Parameters ||
|---|---|
| `duration` | [Period](https://developer.android.com/reference/kotlin/java/time/Period.html#): The total duration of the plan once activated (e.g., Period.ofDays(15)). This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#` | A `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#` instance for a non-recurring plan template. This value cannot be `null`. |

### createNonrecurring

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

```
open static fun createNonrecurring(
    start: ZonedDateTime!, 
    end: ZonedDateTime!
): SubscriptionPlan.Builder!
```

Start defining a `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan` that covers a very specific window of time, and never automatically recurs.

| Parameters ||
|---|---|
| `start` | [ZonedDateTime](https://developer.android.com/reference/kotlin/java/time/ZonedDateTime.html#)!: The exact time at which the plan starts. |
| `end` | [ZonedDateTime](https://developer.android.com/reference/kotlin/java/time/ZonedDateTime.html#)!: The exact time at which the plan ends. |

### createRecurring

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

```
open static fun createRecurring(
    start: ZonedDateTime!, 
    period: Period!
): SubscriptionPlan.Builder!
```

Start defining a `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan` that starts at a specific time, and automatically recurs after each specific period of time, repeating indefinitely.

When the given period is set to exactly one month, the plan will always recur on the day of the month defined by `https://developer.android.com/reference/kotlin/java/time/ZonedDateTime.html#getDayOfMonth()`. When a particular month ends before this day, the plan will recur on the last possible instant of that month.

| Parameters ||
|---|---|
| `start` | [ZonedDateTime](https://developer.android.com/reference/kotlin/java/time/ZonedDateTime.html#)!: The exact time at which the plan starts. |
| `period` | [Period](https://developer.android.com/reference/kotlin/java/time/Period.html#)!: The period after which the plan automatically recurs. |

### resetNetworkTypes

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

```
open fun resetNetworkTypes(): SubscriptionPlan.Builder
```

Reset any network types that were set with `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setNetworkTypes(kotlin.IntArray)`. This will make the SubscriptionPlan apply to all network types.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#` | This value cannot be `null`. |

### setDataLimit

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

```
open fun setDataLimit(
    dataLimitBytes: Long, 
    dataLimitBehavior: Int
): SubscriptionPlan.Builder!
```

Set the usage threshold at which data access changes.

| Parameters ||
|---|---|
| `dataLimitBytes` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): the usage threshold at which data access changes. Value is a non-negative number of bytes. |
| `dataLimitBehavior` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the behavior of data access when usage reaches the threshold. Value is one of the following: - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#LIMIT_BEHAVIOR_UNKNOWN:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#LIMIT_BEHAVIOR_DISABLED:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#LIMIT_BEHAVIOR_BILLED:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#LIMIT_BEHAVIOR_THROTTLED:kotlin.Int` |

### setDataUsage

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

```
open fun setDataUsage(
    dataUsageBytes: Long, 
    dataUsageTime: Long
): SubscriptionPlan.Builder!
```

Set a snapshot of currently known mobile data usage.

| Parameters ||
|---|---|
| `dataUsageBytes` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): the currently known mobile data usage. Value is a non-negative number of bytes. |
| `dataUsageTime` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): the time at which this snapshot was valid. Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z. |

### setDataUsageResetTime

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

```
open fun setDataUsageResetTime(dataUsageResetTime: ZonedDateTime?): SubscriptionPlan.Builder
```

Sets the time when the data usage allowance will reset.

This is particularly relevant for plans with a daily data allowance, as it specifies the exact moment (e.g., midnight in a specific timezone) when the usage for the next 24-hour will reset. For other types of plans, this may not be applicable.

The value provided for `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#setDataUsage(kotlin.Long,%20kotlin.Long)` should reflect the data consumed since the last reset time.

| Parameters ||
|---|---|
| `dataUsageResetTime` | [ZonedDateTime](https://developer.android.com/reference/kotlin/java/time/ZonedDateTime.html#)?: The data usage reset time, or `null` if this information is not available or not applicable to the plan. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#` | This value cannot be `null`. |

### setId

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

```
open fun setId(id: Int): SubscriptionPlan.Builder
```

Sets the unique integer identifier for this subscription plan.

This ID is provided by the carrier and can be used to uniquely identify this plan, particularly when interacting with entitlement server for enrolling.

| Parameters ||
|---|---|
| `id` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The unique integer integer identifier for the plan, or `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#UNSPECIFIED_ID:kotlin.Int` to clear it. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#` | The same `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#` instance to continue building the plan. This value cannot be `null`. |

### setNetworkTypes

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

```
open fun setNetworkTypes(networkTypes: IntArray): SubscriptionPlan.Builder
```

Set the network types this SubscriptionPlan applies to. By default the plan will apply to all network types. An empty array means this plan applies to no network types.

| Parameters ||
|---|---|
| `networkTypes` | [IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html): an array of all network types that apply to this plan. This value cannot be `null`. Value is one of the following: - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_UNKNOWN:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_GPRS:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_EDGE:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_UMTS:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_CDMA:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_EVDO_0:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_EVDO_A:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_1xRTT:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_HSDPA:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_HSUPA:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_HSPA:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_IDEN:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_EVDO_B:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_LTE:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_EHRPD:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_HSPAP:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_GSM:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_TD_SCDMA:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_IWLAN:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#NETWORK_TYPE_NR:kotlin.Int` |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#` | This value cannot be `null`. |

**See Also**

### setStreamingAppMaxDownlinkKbps

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

```
open fun setStreamingAppMaxDownlinkKbps(downlinkKbps: Long): SubscriptionPlan.Builder
```

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

| Parameters ||
|---|---|
| `downlinkKbps` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): The maximum downstream bandwidth in Kbps. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#` | This value cannot be `null`. |

### setStreamingAppMaxUplinkKbps

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

```
open fun setStreamingAppMaxUplinkKbps(uplinkKbps: Long): SubscriptionPlan.Builder
```

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

| Parameters ||
|---|---|
| `uplinkKbps` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): The maximum upstream bitrate in Kbps. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#` | This value cannot be `null`. |

### setSubscriptionStatus

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

```
open fun setSubscriptionStatus(subscriptionStatus: Int): SubscriptionPlan.Builder
```

Set the subscription status.

This indicates the current state of the subscription, such as whether it is active, suspended, or in a trial period. This status provides context on the plan's availability and can be used to inform the user about their subscription's lifecycle.

| Parameters ||
|---|---|
| `subscriptionStatus` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the current subscription status. Value is one of the following: - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#SUBSCRIPTION_STATUS_UNKNOWN:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#SUBSCRIPTION_STATUS_ACTIVE:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#SUBSCRIPTION_STATUS_INACTIVE:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#SUBSCRIPTION_STATUS_TRIAL:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#SUBSCRIPTION_STATUS_SUSPENDED:kotlin.Int` |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#` | This value cannot be `null`. |

### setSummary

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

```
open fun setSummary(summary: CharSequence?): SubscriptionPlan.Builder!
```

Sets a brief, human-readable summary of the subscription plan.

This could include details about the plan's features, such as "10GB of high-speed data" or "Unlimited talk and text". This summary is intended for display to the user.

| Parameters ||
|---|---|
| `summary` | [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)?: A short, user-friendly summary of the plan, or `null` to clear it. |

### setTitle

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

```
open fun setTitle(title: CharSequence?): SubscriptionPlan.Builder!
```

Sets a user-visible title for this plan.

This title is provided by the carrier to identify the subscription plan, for example, "Unlimited+" or "Family plan". It is intended for display to the user.

| Parameters ||
|---|---|
| `title` | [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)?: The title of the plan. This value may be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#!` | The same `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#` instance to continue building the plan. |

### setTypes

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

```
open fun setTypes(types: IntArray): SubscriptionPlan.Builder
```

Set the types of this subscription plan. A plan can have multiple types, and this method will return all that are applicable. For example, a plan could be both a cellular plan and a postpaid plan.

| Parameters ||
|---|---|
| `types` | [IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html): This value cannot be `null`. Value is one of the following: - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_CELLULAR:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_SATELLITE:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_IOT:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_POSTPAID:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_PREPAID:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_DATA_ONLY:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_FAMILY:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_BUSINESS:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_ROAMING:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_TETHERING:kotlin.Int` |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan.Builder#` | An array containing the applicable `PLAN_TYPE_` constants. This value cannot be `null`. |

**See Also**

- `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_CELLULAR:kotlin.Int`
- `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_SATELLITE:kotlin.Int`
- `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_IOT:kotlin.Int`
- `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_POSTPAID:kotlin.Int`
- `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_PREPAID:kotlin.Int`
- `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_DATA_ONLY:kotlin.Int`
- `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_FAMILY:kotlin.Int`
- `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_BUSINESS:kotlin.Int`
- `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_ROAMING:kotlin.Int`
- `https://developer.android.com/reference/kotlin/android/telephony/SubscriptionPlan#PLAN_TYPE_TETHERING:kotlin.Int`