# Channel

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-tv-provider:28.0.0-alpha1  
Summary:[Nested Classes](https://developer.android.com/reference/android/support/media/tv/Channel#nestedclasses)\|[Methods](https://developer.android.com/reference/android/support/media/tv/Channel#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/media/tv/Channel#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/media/tv/Channel#)  

# Channel

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public

final

class
Channel
`  
`

extends Object


``


`

|---|----------------------------------|
| java.lang.Object                    ||
| ↳ | android.support.media.tv.Channel |

<br />

*** ** * ** ***

A convenience class to access[TvContractCompat.Channels](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels)entries in the system content provider.

This class makes it easy to insert or retrieve a channel from the system content provider, which is defined in[TvContractCompat](https://developer.android.com/reference/android/support/media/tv/TvContractCompat).

Usage example when inserting a channel:  

```
 Channel channel = new Channel.Builder()
         .setDisplayName("Channel Name")
         .setDescription("Channel description")
         .setType(Channels.TYPE_PREVIEW)
         // Set more attributes...
         .build();
 Uri channelUri = getContentResolver().insert(Channels.CONTENT_URI, channel.toContentValues());
 
```

Usage example when retrieving a channel:  

```
 Channel channel;
 try (Cursor cursor = resolver.query(channelUri, null, null, null, null)) {
     if (cursor != null && cursor.getCount() != 0) {
         cursor.moveToNext();
         channel = Channel.fromCursor(cursor);
     }
 }
 
```

Usage example when updating an existing channel:  

```
 Channel updatedChannel = new Channel.Builder(channel)
         .setDescription("New channel description")
         .build();
 getContentResolver().update(TvContractCompat.buildChannelUri(updatedChannel.getId()),
         updatedChannel.toContentValues(), null, null);
 
```

Usage example when deleting a channel:  

```
 getContentResolver().delete(
         TvContractCompat.buildChannelUri(existingChannel.getId()), null, null);
 
```

<br />

## Summary

|                                                                                                                            ### Nested classes                                                                                                                             ||
|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [Channel.Builder](https://developer.android.com/reference/android/support/media/tv/Channel.Builder) The builder class that makes it easy to chain setters to create a[Channel](https://developer.android.com/reference/android/support/media/tv/Channel)object. |

|                                                                                                                                                                                                                                                    ### Public methods                                                                                                                                                                                                                                                    ||
|------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` boolean`                                                                                     | ` `[equals](https://developer.android.com/reference/android/support/media/tv/Channel#equals(java.lang.Object))`(Object other) `                                                                                                                                                                                                                                                                                          |
| ` static `[Channel](https://developer.android.com/reference/android/support/media/tv/Channel)  | ` `[fromCursor](https://developer.android.com/reference/android/support/media/tv/Channel#fromCursor(android.database.Cursor))`(`[Cursor](https://developer.android.com/reference/android/database/Cursor.html)` cursor) ` Creates a Channel object from a cursor including the fields defined in[TvContractCompat.Channels](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels). |
| ` int`                                                                                         | ` `[getAppLinkColor](https://developer.android.com/reference/android/support/media/tv/Channel#getAppLinkColor())`() `                                                                                                                                                                                                                                                                                                    |
| ` `[Uri](https://developer.android.com/reference/android/net/Uri.html)                         | ` `[getAppLinkIconUri](https://developer.android.com/reference/android/support/media/tv/Channel#getAppLinkIconUri())`() `                                                                                                                                                                                                                                                                                                |
| ` `[Intent](https://developer.android.com/reference/android/content/Intent.html)               | ` `[getAppLinkIntent](https://developer.android.com/reference/android/support/media/tv/Channel#getAppLinkIntent())`() `                                                                                                                                                                                                                                                                                                  |
| ` `[Uri](https://developer.android.com/reference/android/net/Uri.html)                         | ` `[getAppLinkIntentUri](https://developer.android.com/reference/android/support/media/tv/Channel#getAppLinkIntentUri())`() `                                                                                                                                                                                                                                                                                            |
| ` `[Uri](https://developer.android.com/reference/android/net/Uri.html)                         | ` `[getAppLinkPosterArtUri](https://developer.android.com/reference/android/support/media/tv/Channel#getAppLinkPosterArtUri())`() `                                                                                                                                                                                                                                                                                      |
| ` String`                                                                                      | ` `[getAppLinkText](https://developer.android.com/reference/android/support/media/tv/Channel#getAppLinkText())`() `                                                                                                                                                                                                                                                                                                      |
| ` int`                                                                                         | ` `[getConfigurationDisplayOrder](https://developer.android.com/reference/android/support/media/tv/Channel#getConfigurationDisplayOrder())`() `                                                                                                                                                                                                                                                                          |
| ` String`                                                                                      | ` `[getDescription](https://developer.android.com/reference/android/support/media/tv/Channel#getDescription())`() `                                                                                                                                                                                                                                                                                                      |
| ` String`                                                                                      | ` `[getDisplayName](https://developer.android.com/reference/android/support/media/tv/Channel#getDisplayName())`() `                                                                                                                                                                                                                                                                                                      |
| ` String`                                                                                      | ` `[getDisplayNumber](https://developer.android.com/reference/android/support/media/tv/Channel#getDisplayNumber())`() `                                                                                                                                                                                                                                                                                                  |
| ` long`                                                                                        | ` `[getId](https://developer.android.com/reference/android/support/media/tv/Channel#getId())`() `                                                                                                                                                                                                                                                                                                                        |
| ` String`                                                                                      | ` `[getInputId](https://developer.android.com/reference/android/support/media/tv/Channel#getInputId())`() `                                                                                                                                                                                                                                                                                                              |
| ` byte[]`                                                                                      | ` `[getInternalProviderDataByteArray](https://developer.android.com/reference/android/support/media/tv/Channel#getInternalProviderDataByteArray())`() `                                                                                                                                                                                                                                                                  |
| ` Long`                                                                                        | ` `[getInternalProviderFlag1](https://developer.android.com/reference/android/support/media/tv/Channel#getInternalProviderFlag1())`() `                                                                                                                                                                                                                                                                                  |
| ` Long`                                                                                        | ` `[getInternalProviderFlag2](https://developer.android.com/reference/android/support/media/tv/Channel#getInternalProviderFlag2())`() `                                                                                                                                                                                                                                                                                  |
| ` Long`                                                                                        | ` `[getInternalProviderFlag3](https://developer.android.com/reference/android/support/media/tv/Channel#getInternalProviderFlag3())`() `                                                                                                                                                                                                                                                                                  |
| ` Long`                                                                                        | ` `[getInternalProviderFlag4](https://developer.android.com/reference/android/support/media/tv/Channel#getInternalProviderFlag4())`() `                                                                                                                                                                                                                                                                                  |
| ` String`                                                                                      | ` `[getInternalProviderId](https://developer.android.com/reference/android/support/media/tv/Channel#getInternalProviderId())`() `                                                                                                                                                                                                                                                                                        |
| ` String`                                                                                      | ` `[getNetworkAffiliation](https://developer.android.com/reference/android/support/media/tv/Channel#getNetworkAffiliation())`() `                                                                                                                                                                                                                                                                                        |
| ` int`                                                                                         | ` `[getOriginalNetworkId](https://developer.android.com/reference/android/support/media/tv/Channel#getOriginalNetworkId())`() `                                                                                                                                                                                                                                                                                          |
| ` String`                                                                                      | ` `[getPackageName](https://developer.android.com/reference/android/support/media/tv/Channel#getPackageName())`() `                                                                                                                                                                                                                                                                                                      |
| ` int`                                                                                         | ` `[getServiceId](https://developer.android.com/reference/android/support/media/tv/Channel#getServiceId())`() `                                                                                                                                                                                                                                                                                                          |
| ` String`                                                                                      | ` `[getServiceType](https://developer.android.com/reference/android/support/media/tv/Channel#getServiceType())`() `                                                                                                                                                                                                                                                                                                      |
| ` String`                                                                                      | ` `[getSystemChannelKey](https://developer.android.com/reference/android/support/media/tv/Channel#getSystemChannelKey())`() `                                                                                                                                                                                                                                                                                            |
| ` int`                                                                                         | ` `[getTransportStreamId](https://developer.android.com/reference/android/support/media/tv/Channel#getTransportStreamId())`() `                                                                                                                                                                                                                                                                                          |
| ` String`                                                                                      | ` `[getType](https://developer.android.com/reference/android/support/media/tv/Channel#getType())`() `                                                                                                                                                                                                                                                                                                                    |
| ` String`                                                                                      | ` `[getVideoFormat](https://developer.android.com/reference/android/support/media/tv/Channel#getVideoFormat())`() `                                                                                                                                                                                                                                                                                                      |
| ` int`                                                                                         | ` `[hashCode](https://developer.android.com/reference/android/support/media/tv/Channel#hashCode())`() `                                                                                                                                                                                                                                                                                                                  |
| ` boolean`                                                                                     | ` `[isBrowsable](https://developer.android.com/reference/android/support/media/tv/Channel#isBrowsable())`() `                                                                                                                                                                                                                                                                                                            |
| ` boolean`                                                                                     | ` `[isLocked](https://developer.android.com/reference/android/support/media/tv/Channel#isLocked())`() `                                                                                                                                                                                                                                                                                                                  |
| ` boolean`                                                                                     | ` `[isSearchable](https://developer.android.com/reference/android/support/media/tv/Channel#isSearchable())`() `                                                                                                                                                                                                                                                                                                          |
| ` boolean`                                                                                     | ` `[isTransient](https://developer.android.com/reference/android/support/media/tv/Channel#isTransient())`() `                                                                                                                                                                                                                                                                                                            |
| ` `[ContentValues](https://developer.android.com/reference/android/content/ContentValues.html) | ` `[toContentValues](https://developer.android.com/reference/android/support/media/tv/Channel#toContentValues())`() `                                                                                                                                                                                                                                                                                                    |
| ` String`                                                                                      | ` `[toString](https://developer.android.com/reference/android/support/media/tv/Channel#toString())`() `                                                                                                                                                                                                                                                                                                                  |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/media/tv/Channel#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public methods

### equals

```
boolean equals (Object other)
```

<br />

<br />

|        Parameters        ||
|---------|-----------------|
| `other` | `Object` <br /> |

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

### fromCursor

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Channel fromCursor (Cursor cursor)
```

Creates a Channel object from a cursor including the fields defined in[TvContractCompat.Channels](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels).

<br />

|                               Parameters                               ||
|----------|--------------------------------------------------------------|
| `cursor` | `Cursor`: A row from the TV Input Framework database. <br /> |

|                                                                   Returns                                                                    ||
|-------------------------------------------------------------------------------------|---------------------------------------------------------|
| [Channel](https://developer.android.com/reference/android/support/media/tv/Channel) | A channel with the values taken from the cursor. <br /> |

### getAppLinkColor

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getAppLinkColor ()
```

<br />

<br />

|                                                                                       Returns                                                                                       ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The value of[COLUMN_APP_LINK_COLOR](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_APP_LINK_COLOR)for the channel. <br /> |

### getAppLinkIconUri

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Uri getAppLinkIconUri ()
```

<br />

<br />

|                                                                                                                         Returns                                                                                                                         ||
|---------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html) | The value of[COLUMN_APP_LINK_ICON_URI](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_APP_LINK_ICON_URI)for the channel. <br /> |

### getAppLinkIntent

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Intent getAppLinkIntent ()
```

<br />

<br />

|                                                                                                                                Returns                                                                                                                                ||
|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Intent](https://developer.android.com/reference/android/content/Intent.html) | The value of[COLUMN_APP_LINK_INTENT_URI](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_APP_LINK_INTENT_URI)for the program. <br /> |

|         Throws          ||
|----------------------|---|
| `URISyntaxException` |   |

### getAppLinkIntentUri

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Uri getAppLinkIntentUri ()
```

<br />

<br />

|                                                                                                                           Returns                                                                                                                           ||
|---------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html) | The value of[COLUMN_APP_LINK_INTENT_URI](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_APP_LINK_INTENT_URI)for the channel. <br /> |

