Class: ChannelManager


Summary

User channel management


Methods

MethodDescription
 addChannelFromID Adds given channel to users lineup.
 getChannelFromID Find and return a Channel object from a given ID value.
 getChannelFromName Find and return a Channel object from a given channel name.
 getChannels Get a list of all channels in the system
 isChannelSelected Determine if a channel is selected by the user.
 removeAllUserChannels Removes all user channels from the channel list.
 updateChannelNumbers Updates the EPG numbers of all selected channels to those found in the current provider template. It does not modify channels that have been manually customised by the user.


Properties

PropertyDescription
 selectedCountry [read only] The country selected from the Setup Wizard. Can be United Kingdom, Ireland or United States.
 selectedCountryID [read only] The unique identifier for the country selected from the Setup Wizard. Can be "GBR", "IRE" or "EXT" (for external or 'other country').
 selectedProviderName [read only] The selected channel provider as shown and changed in "Add/Remove Channels" (Tools menu).
 selectedZipCode [read only] The selected zip code if running the USA version of DigiGuide, otherwise it is empty.
 totalProviderChannels [read only] The total number of channels available for selection in the selected provider.
 totalSelectedChannels [read only] The total number of channels selected in user's lineup.


Examples

var cm = app.getChannelManager();
if( cm.isChannelSelected( 1 ) )
{
alert( "channel is selected" );
}


See Also

  • App : getChannelManager


    Requirements

    Build 1059