Class ProgrammeFilter : isMatch Event
Boolean isMatch( Programme programme ) |
Summary
Called by DigiGuide to determine if a programme should be included.
Parameters
Parameter | Description |
Programme programme |
Programme to test |
|
|
|
Returns
True if the programme matches the filter, false otherwise.
Examples
Code below creates a filter for movies between 1990 and 2000, and then creates a ShowMe popup window using the filter.var pFilter = new ProgrammeFilter( "All movies between 1990 and 2000", "Shows all movies between 1990 and 2000" ); pFilter.isMatch = function ( prog ) { return prog.category.id == 2 && prog.year > 1989 && prog.year < 2001; } app.getViewManager().showMe( pFilter );
|
See Also
Programme
Requirements
build 1069
|