### getAppLinkPosterArtUri

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Uri getAppLinkPosterArtUri ()
```

<br />

<br />

|                                                                                                                               Returns                                                                                                                               ||
|---------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html) | The value of[COLUMN_APP_LINK_POSTER_ART_URI](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_APP_LINK_POSTER_ART_URI)for the channel. <br /> |

### getAppLinkText

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getAppLinkText ()
```

<br />

<br />

|                                                                                       Returns                                                                                        ||
|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | The value of[COLUMN_APP_LINK_TEXT](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_APP_LINK_TEXT)for the channel. <br /> |

### getConfigurationDisplayOrder

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getConfigurationDisplayOrder ()
```

<br />

<br />

|                                                                                                    Returns                                                                                                    ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The value of[COLUMN_CONFIGURATION_DISPLAY_ORDER](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_CONFIGURATION_DISPLAY_ORDER)for the channel. <br /> |

### getDescription

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getDescription ()
```

<br />

<br />

|                                                                                     Returns                                                                                      ||
|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | The value of[COLUMN_DESCRIPTION](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_DESCRIPTION)for the channel. <br /> |

### getDisplayName

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getDisplayName ()
```

<br />

<br />

|                                                                                      Returns                                                                                       ||
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | The value of[COLUMN_DISPLAY_NAME](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_DISPLAY_NAME)for the channel. <br /> |

### getDisplayNumber

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getDisplayNumber ()
```

