added in version 26.1.0
belongs to Maven artifact com.android.support:support-tv-provider:28.0.0-alpha1

Channel.Builder

public static final class Channel.Builder
extends Object

java.lang.Object
   ↳ android.support.media.tv.Channel.Builder


The builder class that makes it easy to chain setters to create a Channel object.

Summary

Public constructors

Channel.Builder()
Channel.Builder(Channel other)

Public methods

Channel build()

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

Channel.Builder setAppLinkColor(int appLinkColor)

Sets the background color of the App Linking card.

Channel.Builder setAppLinkIconUri(Uri appLinkIconUri)

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

Channel.Builder setAppLinkIntent(Intent appLinkIntent)

Sets the App Linking Intent.

Channel.Builder setAppLinkIntentUri(Uri appLinkIntentUri)

Sets the App Linking Intent.

Channel.Builder setAppLinkPosterArtUri(Uri appLinkPosterArtUri)

Sets the background image of the App Linking card.

Channel.Builder setAppLinkText(String appLinkText)

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

Channel.Builder setConfigurationDisplayOrder(int value)

Sets the configuration display order for this channel.

Channel.Builder setDescription(String description)

Sets the description of the Channel.

Channel.Builder setDisplayName(String displayName)

Sets the name to be displayed for the Channel.

Channel.Builder setDisplayNumber(String displayNumber)

Sets the display number of the Channel.

Channel.Builder setInputId(String inputId)

Sets the input id of the Channel.

Channel.Builder setInternalProviderData(byte[] internalProviderData)

Sets the internal provider data of the channel.

Channel.Builder setInternalProviderData(String internalProviderData)

Sets the internal provider data of the channel.

Channel.Builder setInternalProviderFlag1(long flag)

Sets the internal provider flag1 for the channel.

Channel.Builder setInternalProviderFlag2(long flag)

Sets the internal provider flag2 for the channel.

Channel.Builder setInternalProviderFlag3(long flag)

Sets the internal provider flag3 for the channel.