TabsCaptureVisibleTabParams class
class TabsCaptureVisibleTabParams extends ChromeObject { TabsCaptureVisibleTabParams({String format, int quality}) { if (format != null) this.format = format; if (quality != null) this.quality = quality; } TabsCaptureVisibleTabParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); /** * The format of the resulting image. Default is jpeg. * enum of `jpeg`, `png` */ String get format => jsProxy['format']; set format(String value) => jsProxy['format'] = value; /** * When format is 'jpeg', controls the quality of the resulting image. This * value is ignored for PNG images. As quality is decreased, the resulting * image will have more visual artifacts, and the number of bytes needed to * store it will decrease. */ int get quality => jsProxy['quality']; set quality(int value) => jsProxy['quality'] = value; }
Extends
ChromeObject > TabsCaptureVisibleTabParams
Constructors
new TabsCaptureVisibleTabParams({String format, int quality}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
TabsCaptureVisibleTabParams({String format, int quality}) { if (format != null) this.format = format; if (quality != null) this.quality = quality; }
new TabsCaptureVisibleTabParams.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
TabsCaptureVisibleTabParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
String format #
The format of the resulting image. Default is jpeg.
enum of jpeg
, png
String get format => jsProxy['format'];
set format(String value) => jsProxy['format'] = value;
int quality #
When format is 'jpeg', controls the quality of the resulting image. This value is ignored for PNG images. As quality is decreased, the resulting image will have more visual artifacts, and the number of bytes needed to store it will decrease.
int get quality => jsProxy['quality'];
set quality(int value) => jsProxy['quality'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();