Builder
class Builder
kotlin.Any | |
↳ | androidx.tvprovider.media.tv.Channel.Builder |
The builder class that makes it easy to chain setters to create a Channel
object.
Summary
Public constructors | |
---|---|
<init>() |
|
Public methods | |
---|---|
Channel! |
build() Takes the values of the Builder object and creates a Channel object. |
Channel.Builder! |
setAppLinkColor(appLinkColor: Int) Sets the background color of the App Linking card. |
Channel.Builder! |
setAppLinkIconUri(appLinkIconUri: Uri!) Sets the icon to be displayed next to the text of the App Linking card. |
Channel.Builder! |
setAppLinkIntent(appLinkIntent: Intent!) Sets the App Linking Intent. |
Channel.Builder! |
setAppLinkIntentUri(appLinkIntentUri: Uri!) Sets the App Linking Intent. |
Channel.Builder! |
setAppLinkPosterArtUri(appLinkPosterArtUri: Uri!) Sets the background image of the App Linking card. |
Channel.Builder! |
setAppLinkText(appLinkText: String!) Sets the text to be displayed in the App Linking card. |
Channel.Builder! |
setConfigurationDisplayOrder(value: Int) Sets the configuration display order for this channel. |
Channel.Builder! |
setDescription(description: String!) Sets the description of the Channel. |
Channel.Builder! |
setDisplayName(displayName: String!) Sets the name to be displayed for the Channel. |
Channel.Builder! |
setDisplayNumber(displayNumber: String!) Sets the display number of the Channel. |
Channel.Builder |
setGlobalContentId(@NonNull value: String) Sets the global content ID for this channel. |
Channel.Builder! |
setInputId(inputId: String!) Sets the input id of the Channel. |
Channel.Builder! |
setInternalProviderData(internalProviderData: ByteArray!) Sets the internal provider data of the channel. |
Channel.Builder! |
setInternalProviderData(internalProviderData: String!) Sets the internal provider data of the channel. |
Channel.Builder! |
setInternalProviderFlag1(flag: Long) Sets the internal provider flag1 for the channel. |
Channel.Builder! |
setInternalProviderFlag2(flag: Long) Sets the internal provider flag2 for the channel. |
Channel.Builder! |
setInternalProviderFlag3(flag: Long) Sets the internal provider flag3 for the channel. |
Channel.Builder! |
setInternalProviderFlag4(flag: Long) Sets the internal provider flag4 for the channel. |
Channel.Builder! |
setInternalProviderId(internalProviderId: String!) Sets the internal provider ID for the channel. |
Channel.Builder! |
setNetworkAffiliation(networkAffiliation: String!) Sets the network name for the channel, which may be different from its display name. |
Channel.Builder! |
setOriginalNetworkId(originalNetworkId: Int) Sets the original network id of the Channel. |
Channel.Builder! |
setSearchable(searchable: Boolean) Sets whether this channel can be searched for in other applications. |
Channel.Builder! |
setServiceId(serviceId: Int) Sets the service id of the Channel. |
Channel.Builder! |
setServiceType(serviceType: String!) Sets the type of content that will appear on this channel. |
Channel.Builder! |
setSystemChannelKey(value: String!) Sets the system channel key for this channel. |
Channel.Builder! |
setTransient(value: Boolean) Sets whether this channel is transient or not. |
Channel.Builder! |
setTransportStreamId(transportStreamId: Int) Sets the transport stream id of the Channel. |
Channel.Builder! |
Sets the broadcast standard of the Channel. |
Channel.Builder! |
setVideoFormat(videoFormat: String!) Sets the video format of the Channel. |
Public constructors
<init>
Builder()
<init>
Builder(other: Channel!)
Public methods
build
fun build(): Channel!
Takes the values of the Builder object and creates a Channel object.
Return | |
---|---|
Channel! |
Channel object with values from the Builder. |
setAppLinkColor
fun setAppLinkColor(appLinkColor: Int): Channel.Builder!
Sets the background color of the App Linking card.
Parameters | |
---|---|
appLinkColor |
Int: The value of Channels#COLUMN_APP_LINK_COLOR for the channel. |
Return | |
---|---|
Channel.Builder! |
This Builder object to allow for chaining of calls to builder methods. |
setAppLinkIconUri
fun setAppLinkIconUri(appLinkIconUri: Uri!): Channel.Builder!
Sets the icon to be displayed next to the text of the App Linking card.
Parameters | |
---|---|
appLinkIconUri |
Uri!: The value of Channels#COLUMN_APP_LINK_ICON_URI for the channel. |
Return | |
---|---|
Channel.Builder! |
This Builder object to allow for chaining of calls to builder methods. |
setAppLinkIntent
fun setAppLinkIntent(appLinkIntent: Intent!): Channel.Builder!
Sets the App Linking Intent.
Parameters | |
---|---|
appLinkIntent |
Intent!: The Intent to be executed when the App Linking card is selected |
Return | |
---|---|
Channel.Builder! |
This Builder object to allow for chaining of calls to builder methods. |
setAppLinkIntentUri
fun setAppLinkIntentUri(appLinkIntentUri: Uri!): Channel.Builder!
Sets the App Linking Intent.
Parameters | |
---|---|
appLinkIntentUri |
Uri!: 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 Channels#COLUMN_APP_LINK_INTENT_URI . |
Return | |
---|---|
Channel.Builder! |
This Builder object to allow for chaining of calls to builder methods. |
setAppLinkPosterArtUri
fun setAppLinkPosterArtUri(appLinkPosterArtUri: Uri!): Channel.Builder!
Sets the background image of the App Linking card.
Parameters | |
---|---|
appLinkPosterArtUri |
Uri!: The value of Channels#COLUMN_APP_LINK_POSTER_ART_URI for the channel. |
Return | |
---|---|
Channel.Builder! |
This Builder object to allow for chaining of calls to builder methods. |
setAppLinkText
fun setAppLinkText(appLinkText: String!): Channel.Builder!
Sets the text to be displayed in the App Linking card.
Parameters | |
---|---|
appLinkText |
String!: The value of
|