<br />

<br />

|                                                                                        Returns                                                                                         ||
|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | The value of[COLUMN_DISPLAY_NUMBER](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_DISPLAY_NUMBER)for the channel. <br /> |

### getId

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
long getId ()
```

<br />

<br />

|                                                             Returns                                                             ||
|--------|-------------------------------------------------------------------------------------------------------------------------|
| `long` | The value of[_ID](https://developer.android.com/reference/android/provider/BaseColumns.html#_ID)for the channel. <br /> |

### getInputId

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getInputId ()
```

<br />

<br />

|                                                                                  Returns                                                                                   ||
|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | The value of[COLUMN_INPUT_ID](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_INPUT_ID)for the channel. <br /> |

### getInternalProviderDataByteArray

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
byte[] getInternalProviderDataByteArray ()
```

<br />

<br />

|                                                                                                Returns                                                                                                 ||
|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `byte[]` | The value of[COLUMN_INTERNAL_PROVIDER_DATA](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_INTERNAL_PROVIDER_DATA)for the channel. <br /> |

### getInternalProviderFlag1

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Long getInternalProviderFlag1 ()
```

<br />

<br />

|                                                                                                Returns                                                                                                 ||
|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `Long` | The value of[COLUMN_INTERNAL_PROVIDER_FLAG1](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_INTERNAL_PROVIDER_FLAG1)for the channel. <br /> |

