User Tools

Site Tools


macros:function:playbacks.filterbyplaybackhandle

Function

Playbacks.FilterByPlaybackHandle

IEnumerable`1 Playbacks.FilterByPlaybackHandle(IEnumerable<Handle> handles)
API https://api.avolites.com/15.0/api/Playbacks.FilterByPlaybackHandle.html
description Returns the same list but with only handles that derive from a playback handle.
namespace Playbacks
parameter handles ( IEnumerable ) : The list of handles.
return value IEnumerable
Example in

Playback Groups - Create and Add:

<step>PlaybackGroups.CreatePlaybackGroupWithPlaybacks("Test", Playbacks.FilterByPlaybackHandle(Handles.ContextHandles))</step>

Here the outer function CreatePlaybackGroupWithPlaybacks() lives in the namespace PlaybackGroups but requires the second parameter to be a list of Playback handles. Playbacks.FilterByPlaybackHandle() makes sure the passed list is looked up correctly.

Also used in
Remarks
You could leave a comment if you were logged in.
macros/function/playbacks.filterbyplaybackhandle.txt · Last modified: 2021/06/13 09:50 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki