# Channel.Builder

Artifact: [androidx.tvprovider:tvprovider](https://developer.android.com/jetpack/androidx/releases/tvprovider) [View Source](https://cs.android.com/search?q=file:androidx/tvprovider/media/tv/Channel.java+class:androidx.tvprovider.media.tv.Channel.Builder) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/tvprovider#1.1.0)

*** ** * ** ***

<br />

```
class Channel.Builder
```

<br />

*** ** * ** ***

The builder class that makes it easy to chain setters to create a `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel` object.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#Builder()()` |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#Builder(androidx.tvprovider.media.tv.Channel)(other: https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel!)` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#build()()` Takes the values of the Builder object and creates a Channel object. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setAppLinkColor(int)(appLinkColor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the background color of the App Linking card. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setAppLinkIconUri(android.net.Uri)(appLinkIconUri: https://developer.android.com/reference/android/net/Uri.html!)` Sets the icon to be displayed next to the text of the App Linking card. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setAppLinkIntent(android.content.Intent)(appLinkIntent: https://developer.android.com/reference/android/content/Intent.html!)` Sets the App Linking Intent. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setAppLinkIntentUri(android.net.Uri)(appLinkIntentUri: https://developer.android.com/reference/android/net/Uri.html!)` Sets the App Linking Intent. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setAppLinkPosterArtUri(android.net.Uri)(appLinkPosterArtUri: https://developer.android.com/reference/android/net/Uri.html!)` Sets the background image of the App Linking card. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setAppLinkText(java.lang.String)(appLinkText: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Sets the text to be displayed in the App Linking card. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setConfigurationDisplayOrder(int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the configuration display order for this channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setDescription(java.lang.String)(description: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Sets the description of the Channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setDisplayName(java.lang.String)(displayName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Sets the name to be displayed for the Channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setDisplayNumber(java.lang.String)(displayNumber: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Sets the display number of the Channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setGlobalContentId(java.lang.String)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Sets the global content ID for this channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setInputId(java.lang.String)(inputId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Sets the input id of the Channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setInternalProviderData(byte[])(internalProviderData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>!)` Sets the internal provider data of the channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setInternalProviderData(java.lang.String)(internalProviderData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Sets the internal provider data of the channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setInternalProviderFlag1(long)(flag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the internal provider flag1 for the channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setInternalProviderFlag2(long)(flag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the internal provider flag2 for the channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setInternalProviderFlag3(long)(flag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the internal provider flag3 for the channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setInternalProviderFlag4(long)(flag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the internal provider flag4 for the channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setInternalProviderId(java.lang.String)(internalProviderId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Sets the internal provider ID for the channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setNetworkAffiliation(java.lang.String)(networkAffiliation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Sets the network name for the channel, which may be different from its display name. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setOriginalNetworkId(int)(originalNetworkId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the original network id of the Channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setSearchable(boolean)(searchable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Sets whether this channel can be searched for in other applications. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setServiceId(int)(serviceId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the service id of the Channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setServiceType(java.lang.String)(serviceType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Sets the type of content that will appear on this channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setSystemChannelKey(java.lang.String)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Sets the system channel key for this channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setTransient(boolean)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Sets whether this channel is transient or not. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setTransportStreamId(int)(transportStreamId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the transport stream id of the Channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setType(java.lang.String)(type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Sets the broadcast standard of the Channel. |
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder#setVideoFormat(java.lang.String)(videoFormat: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Sets the video format of the Channel. |

## Public constructors

### Builder

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

```
Builder()
```

### Builder

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

```
Builder(other: Channel!)
```

## Public functions

### build

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

```
fun build(): Channel!
```

Takes the values of the Builder object and creates a Channel object.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel!` | Channel object with values from the Builder. |

### setAppLinkColor

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

```
fun setAppLinkColor(appLinkColor: Int): Channel.Builder!
```

Sets the background color of the App Linking card.

| Parameters |
|---|---|
| `appLinkColor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_APP_LINK_COLOR()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setAppLinkIconUri

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

```
fun setAppLinkIconUri(appLinkIconUri: Uri!): Channel.Builder!
```

Sets the icon to be displayed next to the text of the App Linking card.

| Parameters |
|---|---|
| `appLinkIconUri: https://developer.android.com/reference/android/net/Uri.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_APP_LINK_ICON_URI()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setAppLinkIntent

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

```
fun setAppLinkIntent(appLinkIntent: Intent!): Channel.Builder!
```

Sets the App Linking Intent.

| Parameters |
|---|---|
| `appLinkIntent: https://developer.android.com/reference/android/content/Intent.html!` | The Intent to be executed when the App Linking card is selected |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setAppLinkIntentUri

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

```
fun setAppLinkIntentUri(appLinkIntentUri: Uri!): Channel.Builder!
```

Sets the App Linking Intent.

| Parameters |
|---|---|
| `appLinkIntentUri: https://developer.android.com/reference/android/net/Uri.html!` | The Intent that should be executed when the App Linking card is selected. Use the method toUri(Intent.URI_INTENT_SCHEME) on your Intent to turn it into a String. See `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_APP_LINK_INTENT_URI()`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setAppLinkPosterArtUri

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

```
fun setAppLinkPosterArtUri(appLinkPosterArtUri: Uri!): Channel.Builder!
```

Sets the background image of the App Linking card.

| Parameters |
|---|---|
| `appLinkPosterArtUri: https://developer.android.com/reference/android/net/Uri.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_APP_LINK_POSTER_ART_URI()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setAppLinkText

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

```
fun setAppLinkText(appLinkText: String!): Channel.Builder!
```

Sets the text to be displayed in the App Linking card.

| Parameters |
|---|---|
| `appLinkText: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_APP_LINK_TEXT()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setConfigurationDisplayOrder

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

```
fun setConfigurationDisplayOrder(value: Int): Channel.Builder!
```

Sets the configuration display order for this channel. This value will be used to order channels within the configure channels menu.

| Parameters |
|---|---|
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_CONFIGURATION_DISPLAY_ORDER()` for the channel |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setDescription

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

```
fun setDescription(description: String!): Channel.Builder!
```

Sets the description of the Channel.

| Parameters |
|---|---|
| `description: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_DESCRIPTION()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setDisplayName

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

```
fun setDisplayName(displayName: String!): Channel.Builder!
```

Sets the name to be displayed for the Channel.

| Parameters |
|---|---|
| `displayName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_DISPLAY_NAME()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setDisplayNumber

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

```
fun setDisplayNumber(displayNumber: String!): Channel.Builder!
```

Sets the display number of the Channel.

| Parameters |
|---|---|
| `displayNumber: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_DISPLAY_NUMBER()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setGlobalContentId

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

```
fun setGlobalContentId(value: String): Channel.Builder
```

Sets the global content ID for this channel.

| Parameters |
|---|---|
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_GLOBAL_CONTENT_ID()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder` | This Builder object to allow for chaining of calls to builder methods. |

### setInputId

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

```
fun setInputId(inputId: String!): Channel.Builder!
```

Sets the input id of the Channel.

| Parameters |
|---|---|
| `inputId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_INPUT_ID()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setInternalProviderData

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

```
fun setInternalProviderData(internalProviderData: ByteArray<Byte>!): Channel.Builder!
```

Sets the internal provider data of the channel.

| Parameters |
|---|---|
| `internalProviderData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_INTERNAL_PROVIDER_DATA()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setInternalProviderData

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

```
fun setInternalProviderData(internalProviderData: String!): Channel.Builder!
```

Sets the internal provider data of the channel.

| Parameters |
|---|---|
| `internalProviderData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_INTERNAL_PROVIDER_DATA()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setInternalProviderFlag1

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

```
fun setInternalProviderFlag1(flag: Long): Channel.Builder!
```

Sets the internal provider flag1 for the channel.

| Parameters |
|---|---|
| `flag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_INTERNAL_PROVIDER_FLAG1()` for the program. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setInternalProviderFlag2

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

```
fun setInternalProviderFlag2(flag: Long): Channel.Builder!
```

Sets the internal provider flag2 for the channel.

| Parameters |
|---|---|
| `flag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_INTERNAL_PROVIDER_FLAG2()` for the program. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setInternalProviderFlag3

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

```
fun setInternalProviderFlag3(flag: Long): Channel.Builder!
```

Sets the internal provider flag3 for the channel.

| Parameters |
|---|---|
| `flag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_INTERNAL_PROVIDER_FLAG3()` for the program. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setInternalProviderFlag4

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

```
fun setInternalProviderFlag4(flag: Long): Channel.Builder!
```

Sets the internal provider flag4 for the channel.

| Parameters |
|---|---|
| `flag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_INTERNAL_PROVIDER_FLAG4()` for the program. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setInternalProviderId

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

```
fun setInternalProviderId(internalProviderId: String!): Channel.Builder!
```

Sets the internal provider ID for the channel.

| Parameters |
|---|---|
| `internalProviderId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_INTERNAL_PROVIDER_ID()` for the program. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setNetworkAffiliation

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

```
fun setNetworkAffiliation(networkAffiliation: String!): Channel.Builder!
```

Sets the network name for the channel, which may be different from its display name.

| Parameters |
|---|---|
| `networkAffiliation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_NETWORK_AFFILIATION()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setOriginalNetworkId

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

```
fun setOriginalNetworkId(originalNetworkId: Int): Channel.Builder!
```

Sets the original network id of the Channel.

| Parameters |
|---|---|
| `originalNetworkId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_ORIGINAL_NETWORK_ID()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setSearchable

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

```
fun setSearchable(searchable: Boolean): Channel.Builder!
```

Sets whether this channel can be searched for in other applications.

| Parameters |
|---|---|
| `searchable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_SEARCHABLE()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setServiceId

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

```
fun setServiceId(serviceId: Int): Channel.Builder!
```

Sets the service id of the Channel.

| Parameters |
|---|---|
| `serviceId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_SERVICE_ID()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setServiceType

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

```
fun setServiceType(serviceType: String!): Channel.Builder!
```

Sets the type of content that will appear on this channel. This could refer to the underlying broadcast standard or refer to `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#SERVICE_TYPE_AUDIO()`, `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#SERVICE_TYPE_AUDIO_VIDEO()`, or `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#SERVICE_TYPE_OTHER()`.

| Parameters |
|---|---|
| `serviceType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_SERVICE_TYPE()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setSystemChannelKey

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

```
fun setSystemChannelKey(value: String!): Channel.Builder!
```

Sets the system channel key for this channel. This identifier helps OEM differentiate among the app's channels. This identifier should be unique per channel for each app, and should be agreed between the app and the OEM. It is up to the OEM on how they use this identifier for customization purposes.

| Parameters |
|---|---|
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_SYSTEM_CHANNEL_KEY()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setTransient

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

```
fun setTransient(value: Boolean): Channel.Builder!
```

Sets whether this channel is transient or not.

| Parameters |
|---|---|
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_TRANSIENT()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setTransportStreamId

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

```
fun setTransportStreamId(transportStreamId: Int): Channel.Builder!
```

Sets the transport stream id of the Channel.

| Parameters |
|---|---|
| `transportStreamId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_TRANSPORT_STREAM_ID()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setType

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

```
fun setType(type: String!): Channel.Builder!
```

Sets the broadcast standard of the Channel.

| Parameters |
|---|---|
| `type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_TYPE()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |

### setVideoFormat

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

```
fun setVideoFormat(videoFormat: String!): Channel.Builder!
```

Sets the video format of the Channel.

| Parameters |
|---|---|
| `videoFormat: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The value of `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.Channels#COLUMN_VIDEO_FORMAT()` for the channel. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/Channel.Builder!` | This Builder object to allow for chaining of calls to builder methods. |