### getInternalProviderFlag2

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Long getInternalProviderFlag2 ()
```

<br />

<br />

|                                                                                                Returns                                                                                                 ||
|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `Long` | The value of[COLUMN_INTERNAL_PROVIDER_FLAG2](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_INTERNAL_PROVIDER_FLAG2)for the channel. <br /> |

### getInternalProviderFlag3

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Long getInternalProviderFlag3 ()
```

<br />

<br />

|                                                                                                Returns                                                                                                 ||
|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `Long` | The value of[COLUMN_INTERNAL_PROVIDER_FLAG3](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_INTERNAL_PROVIDER_FLAG3)for the channel. <br /> |

### getInternalProviderFlag4

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Long getInternalProviderFlag4 ()
```

<br />

<br />

|                                                                                                Returns                                                                                                 ||
|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `Long` | The value of[COLUMN_INTERNAL_PROVIDER_FLAG4](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_INTERNAL_PROVIDER_FLAG4)for the channel. <br /> |

### getInternalProviderId

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getInternalProviderId ()
```

<br />

<br />

|                                                                                              Returns                                                                                               ||
|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | The value of[COLUMN_INTERNAL_PROVIDER_ID](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_INTERNAL_PROVIDER_ID)for the channel. <br /> |

### getNetworkAffiliation

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getNetworkAffiliation ()
```

<br />

<br />

|                                                                                             Returns                                                                                              ||
|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | The value of[COLUMN_NETWORK_AFFILIATION](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_NETWORK_AFFILIATION)for the channel. <br /> |

### getOriginalNetworkId

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getOriginalNetworkId ()
```

<br />

<br />

|                                                                                            Returns                                                                                            ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The value of[COLUMN_ORIGINAL_NETWORK_ID](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_ORIGINAL_NETWORK_ID)for the channel. <br /> |

### getPackageName

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getPackageName ()
```

<br />

<br />

|                                                                                         Returns                                                                                         ||
|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | The value of[COLUMN_PACKAGE_NAME](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.BaseTvColumns#COLUMN_PACKAGE_NAME)for the channel. <br /> |

### getServiceId

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getServiceId ()
```

<br />

<br />

|                                                                                   Returns                                                                                   ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The value of[COLUMN_SERVICE_ID](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_SERVICE_ID)for the channel. <br /> |

### getServiceType

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getServiceType ()
```

<br />

<br />

|                                                                                                                                                                                                                                                                                                    Returns                                                                                                                                                                                                                                                                                                     ||
|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | The value of[COLUMN_SERVICE_TYPE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_SERVICE_TYPE)for the channel. Returns[SERVICE_TYPE_AUDIO](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#SERVICE_TYPE_AUDIO),[SERVICE_TYPE_AUDIO_VIDEO](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#SERVICE_TYPE_AUDIO_VIDEO), or[SERVICE_TYPE_OTHER](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#SERVICE_TYPE_OTHER). |

### getSystemChannelKey

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getSystemChannelKey ()
```

<br />

<br />

|                                                                                            Returns                                                                                             ||
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | The value of[COLUMN_SYSTEM_CHANNEL_KEY](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_SYSTEM_CHANNEL_KEY)for the channel. <br /> |

