Class ChannelManager : getChannelFromName Method
Channel getChannelFromName( String strChannelName ) |
Summary
Find and return a Channel object from a given channel name.
Remarks
This method useful for locating user channels as the channel ID is automatically generated and is unique per installation.
Parameters
Parameter | Description |
String strChannelName |
String representing the official channel name to be located. If a user has edited their channel name, this method should still locate it. |
|
|
|
Returns
Returns a channel object or NULL if unknown
Examples
From the Recommendation Script:var ch = app.getChannelManager().getChannelFromName( strChannelName ); if( ch ) { alert( "We have found our user channel" ); }
|
See Also
Channel
Requirements
Build 1066
|