DeviceFilter constructor

DeviceFilter({
  1. List<StreamType>? streamTypes,
  2. bool? isActive,
})

Implementation

DeviceFilter({
  /// If set, only audio devices whose stream type is included in this list
  /// will satisfy the filter.
  List<StreamType>? streamTypes,

  /// If set, only audio devices whose active state matches this value will
  /// satisfy the filter.
  bool? isActive,
}) : _wrapped = $js.DeviceFilter(
        streamTypes: streamTypes?.toJSArray((e) => e.toJS),
        isActive: isActive,
      );