### getTransportStreamId

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getTransportStreamId ()
```

<br />

<br />

|                                                                                            Returns                                                                                            ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The value of[COLUMN_TRANSPORT_STREAM_ID](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_TRANSPORT_STREAM_ID)for the channel. <br /> |

### getType

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getType ()
```

<br />

<br />

|                                                                              Returns                                                                               ||
|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | The value of[COLUMN_TYPE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_TYPE)for the channel. <br /> |

### getVideoFormat

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getVideoFormat ()
```

<br />

<br />

|                                                                                      Returns                                                                                       ||
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | The value of[COLUMN_VIDEO_FORMAT](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_VIDEO_FORMAT)for the channel. <br /> |

### hashCode

```
int hashCode ()
```

<br />

<br />

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

### isBrowsable

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isBrowsable ()
```

<br />

<br />

|                                                                                    Returns                                                                                    ||
|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | The value of[COLUMN_BROWSABLE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_BROWSABLE)for the channel. <br /> |

### isLocked

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isLocked ()
```

<br />

<br />

|                                                                                 Returns                                                                                 ||
|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | The value of[COLUMN_LOCKED](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_LOCKED)for the channel. <br /> |

### isSearchable

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isSearchable ()
```

<br />

<br />

|                                                                                     Returns                                                                                     ||
|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | The value of[COLUMN_SEARCHABLE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_SEARCHABLE)for the channel. <br /> |

### isTransient

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isTransient ()
```

<br />

<br />

|                                                                                    Returns                                                                                    ||
|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | The value of[COLUMN_TRANSIENT](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels#COLUMN_TRANSIENT)for the channel. <br /> |

### toContentValues

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
ContentValues toContentValues ()
```

<br />

<br />

|                                                                                                        Returns                                                                                                        ||
|---------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
| [ContentValues](https://developer.android.com/reference/android/content/ContentValues.html) | The fields of the Channel in the ContentValues format to be easily inserted into the TV Input Framework database. <br /> |

### toString

```
String toString ()
```

<br />

<br />

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

-

  ## Interfaces

  - [TvContractCompat.BaseTvColumns](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.BaseTvColumns)
-

  ## Classes

  - [Channel](https://developer.android.com/reference/android/support/media/tv/Channel)
  - [Channel.Builder](https://developer.android.com/reference/android/support/media/tv/Channel.Builder)
  - [ChannelLogoUtils](https://developer.android.com/reference/android/support/media/tv/ChannelLogoUtils)
  - [PreviewProgram](https://developer.android.com/reference/android/support/media/tv/PreviewProgram)
  - [PreviewProgram.Builder](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder)
  - [Program](https://developer.android.com/reference/android/support/media/tv/Program)
  - [Program.Builder](https://developer.android.com/reference/android/support/media/tv/Program.Builder)
  - [R](https://developer.android.com/reference/android/support/media/tv/R)
  - [R.attr](https://developer.android.com/reference/android/support/media/tv/R.attr)
  - [R.bool](https://developer.android.com/reference/android/support/media/tv/R.bool)
  - [R.color](https://developer.android.com/reference/android/support/media/tv/R.color)
  - [R.dimen](https://developer.android.com/reference/android/support/media/tv/R.dimen)
  - [R.drawable](https://developer.android.com/reference/android/support/media/tv/R.drawable)
  - [R.id](https://developer.android.com/reference/android/support/media/tv/R.id)
  - [R.integer](https://developer.android.com/reference/android/support/media/tv/R.integer)
  - [R.layout](https://developer.android.com/reference/android/support/media/tv/R.layout)
  - [R.string](https://developer.android.com/reference/android/support/media/tv/R.string)
  - [R.style](https://developer.android.com/reference/android/support/media/tv/R.style)
  - [R.styleable](https://developer.android.com/reference/android/support/media/tv/R.styleable)
  - [TvContractCompat](https://developer.android.com/reference/android/support/media/tv/TvContractCompat)
  - [TvContractCompat.Channels](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels)
  - [TvContractCompat.Channels.Logo](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels.Logo)
  - [TvContractCompat.PreviewPrograms](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms)
  - [TvContractCompat.Programs](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs)
  - [TvContractCompat.Programs.Genres](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs.Genres)
  - [TvContractCompat.RecordedPrograms](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.RecordedPrograms)
  - [TvContractCompat.WatchNextPrograms](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.WatchNextPrograms)
  - [WatchNextProgram](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram)
  - [WatchNextProgram.Builder](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram.Builder)