Search
Preparing search index...
The search index is not available
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
fm
icelink
StreamCollection
Class StreamCollection
A stream collection.
Hierarchy
Collection
<
WebRtcStream
,
StreamCollection
>
StreamCollection
Index
Constructors
constructor
Methods
add
add
Many
add
Success
any
array
From
List
contains
create
Collection
first
first
OrDefault
for
Each
get
ByType
get
Count
get
Many
ByType
get
Type
String
get
Value
get
Values
last
last
OrDefault
remove
remove
All
remove
First
remove
Last
remove
Many
remove
Success
replace
set
Value
set
Values
single
single
OrDefault
value
At
value
AtOr
Default
where
Constructors
constructor
new
Stream
Collection
(
)
:
StreamCollection
Returns
StreamCollection
Methods
add
add
(
value
:
WebRtcStream
)
:
boolean
Adds a value.
Parameters
value:
WebRtcStream
The value.
Returns
boolean
add
Many
add
Many
(
values
:
WebRtcStream
[]
)
:
boolean
Adds some values.
Parameters
values:
WebRtcStream
[]
The values.
Returns
boolean
Protected
add
Success
add
Success
(
value
:
WebRtcStream
)
:
void
Invoked when an element is added to the collection.
Parameters
value:
WebRtcStream
The value.
Returns
void
any
any
(
predicate
:
IFunction1
<
WebRtcStream
,
boolean
>
)
:
boolean
any
(
)
:
boolean
Determined whether the collection contains at least one value that matches the specified predicate.
Parameters
predicate:
IFunction1
<
WebRtcStream
,
boolean
>
The predicate.
Returns
boolean
Determined whether the collection contains at least one value.
Returns
boolean
Protected
array
From
List
array
From
List
(
list
:
Array
<
WebRtcStream
>
)
:
WebRtcStream
[]
Creates an array from a list.
Parameters
list:
Array
<
WebRtcStream
>
The list.
Returns
WebRtcStream
[]
contains
contains
(
value
:
WebRtcStream
)
:
boolean
Determines whether the collection contains a value.
Parameters
value:
WebRtcStream
The value.
Returns
boolean
Protected
create
Collection
create
Collection
(
)
:
StreamCollection
Creates a collection.
Returns
StreamCollection
first
first
(
predicate
:
IFunction1
<
WebRtcStream
,
boolean
>
)
:
WebRtcStream
first
(
)
:
WebRtcStream
Gets the first value that matches the specified predicate. Throws an exception if there are no such values in the collection.
Parameters
predicate:
IFunction1
<
WebRtcStream
,
boolean
>
The predicate.
Returns
WebRtcStream
Gets the first value. Throws an exception if there are no values in the collection.
Returns
WebRtcStream
first
OrDefault
first
OrDefault
(
)
:
WebRtcStream
first
OrDefault
(
predicate
:
IFunction1
<
WebRtcStream
,
boolean
>
)
:
WebRtcStream
Gets the first value. Returns a default value if there are no values in the collection.
Returns
WebRtcStream
Gets the first value that matches the specified predicate. Returns a default value if there are no such values in the collection.
Parameters
predicate:
IFunction1
<
WebRtcStream
,
boolean
>
The predicate.
Returns
WebRtcStream
for
Each
for
Each
(
callback
:
IAction2
<
WebRtcStream
,
number
>
)
:
void
Executes a callback function once per value.
Parameters
callback:
IAction2
<
WebRtcStream
,
number
>
The callback to execute.
Returns
void
get
ByType
get
ByType<T>
(
type
:
StreamType
)
:
T
Gets a stream by its type.
Type parameters
T
:
WebRtcStream
Parameters
type:
StreamType
Returns
T
get
Count
get
Count
(
)
:
number
Gets the count.
Returns
number
get
Many
ByType
get
Many
ByType<T>
(
type
:
StreamType
)
:
Array
<
T
>
Gets some streams by their type.
Type parameters
T
:
WebRtcStream
Parameters
type:
StreamType
Returns
Array
<
T
>
get
Type
String
get
Type
String
(
)
:
string
Returns
string
get
Value
get
Value
(
)
:
WebRtcStream
Gets the value.
Returns
WebRtcStream
get
Values
get
Values
(
)
:
WebRtcStream
[]
Gets the values.
Returns
WebRtcStream
[]
last
last
(
predicate
:
IFunction1
<
WebRtcStream
,
boolean
>
)
:
WebRtcStream
last
(
)
:
WebRtcStream
Gets the last value that matches the specified predicate. Throws an exception if there are no such values in the collection.
Parameters
predicate:
IFunction1
<
WebRtcStream
,
boolean
>
The predicate.
Returns
WebRtcStream
Gets the last value. Throws an exception if there are no values in the collection.
Returns
WebRtcStream
last
OrDefault
last
OrDefault
(
predicate
:
IFunction1
<
WebRtcStream
,
boolean
>
)
:
WebRtcStream
last
OrDefault
(
)
:
WebRtcStream
Gets the last value that matches the specified predicate. Returns a default value if there are no such values in the collection.
Parameters
predicate:
IFunction1
<
WebRtcStream
,
boolean
>
The predicate.
Returns
WebRtcStream
Gets the last value. Returns a default value if there are no values in the collection.
Returns
WebRtcStream
remove
remove
(
value
:
WebRtcStream
)
:
boolean
Removes a value.
Parameters
value:
WebRtcStream
The value.
Returns
boolean
remove
All
remove
All
(
)
:
void
Removes all values.
Returns
void
remove
First
remove
First
(
condition
:
IFunction1
<
WebRtcStream
,
boolean
>
)
:
WebRtcStream
remove
First
(
)
:
WebRtcStream
Removes the first value that matches a given condition.
Parameters
condition:
IFunction1
<
WebRtcStream
,
boolean
>
Returns
WebRtcStream
Removes the first value.
Returns
WebRtcStream
remove
Last
remove
Last
(
)
:
WebRtcStream
remove
Last
(
condition
:
IFunction1
<
WebRtcStream
,
boolean
>
)
:
WebRtcStream
Removes the last value.
Returns
WebRtcStream
Removes the last value that matches a given condition.
Parameters
condition:
IFunction1
<
WebRtcStream
,
boolean
>
Returns
WebRtcStream
remove
Many
remove
Many
(
values
:
WebRtcStream
[]
)
:
boolean
Removes some values.
Parameters
values:
WebRtcStream
[]
The values.
Returns
boolean
Protected
remove
Success
remove
Success
(
value
:
WebRtcStream
)
:
void
Invoked when an element is removed from the collection.
Parameters
value:
WebRtcStream
The value.
Returns
void
replace
replace
(
values
:
WebRtcStream
[]
)
:
void
Replaces the collection with a new set of values.
Parameters
values:
WebRtcStream
[]
The values.
Returns
void
set
Value
set
Value
(
value
:
WebRtcStream
)
:
void
Sets the value.
Parameters
value:
WebRtcStream
Returns
void
set
Values
set
Values
(
value
:
WebRtcStream
[]
)
:
void
Sets the values.
Parameters
value:
WebRtcStream
[]
Returns
void
single
single
(
predicate
:
IFunction1
<
WebRtcStream
,
boolean
>
)
:
WebRtcStream
single
(
)
:
WebRtcStream
Gets the only value that matches the specified predicate. Throws an exception if there are no values or more than one value in the collection.
Parameters
predicate:
IFunction1
<
WebRtcStream
,
boolean
>
Returns
WebRtcStream
Gets the only value. Throws an exception if there are no values or more than one value in the collection.
Returns
WebRtcStream
single
OrDefault
single
OrDefault
(
)
:
WebRtcStream
single
OrDefault
(
predicate
:
IFunction1
<
WebRtcStream
,
boolean
>
)
:
WebRtcStream
Gets the only value. Returns a default value if there are no values or more than one value in the collection.
Returns
WebRtcStream
Gets the only value that matches the specified predicate. Returns a default value if there are no values or more than one value in the collection.
Parameters
predicate:
IFunction1
<
WebRtcStream
,
boolean
>
Returns
WebRtcStream
value
At
value
At
(
index
:
number
)
:
WebRtcStream
Gets the value at the specified index. Throws an exception if a value does not exist at that index.
Parameters
index:
number
The index.
Returns
WebRtcStream
value
AtOr
Default
value
AtOr
Default
(
index
:
number
)
:
WebRtcStream
Gets the value at the specified index. Returns a default value if a value does not exist at that index.
Parameters
index:
number
The index.
Returns
WebRtcStream
where
where
(
predicate
:
IFunction2
<
WebRtcStream
,
number
,
boolean
>
)
:
StreamCollection
Creates a new collection with values that match the specified predicate.
Parameters
predicate:
IFunction2
<
WebRtcStream
,
number
,
boolean
>
The predicate.
Returns
StreamCollection
Stream
Collection
constructor
add
add
Many
add
Success
any
array
From
List
contains
create
Collection
first
first
OrDefault
for
Each
get
ByType
get
Count
get
Many
ByType
get
Type
String
get
Value
get
Values
last
last
OrDefault
remove
remove
All
remove
First
remove
Last
remove
Many
remove
Success
replace
set
Value
set
Values
single
single
OrDefault
value
At
value
AtOr
Default
where