Codec class

Helper class for manipulating account' scodec settings

Constructors

Codec.new(int id, {bool selected = true})

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
Codec id (one of the SiprixVoipSdk.kAudioCodec*)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool
Is this codec selected
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

availableCodecs(bool audio) List<int>
Returns list of all available audio/video codecs
getCodecsList(List<int>? selectedCodecsIds, {bool audio = true}) List<Codec>
Converts list of int id's to list of Codecs. When input list not specified - returns default codecs settings
getSelectedCodecsIds(List<Codec> codecsList) List<int>
Returns list of int values which matches selected codecs id's
name(int codecId) String
Returns codec name which matches specified codec id
validateSel(List<Codec> items) bool
Returns true when selected at least one codec in the input list