提交 30eea4e0 编写于 作者: W wusongqing

updated docs

Signed-off-by: Nwusongqing <wusongqing@huawei.com>
上级 f4ffb34e
# Display # Display
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**
>
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Modules to Import ## Modules to Import
...@@ -56,26 +57,27 @@ getDefaultDisplay(callback: AsyncCallback&lt;Display&gt;): void ...@@ -56,26 +57,27 @@ getDefaultDisplay(callback: AsyncCallback&lt;Display&gt;): void
Obtains the default display object. Obtains the default display object.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| callback | AsyncCallback&lt;[Display](#display)&gt; | Yes| Callback used to return the default display object.|
- Example | Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| callback | AsyncCallback&lt;[Display](#display)&gt; | Yes| Callback used to return the default display object.|
```js **Example**
var displayClass = null;
display.getDefaultDisplay((err, data) => { ```js
if (err.code) { var displayClass = null;
console.error('Failed to obtain the default display object. Code: ' + JSON.stringify(err)); display.getDefaultDisplay((err, data) => {
return; if (err.code) {
} console.error('Failed to obtain the default display object. Code: ' + JSON.stringify(err));
console.info('Succeeded in obtaining the default display object. Data:' + JSON.stringify(data)); return;
displayClass = data; }
}); console.info('Succeeded in obtaining the default display object. Data:' + JSON.stringify(data));
``` displayClass = data;
});
```
## display.getDefaultDisplay ## display.getDefaultDisplay
...@@ -83,24 +85,24 @@ getDefaultDisplay(): Promise&lt;Display&gt; ...@@ -83,24 +85,24 @@ getDefaultDisplay(): Promise&lt;Display&gt;
Obtains the default display object. Obtains the default display object.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Return value **Return value**
| Type | Description | | Type | Description |
| ---------------------------------- | ---------------------------------------------- | | ---------------------------------- | ---------------------------------------------- |
| Promise&lt;[Display](#display)&gt; | Promise used to return the default display object.| | Promise&lt;[Display](#display)&gt; | Promise used to return the default display object.|
- Example **Example**
```js ```js
let promise = display.getDefaultDisplay(); let promise = display.getDefaultDisplay();
promise.then(() => { promise.then(() => {
console.log('getDefaultDisplay success'); console.log('getDefaultDisplay success');
}).catch((err) => { }).catch((err) => {
console.log('getDefaultDisplay fail: ' + JSON.stringify(err)); console.log('getDefaultDisplay fail: ' + JSON.stringify(err));
}); });
``` ```
## display.getAllDisplay ## display.getAllDisplay
...@@ -108,25 +110,25 @@ getAllDisplay(callback: AsyncCallback&lt;Array&lt;Display&gt;&gt;): void ...@@ -108,25 +110,25 @@ getAllDisplay(callback: AsyncCallback&lt;Array&lt;Display&gt;&gt;): void
Obtains all the display objects. Obtains all the display objects.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ---------------------------------------------------- | ---- | ------------------------------- | | -------- | ---------------------------------------------------- | ---- | ------------------------------- |
| callback | AsyncCallback&lt;Array&lt;[Display](#display)&gt;&gt; | Yes | Callback used to return all the display objects.| | callback | AsyncCallback&lt;Array&lt;[Display](#display)&gt;&gt; | Yes | Callback used to return all the display objects.|
- Example **Example**
```js ```js
display.getAllDisplay((err, data) => { display.getAllDisplay((err, data) => {
if (err.code) { if (err.code) {
console.error('Failed to obtain all the display objects. Code: ' + JSON.stringify(err)); console.error('Failed to obtain all the display objects. Code: ' + JSON.stringify(err));
return; return;
} }
console.info('Succeeded in obtaining all the display objects. Data: ' + JSON.stringify(data)) console.info('Succeeded in obtaining all the display objects. Data: ' + JSON.stringify(data))
}); });
``` ```
## display.getAllDisplay ## display.getAllDisplay
...@@ -134,24 +136,24 @@ getAllDisplay(): Promise&lt;Array&lt;Display&gt;&gt; ...@@ -134,24 +136,24 @@ getAllDisplay(): Promise&lt;Array&lt;Display&gt;&gt;
Obtains all the display objects. Obtains all the display objects.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Return value **Return value**
| Type | Description | | Type | Description |
| ----------------------------------------------- | ------------------------------------------------------- | | ----------------------------------------------- | ------------------------------------------------------- |
| Promise&lt;Array&lt;[Display](#display)&gt;&gt; | Promise used to return an array containing all the display objects.| | Promise&lt;Array&lt;[Display](#display)&gt;&gt; | Promise used to return an array containing all the display objects.|
- Example **Example**
```js ```js
let promise = display.getAllDisplay(); let promise = display.getAllDisplay();
promise.then(() => { promise.then(() => {
console.log('getAllDisplay success'); console.log('getAllDisplay success');
}).catch((err) => { }).catch((err) => {
console.log('getAllDisplay fail: ' + JSON.stringify(err)); console.log('getAllDisplay fail: ' + JSON.stringify(err));
}); });
``` ```
## display.on('add'|'remove'|'change') ## display.on('add'|'remove'|'change')
...@@ -159,23 +161,24 @@ on(type: 'add'|'remove'|'change', callback: Callback&lt;number&gt;): void ...@@ -159,23 +161,24 @@ on(type: 'add'|'remove'|'change', callback: Callback&lt;number&gt;): void
Enables listening. Enables listening.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
**Parameters**
- Parameters | Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- | | type | string | Yes| Listening type. The available values are as follows:<br>-&nbsp;**add**: listening for whether a display is added<br>-&nbsp;**remove**: listening for whether a display is removed<br>-&nbsp;**change**: listening for whether a display is changed|
| type | string | Yes| Listening type. The available values are as follows:<br>-&nbsp;**add**: listening for whether a display is added<br>-&nbsp;**remove**: listening for whether a display is removed<br>-&nbsp;**change**: listening for whether a display is changed| | callback | Callback&lt;number&gt; | Yes| Callback used to return the ID of the display.|
| callback | Callback&lt;number&gt; | Yes| Callback used to return the ID of the display.|
- Example **Example**
```js ```js
var type = "add"; var type = "add";
var callback = (data) => { var callback = (data) => {
console.info('Listening enabled. Data: ' + JSON.stringify(data)) console.info('Listening enabled. Data: ' + JSON.stringify(data))
} }
display.on(type, callback); display.on(type, callback);
``` ```
## display.off('add'|'remove'|'change') ## display.off('add'|'remove'|'change')
...@@ -184,17 +187,18 @@ off(type: 'add'|'remove'|'change', callback?: Callback&lt;number&gt;): void ...@@ -184,17 +187,18 @@ off(type: 'add'|'remove'|'change', callback?: Callback&lt;number&gt;): void
Disables listening. Disables listening.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| type | string | Yes| Listening type. The available values are as follows:<br>-&nbsp;**add**: listening for whether a display is added<br>-&nbsp;**remove**: listening for whether a display is removed<br>-&nbsp;**change**: listening for whether a display is changed|
| callback | Callback&lt;number&gt; | No| Callback used to return the ID of the display.|
- Example | Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| type | string | Yes| Listening type. The available values are as follows:<br>-&nbsp;**add**: listening for whether a display is added<br>-&nbsp;**remove**: listening for whether a display is removed<br>-&nbsp;**change**: listening for whether a display is changed|
| callback | Callback&lt;number&gt; | No| Callback used to return the ID of the display.|
```js **Example**
var type = "remove";
display.off(type); ```js
``` var type = "remove";
display.off(type);
```
\ No newline at end of file
# Screenshot # Screenshot
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**
>
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Modules to Import ## Modules to Import
...@@ -54,39 +55,39 @@ save(options?: ScreenshotOptions, callback: AsyncCallback&lt;image.PixelMap&gt;) ...@@ -54,39 +55,39 @@ save(options?: ScreenshotOptions, callback: AsyncCallback&lt;image.PixelMap&gt;)
Takes a screenshot and saves it as a **PixelMap** object. This method uses a callback to return the result. Takes a screenshot and saves it as a **PixelMap** object. This method uses a callback to return the result.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
**Required permissions**: ohos.permission.CAPTURE_SCREEN **Required permissions**: ohos.permission.CAPTURE_SCREEN
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | --------------------------------------- | ---- | ------------------------------------------------------------ | | -------- | --------------------------------------- | ---- | ------------------------------------------------------------ |
| options | [ScreenshotOptions](#screenshotoptions) | No | Screenshot options, which consist of **screenRect**, **imageSize**, and **rotation**. You need to set these parameters.| | options | [ScreenshotOptions](#screenshotoptions) | No | Screenshot options, which consist of **screenRect**, **imageSize**, and **rotation**. You need to set these parameters.|
| callback | AsyncCallback&lt;image.PixelMap&gt; | Yes | Callback used to return a **PixelMap** object. | | callback | AsyncCallback&lt;image.PixelMap&gt; | Yes | Callback used to return a **PixelMap** object. |
- Example **Example**
```js ```js
var ScreenshotOptions = { var ScreenshotOptions = {
"screenRect": { "screenRect": {
"left": 200, "left": 200,
"top": 100, "top": 100,
"width": 200, "width": 200,
"height": 200}, "height": 200},
"imageSize": { "imageSize": {
"width": 300, "width": 300,
"height": 300}, "height": 300},
"rotation": 0 "rotation": 0
}; };
screenshot.save(ScreenshotOptions, (err, data) => { screenshot.save(ScreenshotOptions, (err, data) => {
if (err) { if (err) {
console.error('Failed to save the screenshot. Error: ' + JSON.stringify(err)); console.error('Failed to save the screenshot. Error: ' + JSON.stringify(err));
return; return;
} }
console.info('Screenshot saved. Data: ' + JSON.stringify(data)); console.info('Screenshot saved. Data: ' + JSON.stringify(data));
}); });
``` ```
## screenshot.save ## screenshot.save
...@@ -94,40 +95,40 @@ save(options?: ScreenshotOptions): Promise&lt;image.PixelMap&gt; ...@@ -94,40 +95,40 @@ save(options?: ScreenshotOptions): Promise&lt;image.PixelMap&gt;
Takes a screenshot and saves it as a **PixelMap** object. This method uses a promise to return the result. Takes a screenshot and saves it as a **PixelMap** object. This method uses a promise to return the result.
**System capabilities**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
**Required permissions**: ohos.permission.CAPTURE_SCREEN **Required permissions**: ohos.permission.CAPTURE_SCREEN
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ------- | --------------------------------------- | ---- | ------------------------------------------------------------ | | ------- | --------------------------------------- | ---- | ------------------------------------------------------------ |
| options | [ScreenshotOptions](#screenshotoptions) | No | Screenshot options, which consist of **screenRect**, **imageSize**, and **rotation**. You need to set these parameters.| | options | [ScreenshotOptions](#screenshotoptions) | No | Screenshot options, which consist of **screenRect**, **imageSize**, and **rotation**. You need to set these parameters.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ----------------------------- | ----------------------------------------------- | | ----------------------------- | ----------------------------------------------- |
| Promise&lt;image.PixelMap&gt; | Promise used to return an **image.PixelMap** object.| | Promise&lt;image.PixelMap&gt; | Promise used to return an **image.PixelMap** object.|
- Example **Example**
```js ```js
var ScreenshotOptions = { var ScreenshotOptions = {
"screenRect": { "screenRect": {
"left": 200, "left": 200,
"top": 100, "top": 100,
"width": 200, "width": 200,
"height": 200}, "height": 200},
"imageSize": { "imageSize": {
"width": 300, "width": 300,
"height": 300}, "height": 300},
"rotation": 0 "rotation": 0
}; };
let promise = screenshot.save(ScreenshotOptions); let promise = screenshot.save(ScreenshotOptions);
promise.then(() => { promise.then(() => {
console.log('screenshot save success'); console.log('screenshot save success');
}).catch((err) => { }).catch((err) => {
console.log('screenshot save fail: ' + JSON.stringify(err)); console.log('screenshot save fail: ' + JSON.stringify(err));
}); });
``` ```
\ No newline at end of file
# USB # USB
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**
>
> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. > The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Modules to Import ## Modules to Import
...@@ -17,66 +18,68 @@ Obtains the USB device list. ...@@ -17,66 +18,68 @@ Obtains the USB device list.
**System capability**: SystemCapability.USB.USBManager **System capability**: SystemCapability.USB.USBManager
- Return value **Return value**
| Type| Description|
| -------- | -------- | | Type| Description|
| Array&lt;Readonly&lt;[USBDevice](#usbdevice)&gt;&gt; | Device information list.| | -------- | -------- |
| Array&lt;Readonly&lt;[USBDevice](#usbdevice)&gt;&gt; | Device information list.|
- Example
``` **Example**
let devicesList = usb.getDevices();
console.log(`devicesList = ${JSON.stringify(devicesList)}`); ```
// devicesList is a list of USB devices. let devicesList = usb.getDevices();
// A simple example of devicesList is provided as follows: console.log(`devicesList = ${JSON.stringify(devicesList)}`);
[ // devicesList is a list of USB devices.
{ // A simple example of devicesList is provided as follows:
name: "1-1", [
serial: "", {
manufacturerName: "", name: "1-1",
productName: "", serial: "",
version: "", manufacturerName: "",
vendorId: 7531, productName: "",
productId: 2, version: "",
clazz: 9, vendorId: 7531,
subclass: 0, productId: 2,
protocol: 1, clazz: 9,
devAddress: 1, subclass: 0,
busNum: 1, protocol: 1,
configs: [ devAddress: 1,
{ busNum: 1,
id: 1, configs: [
attributes: 224, {
isRemoteWakeup: true, id: 1,
isSelfPowered: true, attributes: 224,
maxPower: 0, isRemoteWakeup: true,
name: "1-1", isSelfPowered: true,
interfaces: [ maxPower: 0,
{ name: "1-1",
id: 0, interfaces: [
protocol: 0, {
clazz: 9, id: 0,
subclass: 0, protocol: 0,
alternateSetting: 0, clazz: 9,
name: "1-1", subclass: 0,
endpoints: [ alternateSetting: 0,
{ name: "1-1",
address: 129, endpoints: [
attributes: 3, {
interval: 12, address: 129,
maxPacketSize: 4, attributes: 3,
direction: 128, interval: 12,
number: 1, maxPacketSize: 4,
type: 3, direction: 128,
interfaceId: 0, number: 1,
}, type: 3,
], interfaceId: 0,
}, },
], ],
}, },
], ],
}, },
] ],
``` },
]
```
## usb.connectDevice ## usb.connectDevice
...@@ -89,21 +92,24 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi ...@@ -89,21 +92,24 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi
**System capability**: SystemCapability.USB.USBManager **System capability**: SystemCapability.USB.USBManager
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| device | [USBDevice](#usbdevice) | Yes| USB device information.|
- Return value | Name| Type| Mandatory| Description|
| Type| Description| | -------- | -------- | -------- | -------- |
| -------- | -------- | | device | [USBDevice](#usbdevice) | Yes| USB device information.|
| Readonly&lt;[USBDevicePipe](#usbdevicepipe)&gt; | USB device pipe for data transfer.|
- Example **Return value**
```
let devicepipe= usb.connectDevice(device); | Type| Description|
console.log(`devicepipe = ${JSON.stringify(devicepipe)}`); | -------- | -------- |
``` | Readonly&lt;[USBDevicePipe](#usbdevicepipe)&gt; | USB device pipe for data transfer.|
**Example**
```
let devicepipe= usb.connectDevice(device);
console.log(`devicepipe = ${JSON.stringify(devicepipe)}`);
```
## usb.hasRight ## usb.hasRight
...@@ -114,22 +120,25 @@ Checks whether the application has the permission to access the device. ...@@ -114,22 +120,25 @@ Checks whether the application has the permission to access the device.
**System capability**: SystemCapability.USB.USBManager **System capability**: SystemCapability.USB.USBManager
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | Name| Type| Mandatory| Description|
| deviceName | string | Yes| Device name.| | -------- | -------- | -------- | -------- |
| deviceName | string | Yes| Device name.|
**Return value**
- Return value | Type| Description|
| Type| Description| | -------- | -------- |
| -------- | -------- | | boolean | Returns **true** if the application has the permission to access the device; returns **false** otherwise.|
| boolean | Returns **true** if the application has the permission to access the device; returns **false** otherwise.|
- Example **Example**
```
let divicesName="1-1"; ```
let bool = usb.hasRight(divicesName); let divicesName="1-1";
console.log(bool); let bool = usb.hasRight(divicesName);
``` console.log(bool);
```
## usb.requestRight ## usb.requestRight
...@@ -140,23 +149,26 @@ Requests the temporary permission for the application to access the USB device. ...@@ -140,23 +149,26 @@ Requests the temporary permission for the application to access the USB device.
**System capability**: SystemCapability.USB.USBManager **System capability**: SystemCapability.USB.USBManager
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | Name| Type| Mandatory| Description|
| deviceName | string | Yes| Device name.| | -------- | -------- | -------- | -------- |
| deviceName | string | Yes| Device name.|
- Return value **Return value**
| Type| Description|
| -------- | -------- |
| Promise&lt;boolean&gt; | Returns **true** if the temporary device access permissions are granted; returns **false** otherwise.|
- Example | Type| Description|
``` | -------- | -------- |
let divicesName="1-1"; | Promise&lt;boolean&gt; | Returns **true** if the temporary device access permissions are granted; returns **false** otherwise.|
usb.requestRight(divicesName).then((ret) => {
console.log(`requestRight = ${JSON.stringify(ret)}`); **Example**
});
``` ```
let divicesName="1-1";
usb.requestRight(divicesName).then((ret) => {
console.log(`requestRight = ${JSON.stringify(ret)}`);
});
```
## usb.claimInterface ## usb.claimInterface
...@@ -169,23 +181,26 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi ...@@ -169,23 +181,26 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi
**System capability**: SystemCapability.USB.USBManager **System capability**: SystemCapability.USB.USBManager
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | Name| Type| Mandatory| Description|
| pipe | [USBDevicePipe](#usbdevicepipe) | Yes| Device pipe, which is used to determine the bus number and device address.| | -------- | -------- | -------- | -------- |
| iface | [USBInterface](#usbinterface) | Yes| USB interface, which is used to determine the index of the interface to claim.| | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| Device pipe, which is used to determine the bus number and device address.|
| force | boolean | No| Whether to forcibly claim the USB interface. The default value is **false**, indicating not to forcibly claim the USB interface.| | iface | [USBInterface](#usbinterface) | Yes| USB interface, which is used to determine the index of the interface to claim.|
| force | boolean | No| Whether to forcibly claim the USB interface. The default value is **false**, indicating not to forcibly claim the USB interface.|
- Return value **Return value**
| Type| Description|
| -------- | -------- |
| number | Returns **0** if the USB interface is successfully claimed; returns an error code otherwise.|
- Example | Type| Description|
``` | -------- | -------- |
let ret = usb.claimInterface(devicepipe, interfaces); | number | Returns **0** if the USB interface is successfully claimed; returns an error code otherwise.|
console.log(`claimInterface = ${ret}`);
``` **Example**
```
let ret = usb.claimInterface(devicepipe, interfaces);
console.log(`claimInterface = ${ret}`);
```
## usb.releaseInterface ## usb.releaseInterface
...@@ -198,22 +213,25 @@ Before you do this, ensure that you have claimed the interface by calling [usb.c ...@@ -198,22 +213,25 @@ Before you do this, ensure that you have claimed the interface by calling [usb.c
**System capability**: SystemCapability.USB.USBManager **System capability**: SystemCapability.USB.USBManager
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| pipe | [USBDevicePipe](#usbdevicepipe) | Yes| Device pipe, which is used to determine the bus number and device address.|
| iface | [USBInterface](#usbinterface) | Yes| USB interface, which is used to determine the index of the interface to release.|
- Return value | Name| Type| Mandatory| Description|
| Type| Description| | -------- | -------- | -------- | -------- |
| -------- | -------- | | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| Device pipe, which is used to determine the bus number and device address.|
| number | Returns **0** if the USB interface is successfully released; returns an error code otherwise.| | iface | [USBInterface](#usbinterface) | Yes| USB interface, which is used to determine the index of the interface to release.|
- Example **Return value**
```
let ret = usb.releaseInterface(devicepipe, interfaces); | Type| Description|
console.log(`releaseInterface = ${ret}`); | -------- | -------- |
``` | number | Returns **0** if the USB interface is successfully released; returns an error code otherwise.|
**Example**
```
let ret = usb.releaseInterface(devicepipe, interfaces);
console.log(`releaseInterface = ${ret}`);
```
## usb.setConfiguration ## usb.setConfiguration
...@@ -226,22 +244,25 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi ...@@ -226,22 +244,25 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi
**System capability**: SystemCapability.USB.USBManager **System capability**: SystemCapability.USB.USBManager
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | Name| Type| Mandatory| Description|
| pipe | [USBDevicePipe](#usbdevicepipe) | Yes| Device pipe, which is used to determine the bus number and device address.| | -------- | -------- | -------- | -------- |
| config | [USBConfig](#usbconfig) | Yes| USB configuration to set.| | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| Device pipe, which is used to determine the bus number and device address.|
| config | [USBConfig](#usbconfig) | Yes| USB configuration to set.|
- Return value **Return value**
| Type| Description|
| -------- | -------- |
| number | Returns **0** if the USB configuration is successfully set; returns an error code otherwise.|
- Example | Type| Description|
``` | -------- | -------- |
let ret = usb.setConfiguration(devicepipe, config); | number | Returns **0** if the USB configuration is successfully set; returns an error code otherwise.|
console.log(`setConfiguration = ${ret}`);
``` **Example**
```
let ret = usb.setConfiguration(devicepipe, config);
console.log(`setConfiguration = ${ret}`);
```
## usb.setInterface ## usb.setInterface
...@@ -254,22 +275,25 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi ...@@ -254,22 +275,25 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi
**System capability**: SystemCapability.USB.USBManager **System capability**: SystemCapability.USB.USBManager
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| pipe | [USBDevicePipe](#usbdevicepipe) | Yes| Device pipe, which is used to determine the bus number and device address.|
| iface | [USBInterface](#usbinterface) | Yes| USB interface to set.|
- Return value | Name| Type| Mandatory| Description|
| Type| Description| | -------- | -------- | -------- | -------- |
| -------- | -------- | | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| Device pipe, which is used to determine the bus number and device address.|
| number | Returns **0** if the USB interface is successfully set; returns an error code otherwise.| | iface | [USBInterface](#usbinterface) | Yes| USB interface to set.|
- Example **Return value**
```
let ret = usb.setInterface(devicepipe, interfaces); | Type| Description|
console.log(`setInterface = ${ret}`); | -------- | -------- |
``` | number | Returns **0** if the USB interface is successfully set; returns an error code otherwise.|
**Example**
```
let ret = usb.setInterface(devicepipe, interfaces);
console.log(`setInterface = ${ret}`);
```
## usb.getRawDescriptor ## usb.getRawDescriptor
...@@ -282,20 +306,23 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi ...@@ -282,20 +306,23 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi
**System capability**: SystemCapability.USB.USBManager **System capability**: SystemCapability.USB.USBManager
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| pipe | [USBDevicePipe](#usbdevicepipe) | Yes| Device pipe, which is used to determine the bus number and device address.|
- Return value | Name| Type| Mandatory| Description|
| Type| Description| | -------- | -------- | -------- | -------- |
| -------- | -------- | | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| Device pipe, which is used to determine the bus number and device address.|
| Uint8Array | Raw descriptor data.|
- Example **Return value**
```
let ret = usb.getRawDescriptor(devicepipe); | Type| Description|
``` | -------- | -------- |
| Uint8Array | Raw descriptor data.|
**Example**
```
let ret = usb.getRawDescriptor(devicepipe);
```
## usb.getFileDescriptor ## usb.getFileDescriptor
...@@ -308,20 +335,23 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi ...@@ -308,20 +335,23 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi
**System capability**: SystemCapability.USB.USBManager **System capability**: SystemCapability.USB.USBManager
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | Name| Type| Mandatory| Description|
| pipe | [USBDevicePipe](#usbdevicepipe) | Yes| Device pipe, which is used to determine the bus number and device address.| | -------- | -------- | -------- | -------- |
| pipe | [USBDevicePipe](#usbdevicepipe) | Yes| Device pipe, which is used to determine the bus number and device address.|
**Return value**
| Type| Description|
| -------- | -------- |
| number | File descriptor of the USB device.|
- Return value **Example**
| Type| Description|
| -------- | -------- |
| number | File descriptor of the USB device.|
- Example ```
``` let ret = usb.getFileDescriptor(devicepipe);
let ret = usb.getFileDescriptor(devicepipe); ```
```
## usb.controlTransfer ## usb.controlTransfer
...@@ -334,24 +364,27 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi ...@@ -334,24 +364,27 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi
**System capability**: SystemCapability.USB.USBManager **System capability**: SystemCapability.USB.USBManager
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | Name| Type| Mandatory| Description|
| pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe, which is used to determine the USB device.| | -------- | -------- | -------- | -------- |
| contrlparam | [USBControlParams](#usbcontrolparams) | Yes| Control transfer parameters.| | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe, which is used to determine the USB device.|
| timeout | number | No| Timeout duration. The default value is **0**, indicating no timeout.| | contrlparam | [USBControlParams](#usbcontrolparams) | Yes| Control transfer parameters.|
| timeout | number | No| Timeout duration. The default value is **0**, indicating no timeout.|
**Return value**
- Return value | Type| Description|
| Type| Description| | -------- | -------- |
| -------- | -------- | | Promise&lt;number&gt; | Returns the size of the transmitted or received data block if the control transfer is successful; returns **-1** if an exception occurs.|
| Promise&lt;number&gt; | Returns the size of the transmitted or received data block if the control transfer is successful; returns **-1** if an exception occurs.|
- Example **Example**
```
usb.controlTransfer(devicepipe, USBControlParams).then((ret) => { ```
console.log(`controlTransfer = ${JSON.stringify(ret)}`); usb.controlTransfer(devicepipe, USBControlParams).then((ret) => {
}) console.log(`controlTransfer = ${JSON.stringify(ret)}`);
``` })
```
## usb.bulkTransfer ## usb.bulkTransfer
...@@ -364,28 +397,31 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi ...@@ -364,28 +397,31 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi
**System capability**: SystemCapability.USB.USBManager **System capability**: SystemCapability.USB.USBManager
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | Name| Type| Mandatory| Description|
| pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe, which is used to determine the USB device.| | -------- | -------- | -------- | -------- |
| endpoint | [USBEndpoint](#usbendpoint) | Yes| USB endpoint, which is used to determine the USB port for data transfer.| | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe, which is used to determine the USB device.|
| buffer | Uint8Array | Yes| Buffer for writing or reading data.| | endpoint | [USBEndpoint](#usbendpoint) | Yes| USB endpoint, which is used to determine the USB port for data transfer.|
| timeout | number | No| Timeout duration. The default value is **0**, indicating no timeout.| | buffer | Uint8Array | Yes| Buffer for writing or reading data.|
| timeout | number | No| Timeout duration. The default value is **0**, indicating no timeout.|
- Return value
| Type| Description| **Return value**
| -------- | -------- |
| Promise&lt;number&gt; | Returns the size of the transmitted or received data block if the control transfer is successful; returns **-1** if an exception occurs.| | Type| Description|
| -------- | -------- |
- Example | Promise&lt;number&gt; | Returns the size of the transmitted or received data block if the control transfer is successful; returns **-1** if an exception occurs.|
```
// Call usb.getDevices to obtain a data set. Then, obtain a USB device and its access permission. **Example**
// Pass the obtained USB device as a parameter to usb.connectDevice. Then, call usb.connectDevice to connect the USB device.
// Call usb.claimInterface to claim the USB interface. After that, call usb.bulkTransfer to start bulk transfer. ```
usb.bulkTransfer(devicepipe, endpoint, buffer).then((ret) => { // Call usb.getDevices to obtain a data set. Then, obtain a USB device and its access permission.
console.log(`bulkTransfer = ${JSON.stringify(ret)}`); // Pass the obtained USB device as a parameter to usb.connectDevice. Then, call usb.connectDevice to connect the USB device.
}); // Call usb.claimInterface to claim the USB interface. After that, call usb.bulkTransfer to start bulk transfer.
``` usb.bulkTransfer(devicepipe, endpoint, buffer).then((ret) => {
console.log(`bulkTransfer = ${JSON.stringify(ret)}`);
});
```
## usb.closePipe ## usb.closePipe
...@@ -398,21 +434,24 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi ...@@ -398,21 +434,24 @@ Before you do this, call [usb.getDevices](#usbgetdevices) to obtain the USB devi
**System capability**: SystemCapability.USB.USBManager **System capability**: SystemCapability.USB.USBManager
- Parameters **Parameters**
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | Name| Type| Mandatory| Description|
| pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe.| | -------- | -------- | -------- | -------- |
| pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe.|
- Return value
| Type| Description| **Return value**
| -------- | -------- |
| number | Returns **0** if the USB device pipe is closed successfully; returns an error code otherwise.| | Type| Description|
| -------- | -------- |
- Example | number | Returns **0** if the USB device pipe is closed successfully; returns an error code otherwise.|
```
let ret = usb.closePipe(devicepipe); **Example**
console.log(`closePipe = ${ret}`);
``` ```
let ret = usb.closePipe(devicepipe);
console.log(`closePipe = ${ret}`);
```
## USBEndpoint ## USBEndpoint
......
# webgl # webgl
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**
>
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
...@@ -11,7 +12,7 @@ This module provides WebGL APIs that correspond to the OpenGL ES 2.0 feature set ...@@ -11,7 +12,7 @@ This module provides WebGL APIs that correspond to the OpenGL ES 2.0 feature set
Create a **<canvas\>** component in the HML file. The following is an example: Create a **<canvas\>** component in the HML file. The following is an example:
``` ```
<div class="container"> <div class="container">
<canvas ref="canvas1" style="width : 400px; height : 200px; background-color : lightyellow;"></canvas> <canvas ref="canvas1" style="width : 400px; height : 200px; background-color : lightyellow;"></canvas>
...@@ -21,8 +22,8 @@ Create a **<canvas\>** component in the HML file. The following is an example: ...@@ -21,8 +22,8 @@ Create a **<canvas\>** component in the HML file. The following is an example:
Obtain the **<canvas\>** component instance in the JS file. The following is an example: Obtain the **<canvas\>** component instance in the JS file. The following is an example:
``` ```js
// Obtain the <canvas> component instance. // Obtain the <canvas> component instance.
const el = this.$refs.canvas1; const el = this.$refs.canvas1;
// Obtain the WebGL context from the <canvas> component instance. // Obtain the WebGL context from the <canvas> component instance.
...@@ -38,9 +39,9 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0); ...@@ -38,9 +39,9 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0);
**Table 1** Type **Table 1** Type
| Name| Type| | Name| Type|
| -------- | -------- | | -------- | -------- |
| GLenum | number | | GLenum | number |
| GLboolean | boolean | | GLboolean | boolean |
| GLbitfield | number | | GLbitfield | number |
| GLbyte | number | | GLbyte | number |
...@@ -53,7 +54,7 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0); ...@@ -53,7 +54,7 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0);
| GLushort | number | | GLushort | number |
| GLuint | number | | GLuint | number |
| GLfloat | number | | GLfloat | number |
| GLclampf | number | | GLclampf | number |
| TexImageSource | ImageData | | TexImageSource | ImageData |
| Float32List | array | | Float32List | array |
| Int32List | array | | Int32List | array |
...@@ -76,7 +77,7 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0); ...@@ -76,7 +77,7 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0);
| WebGLShader | | WebGLShader |
| WebGLTexture | | WebGLTexture |
| WebGLUniformLocation | | WebGLUniformLocation |
| [WebGLActiveInfo](#webglactiveinfo) | | [WebGLActiveInfo](#webglactiveinfo) |
| [WebGLShaderPrecisionFormat](#webglshaderprecisionformat) | | [WebGLShaderPrecisionFormat](#webglshaderprecisionformat) |
| [WebGLRenderingContextBase](#webglrenderingcontextbase) | | [WebGLRenderingContextBase](#webglrenderingcontextbase) |
| [WebGLRenderingContextOverloads](#webglrenderingcontextoverloads) | | [WebGLRenderingContextOverloads](#webglrenderingcontextoverloads) |
...@@ -87,39 +88,39 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0); ...@@ -87,39 +88,39 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0);
WebGLContextAttributes WebGLContextAttributes
| Name| Type| Mandatory| | Name| Type| Mandatory|
| -------- | -------- | -------- | | -------- | -------- | -------- |
| alpha | boolean | No| | alpha | boolean | No|
| depth | boolean | No| | depth | boolean | No|
| stencil | boolean | No| | stencil | boolean | No|
| antialias | boolean | No| | antialias | boolean | No|
| premultipliedAlpha | boolean | No| | premultipliedAlpha | boolean | No|
| preserveDrawingBuffer | boolean | No| | preserveDrawingBuffer | boolean | No|
| powerPreference | WebGLPowerPreference | No| | powerPreference | WebGLPowerPreference | No|
| failIfMajorPerformanceCaveat | boolean | No| | failIfMajorPerformanceCaveat | boolean | No|
| desynchronized | boolean | No| | desynchronized | boolean | No|
## WebGLActiveInfo ## WebGLActiveInfo
WebGLActiveInfo WebGLActiveInfo
| Name| Type| Mandatory| | Name| Type| Mandatory|
| -------- | -------- | -------- | | -------- | -------- | -------- |
| size | GLint | Yes| | size | GLint | Yes|
| type | GLenum | Yes| | type | GLenum | Yes|
| name | string | Yes| | name | string | Yes|
## WebGLShaderPrecisionFormat ## WebGLShaderPrecisionFormat
WebGLShaderPrecisionFormat WebGLShaderPrecisionFormat
| Name| Type| Mandatory| | Name| Type| Mandatory|
| -------- | -------- | -------- | | -------- | -------- | -------- |
| rangeMin | GLint | Yes| | rangeMin | GLint | Yes|
| rangeMax | GLint | Yes| | rangeMax | GLint | Yes|
| precision | GLint | Yes| | precision | GLint | Yes|
## WebGLRenderingContextBase ## WebGLRenderingContextBase
...@@ -129,455 +130,455 @@ WebGLRenderingContextBase ...@@ -129,455 +130,455 @@ WebGLRenderingContextBase
### Attributes ### Attributes
| Name| Type| Mandatory| | Name| Type| Mandatory|
| -------- | -------- | -------- | | -------- | -------- | -------- |
| DEPTH_BUFFER_BIT | GLenum | Yes| | DEPTH_BUFFER_BIT | GLenum | Yes|
| STENCIL_BUFFER_BIT | GLenum | Yes| | STENCIL_BUFFER_BIT | GLenum | Yes|
| COLOR_BUFFER_BIT | GLenum | Yes| | COLOR_BUFFER_BIT | GLenum | Yes|
| POINTS | GLenum | Yes| | POINTS | GLenum | Yes|
| LINES | GLenum | Yes| | LINES | GLenum | Yes|
| LINE_LOOP | GLenum | Yes| | LINE_LOOP | GLenum | Yes|
| LINE_STRIP | GLenum | Yes| | LINE_STRIP | GLenum | Yes|
| TRIANGLES | GLenum | Yes| | TRIANGLES | GLenum | Yes|
| TRIANGLE_STRIP | GLenum | Yes| | TRIANGLE_STRIP | GLenum | Yes|
| TRIANGLE_FAN | GLenum | Yes| | TRIANGLE_FAN | GLenum | Yes|
| ZERO | GLenum | Yes| | ZERO | GLenum | Yes|
| ONE | GLenum | Yes| | ONE | GLenum | Yes|
| SRC_COLOR | GLenum | Yes| | SRC_COLOR | GLenum | Yes|
| ONE_MINUS_SRC_COLOR | GLenum | Yes| | ONE_MINUS_SRC_COLOR | GLenum | Yes|
| SRC_ALPHA | GLenum | Yes| | SRC_ALPHA | GLenum | Yes|
| ONE_MINUS_SRC_ALPHA | GLenum | Yes| | ONE_MINUS_SRC_ALPHA | GLenum | Yes|
| DST_ALPHA | GLenum | Yes| | DST_ALPHA | GLenum | Yes|
| ONE_MINUS_DST_ALPHA | GLenum | Yes| | ONE_MINUS_DST_ALPHA | GLenum | Yes|
| DST_COLOR | GLenum | Yes| | DST_COLOR | GLenum | Yes|
| ONE_MINUS_DST_COLOR | GLenum | Yes| | ONE_MINUS_DST_COLOR | GLenum | Yes|
| SRC_ALPHA_SATURATE | GLenum | Yes| | SRC_ALPHA_SATURATE | GLenum | Yes|
| FUNC_ADD | GLenum | Yes| | FUNC_ADD | GLenum | Yes|
| BLEND_EQUATION | GLenum | Yes| | BLEND_EQUATION | GLenum | Yes|
| BLEND_EQUATION_RGB | GLenum | Yes| | BLEND_EQUATION_RGB | GLenum | Yes|
| BLEND_EQUATION_ALPHA | GLenum | Yes| | BLEND_EQUATION_ALPHA | GLenum | Yes|
| FUNC_SUBTRACT | GLenum | Yes| | FUNC_SUBTRACT | GLenum | Yes|
| FUNC_REVERSE_SUBTRACT | GLenum | Yes| | FUNC_REVERSE_SUBTRACT | GLenum | Yes|
| BLEND_DST_RGB | GLenum | Yes| | BLEND_DST_RGB | GLenum | Yes|
| BLEND_SRC_RGB | GLenum | Yes| | BLEND_SRC_RGB | GLenum | Yes|
| BLEND_DST_ALPHA | GLenum | Yes| | BLEND_DST_ALPHA | GLenum | Yes|
| BLEND_SRC_ALPHA | GLenum | Yes| | BLEND_SRC_ALPHA | GLenum | Yes|
| CONSTANT_COLOR | GLenum | Yes| | CONSTANT_COLOR | GLenum | Yes|
| ONE_MINUS_CONSTANT_COLOR | GLenum | Yes| | ONE_MINUS_CONSTANT_COLOR | GLenum | Yes|
| CONSTANT_ALPHA | GLenum | Yes| | CONSTANT_ALPHA | GLenum | Yes|
| ONE_MINUS_CONSTANT_ALPHA | GLenum | Yes| | ONE_MINUS_CONSTANT_ALPHA | GLenum | Yes|
| BLEND_COLOR | GLenum | Yes| | BLEND_COLOR | GLenum | Yes|
| ARRAY_BUFFER | GLenum | Yes| | ARRAY_BUFFER | GLenum | Yes|
| ELEMENT_ARRAY_BUFFER | GLenum | Yes| | ELEMENT_ARRAY_BUFFER | GLenum | Yes|
| ARRAY_BUFFER_BINDING | GLenum | Yes| | ARRAY_BUFFER_BINDING | GLenum | Yes|
| ELEMENT_ARRAY_BUFFER_BINDING | GLenum | Yes| | ELEMENT_ARRAY_BUFFER_BINDING | GLenum | Yes|
| STREAM_DRAW | GLenum | Yes| | STREAM_DRAW | GLenum | Yes|
| STATIC_DRAW | GLenum | Yes| | STATIC_DRAW | GLenum | Yes|
| DYNAMIC_DRAW | GLenum | Yes| | DYNAMIC_DRAW | GLenum | Yes|
| BUFFER_SIZE | GLenum | Yes| | BUFFER_SIZE | GLenum | Yes|
| BUFFER_USAGE | GLenum | Yes| | BUFFER_USAGE | GLenum | Yes|
| CURRENT_VERTEX_ATTRIB | GLenum | Yes| | CURRENT_VERTEX_ATTRIB | GLenum | Yes|
| FRONT | GLenum | Yes| | FRONT | GLenum | Yes|
| BACK | GLenum | Yes| | BACK | GLenum | Yes|
| FRONT_AND_BACK | GLenum | Yes| | FRONT_AND_BACK | GLenum | Yes|
| CULL_FACE | GLenum | Yes| | CULL_FACE | GLenum | Yes|
| BLEND | GLenum | Yes| | BLEND | GLenum | Yes|
| DITHER | GLenum | Yes| | DITHER | GLenum | Yes|
| STENCIL_TEST | GLenum | Yes| | STENCIL_TEST | GLenum | Yes|
| DEPTH_TEST | GLenum | Yes| | DEPTH_TEST | GLenum | Yes|
| SCISSOR_TEST | GLenum | Yes| | SCISSOR_TEST | GLenum | Yes|
| POLYGON_OFFSET_FILL | GLenum | Yes| | POLYGON_OFFSET_FILL | GLenum | Yes|
| SAMPLE_ALPHA_TO_COVERAGE | GLenum | Yes| | SAMPLE_ALPHA_TO_COVERAGE | GLenum | Yes|
| SAMPLE_COVERAGE | GLenum | Yes| | SAMPLE_COVERAGE | GLenum | Yes|
| NO_ERROR | GLenum | Yes| | NO_ERROR | GLenum | Yes|
| INVALID_ENUM | GLenum | Yes| | INVALID_ENUM | GLenum | Yes|
| INVALID_VALUE | GLenum | Yes| | INVALID_VALUE | GLenum | Yes|
| INVALID_OPERATION | GLenum | Yes| | INVALID_OPERATION | GLenum | Yes|
| OUT_OF_MEMORY | GLenum | Yes| | OUT_OF_MEMORY | GLenum | Yes|
| CW | GLenum | Yes| | CW | GLenum | Yes|
| CCW | GLenum | Yes| | CCW | GLenum | Yes|
| LINE_WIDTH | GLenum | Yes| | LINE_WIDTH | GLenum | Yes|
| ALIASED_POINT_SIZE_RANGE | GLenum | Yes| | ALIASED_POINT_SIZE_RANGE | GLenum | Yes|
| ALIASED_LINE_WIDTH_RANGE | GLenum | Yes| | ALIASED_LINE_WIDTH_RANGE | GLenum | Yes|
| CULL_FACE_MODE | GLenum | Yes| | CULL_FACE_MODE | GLenum | Yes|
| FRONT_FACE | GLenum | Yes| | FRONT_FACE | GLenum | Yes|
| DEPTH_RANGE | GLenum | Yes| | DEPTH_RANGE | GLenum | Yes|
| DEPTH_WRITEMASK | GLenum | Yes| | DEPTH_WRITEMASK | GLenum | Yes|
| DEPTH_CLEAR_VALUE | GLenum | Yes| | DEPTH_CLEAR_VALUE | GLenum | Yes|
| DEPTH_FUNC | GLenum | Yes| | DEPTH_FUNC | GLenum | Yes|
| STENCIL_CLEAR_VALUE | GLenum | Yes| | STENCIL_CLEAR_VALUE | GLenum | Yes|
| STENCIL_FUNC | GLenum | Yes| | STENCIL_FUNC | GLenum | Yes|
| STENCIL_FAIL | GLenum | Yes| | STENCIL_FAIL | GLenum | Yes|
| STENCIL_PASS_DEPTH_FAIL | GLenum | Yes| | STENCIL_PASS_DEPTH_FAIL | GLenum | Yes|
| STENCIL_PASS_DEPTH_PASS | GLenum | Yes| | STENCIL_PASS_DEPTH_PASS | GLenum | Yes|
| STENCIL_REF | GLenum | Yes| | STENCIL_REF | GLenum | Yes|
| STENCIL_VALUE_MASK | GLenum | Yes| | STENCIL_VALUE_MASK | GLenum | Yes|
| STENCIL_WRITEMASK | GLenum | Yes| | STENCIL_WRITEMASK | GLenum | Yes|
| STENCIL_BACK_FUNC | GLenum | Yes| | STENCIL_BACK_FUNC | GLenum | Yes|
| STENCIL_BACK_FAIL | GLenum | Yes| | STENCIL_BACK_FAIL | GLenum | Yes|
| STENCIL_BACK_PASS_DEPTH_FAIL | GLenum | Yes| | STENCIL_BACK_PASS_DEPTH_FAIL | GLenum | Yes|
| STENCIL_BACK_PASS_DEPTH_PASS | GLenum | Yes| | STENCIL_BACK_PASS_DEPTH_PASS | GLenum | Yes|
| STENCIL_BACK_REF | GLenum | Yes| | STENCIL_BACK_REF | GLenum | Yes|
| STENCIL_BACK_VALUE_MASK | GLenum | Yes| | STENCIL_BACK_VALUE_MASK | GLenum | Yes|
| STENCIL_BACK_WRITEMASK | GLenum | Yes| | STENCIL_BACK_WRITEMASK | GLenum | Yes|
| VIEWPORT | GLenum | Yes| | VIEWPORT | GLenum | Yes|
| SCISSOR_BOX | GLenum | Yes| | SCISSOR_BOX | GLenum | Yes|
| COLOR_CLEAR_VALUE | GLenum | Yes| | COLOR_CLEAR_VALUE | GLenum | Yes|
| COLOR_WRITEMASK | GLenum | Yes| | COLOR_WRITEMASK | GLenum | Yes|
| UNPACK_ALIGNMENT | GLenum | Yes| | UNPACK_ALIGNMENT | GLenum | Yes|
| PACK_ALIGNMENT | GLenum | Yes| | PACK_ALIGNMENT | GLenum | Yes|
| MAX_TEXTURE_SIZE | GLenum | Yes| | MAX_TEXTURE_SIZE | GLenum | Yes|
| MAX_VIEWPORT_DIMS | GLenum | Yes| | MAX_VIEWPORT_DIMS | GLenum | Yes|
| SUBPIXEL_BITS | GLenum | Yes| | SUBPIXEL_BITS | GLenum | Yes|
| RED_BITS | GLenum | Yes| | RED_BITS | GLenum | Yes|
| GREEN_BITS | GLenum | Yes| | GREEN_BITS | GLenum | Yes|
| BLUE_BITS | GLenum | Yes| | BLUE_BITS | GLenum | Yes|
| ALPHA_BITS | GLenum | Yes| | ALPHA_BITS | GLenum | Yes|
| DEPTH_BITS | GLenum | Yes| | DEPTH_BITS | GLenum | Yes|
| STENCIL_BITS | GLenum | Yes| | STENCIL_BITS | GLenum | Yes|
| POLYGON_OFFSET_UNITS | GLenum | Yes| | POLYGON_OFFSET_UNITS | GLenum | Yes|
| POLYGON_OFFSET_FACTOR | GLenum | Yes| | POLYGON_OFFSET_FACTOR | GLenum | Yes|
| TEXTURE_BINDING_2D | GLenum | Yes| | TEXTURE_BINDING_2D | GLenum | Yes|
| SAMPLE_BUFFERS | GLenum | Yes| | SAMPLE_BUFFERS | GLenum | Yes|
| SAMPLES | GLenum | Yes| | SAMPLES | GLenum | Yes|
| SAMPLE_COVERAGE_VALUE | GLenum | Yes| | SAMPLE_COVERAGE_VALUE | GLenum | Yes|
| SAMPLE_COVERAGE_INVERT | GLenum | Yes| | SAMPLE_COVERAGE_INVERT | GLenum | Yes|
| COMPRESSED_TEXTURE_FORMATS | GLenum | Yes| | COMPRESSED_TEXTURE_FORMATS | GLenum | Yes|
| DONT_CARE | GLenum | Yes| | DONT_CARE | GLenum | Yes|
| FASTEST | GLenum | Yes| | FASTEST | GLenum | Yes|
| NICEST | GLenum | Yes| | NICEST | GLenum | Yes|
| GENERATE_MIPMAP_HINT | GLenum | Yes| | GENERATE_MIPMAP_HINT | GLenum | Yes|
| BYTE | GLenum | Yes| | BYTE | GLenum | Yes|
| UNSIGNED_BYTE | GLenum | Yes| | UNSIGNED_BYTE | GLenum | Yes|
| SHORT | GLenum | Yes| | SHORT | GLenum | Yes|
| UNSIGNED_SHORT | GLenum | Yes| | UNSIGNED_SHORT | GLenum | Yes|
| INT | GLenum | Yes| | INT | GLenum | Yes|
| UNSIGNED_INT | GLenum | Yes| | UNSIGNED_INT | GLenum | Yes|
| FLOAT | GLenum | Yes| | FLOAT | GLenum | Yes|
| DEPTH_COMPONENT | GLenum | Yes| | DEPTH_COMPONENT | GLenum | Yes|
| ALPHA | GLenum | Yes| | ALPHA | GLenum | Yes|
| RGB | GLenum | Yes| | RGB | GLenum | Yes|
| RGBA | GLenum | Yes| | RGBA | GLenum | Yes|
| LUMINANCE | GLenum | Yes| | LUMINANCE | GLenum | Yes|
| LUMINANCE_ALPHA | GLenum | Yes| | LUMINANCE_ALPHA | GLenum | Yes|
| UNSIGNED_SHORT_4_4_4_4 | GLenum | Yes| | UNSIGNED_SHORT_4_4_4_4 | GLenum | Yes|
| UNSIGNED_SHORT_5_5_5_1 | GLenum | Yes| | UNSIGNED_SHORT_5_5_5_1 | GLenum | Yes|
| UNSIGNED_SHORT_5_6_5 | GLenum | Yes| | UNSIGNED_SHORT_5_6_5 | GLenum | Yes|
| FRAGMENT_SHADER | GLenum | Yes| | FRAGMENT_SHADER | GLenum | Yes|
| VERTEX_SHADER | GLenum | Yes| | VERTEX_SHADER | GLenum | Yes|
| MAX_VERTEX_ATTRIBS | GLenum | Yes| | MAX_VERTEX_ATTRIBS | GLenum | Yes|
| MAX_VERTEX_UNIFORM_VECTORS | GLenum | Yes| | MAX_VERTEX_UNIFORM_VECTORS | GLenum | Yes|
| MAX_VARYING_VECTORS | GLenum | Yes| | MAX_VARYING_VECTORS | GLenum | Yes|
| MAX_COMBINED_TEXTURE_IMAGE_UNITS | GLenum | Yes| | MAX_COMBINED_TEXTURE_IMAGE_UNITS | GLenum | Yes|
| MAX_VERTEX_TEXTURE_IMAGE_UNITS | GLenum | Yes| | MAX_VERTEX_TEXTURE_IMAGE_UNITS | GLenum | Yes|
| MAX_TEXTURE_IMAGE_UNITS | GLenum | Yes| | MAX_TEXTURE_IMAGE_UNITS | GLenum | Yes|
| MAX_FRAGMENT_UNIFORM_VECTORS | GLenum | Yes| | MAX_FRAGMENT_UNIFORM_VECTORS | GLenum | Yes|
| SHADER_TYPE | GLenum | Yes| | SHADER_TYPE | GLenum | Yes|
| DELETE_STATUS | GLenum | Yes| | DELETE_STATUS | GLenum | Yes|
| LINK_STATUS | GLenum | Yes| | LINK_STATUS | GLenum | Yes|
| VALIDATE_STATUS | GLenum | Yes| | VALIDATE_STATUS | GLenum | Yes|
| ATTACHED_SHADERS | GLenum | Yes| | ATTACHED_SHADERS | GLenum | Yes|
| ACTIVE_UNIFORMS | GLenum | Yes| | ACTIVE_UNIFORMS | GLenum | Yes|
| ACTIVE_ATTRIBUTES | GLenum | Yes| | ACTIVE_ATTRIBUTES | GLenum | Yes|
| SHADING_LANGUAGE_VERSION | GLenum | Yes| | SHADING_LANGUAGE_VERSION | GLenum | Yes|
| CURRENT_PROGRAM | GLenum | Yes| | CURRENT_PROGRAM | GLenum | Yes|
| NEVER | GLenum | Yes| | NEVER | GLenum | Yes|
| LESS | GLenum | Yes| | LESS | GLenum | Yes|
| EQUAL | GLenum | Yes| | EQUAL | GLenum | Yes|
| LEQUAL | GLenum | Yes| | LEQUAL | GLenum | Yes|
| GREATER | GLenum | Yes| | GREATER | GLenum | Yes|
| NOTEQUAL | GLenum | Yes| | NOTEQUAL | GLenum | Yes|
| GEQUAL | GLenum | Yes| | GEQUAL | GLenum | Yes|
| ALWAYS | GLenum | Yes| | ALWAYS | GLenum | Yes|
| KEEP | GLenum | Yes| | KEEP | GLenum | Yes|
| REPLACE | GLenum | Yes| | REPLACE | GLenum | Yes|
| INCR | GLenum | Yes| | INCR | GLenum | Yes|
| DECR | GLenum | Yes| | DECR | GLenum | Yes|
| INVERT | GLenum | Yes| | INVERT | GLenum | Yes|
| INCR_WRAP | GLenum | Yes| | INCR_WRAP | GLenum | Yes|
| DECR_WRAP | GLenum | Yes| | DECR_WRAP | GLenum | Yes|
| VENDOR | GLenum | Yes| | VENDOR | GLenum | Yes|
| RENDERER | GLenum | Yes| | RENDERER | GLenum | Yes|
| VERSION | GLenum | Yes| | VERSION | GLenum | Yes|
| NEAREST | GLenum | Yes| | NEAREST | GLenum | Yes|
| LINEAR | GLenum | Yes| | LINEAR | GLenum | Yes|
| NEAREST_MIPMAP_NEAREST | GLenum | Yes| | NEAREST_MIPMAP_NEAREST | GLenum | Yes|
| LINEAR_MIPMAP_NEAREST | GLenum | Yes| | LINEAR_MIPMAP_NEAREST | GLenum | Yes|
| NEAREST_MIPMAP_LINEAR | GLenum | Yes| | NEAREST_MIPMAP_LINEAR | GLenum | Yes|
| LINEAR_MIPMAP_LINEAR | GLenum | Yes| | LINEAR_MIPMAP_LINEAR | GLenum | Yes|
| TEXTURE_MIN_FILTER | GLenum | Yes| | TEXTURE_MIN_FILTER | GLenum | Yes|
| TEXTURE_WRAP_S | GLenum | Yes| | TEXTURE_WRAP_S | GLenum | Yes|
| TEXTURE_WRAP_T | GLenum | Yes| | TEXTURE_WRAP_T | GLenum | Yes|
| TEXTURE_2D | GLenum | Yes| | TEXTURE_2D | GLenum | Yes|
| TEXTURE | GLenum | Yes| | TEXTURE | GLenum | Yes|
| TEXTURE_CUBE_MAP | GLenum | Yes| | TEXTURE_CUBE_MAP | GLenum | Yes|
| TEXTURE_BINDING_CUBE_MAP | GLenum | Yes| | TEXTURE_BINDING_CUBE_MAP | GLenum | Yes|
| TEXTURE_CUBE_MAP_POSITIVE_X | GLenum | Yes| | TEXTURE_CUBE_MAP_POSITIVE_X | GLenum | Yes|
| TEXTURE_CUBE_MAP_NEGATIVE_X | GLenum | Yes| | TEXTURE_CUBE_MAP_NEGATIVE_X | GLenum | Yes|
| TEXTURE_CUBE_MAP_POSITIVE_Y | GLenum | Yes| | TEXTURE_CUBE_MAP_POSITIVE_Y | GLenum | Yes|
| TEXTURE_CUBE_MAP_NEGATIVE_Y | GLenum | Yes| | TEXTURE_CUBE_MAP_NEGATIVE_Y | GLenum | Yes|
| TEXTURE_CUBE_MAP_POSITIVE_Z | GLenum | Yes| | TEXTURE_CUBE_MAP_POSITIVE_Z | GLenum | Yes|
| TEXTURE_CUBE_MAP_NEGATIVE_Z | GLenum | Yes| | TEXTURE_CUBE_MAP_NEGATIVE_Z | GLenum | Yes|
| MAX_CUBE_MAP_TEXTURE_SIZE | GLenum | Yes| | MAX_CUBE_MAP_TEXTURE_SIZE | GLenum | Yes|
| TEXTURE0 | GLenum | Yes| | TEXTURE0 | GLenum | Yes|
| TEXTURE1 | GLenum | Yes| | TEXTURE1 | GLenum | Yes|
| TEXTURE2 | GLenum | Yes| | TEXTURE2 | GLenum | Yes|
| TEXTURE3 | GLenum | Yes| | TEXTURE3 | GLenum | Yes|
| TEXTURE4 | GLenum | Yes| | TEXTURE4 | GLenum | Yes|
| TEXTURE5 | GLenum | Yes| | TEXTURE5 | GLenum | Yes|
| TEXTURE6 | GLenum | Yes| | TEXTURE6 | GLenum | Yes|
| TEXTURE7 | GLenum | Yes| | TEXTURE7 | GLenum | Yes|
| TEXTURE8 | GLenum | Yes| | TEXTURE8 | GLenum | Yes|
| TEXTURE9 | GLenum | Yes| | TEXTURE9 | GLenum | Yes|
| TEXTURE10 | GLenum | Yes| | TEXTURE10 | GLenum | Yes|
| TEXTURE11 | GLenum | Yes| | TEXTURE11 | GLenum | Yes|
| TEXTURE12 | GLenum | Yes| | TEXTURE12 | GLenum | Yes|
| TEXTURE13 | GLenum | Yes| | TEXTURE13 | GLenum | Yes|
| TEXTURE14 | GLenum | Yes| | TEXTURE14 | GLenum | Yes|
| TEXTURE15 | GLenum | Yes| | TEXTURE15 | GLenum | Yes|
| TEXTURE16 | GLenum | Yes| | TEXTURE16 | GLenum | Yes|
| TEXTURE17 | GLenum | Yes| | TEXTURE17 | GLenum | Yes|
| TEXTURE18 | GLenum | Yes| | TEXTURE18 | GLenum | Yes|
| TEXTURE19 | GLenum | Yes| | TEXTURE19 | GLenum | Yes|
| TEXTURE20 | GLenum | Yes| | TEXTURE20 | GLenum | Yes|
| TEXTURE21 | GLenum | Yes| | TEXTURE21 | GLenum | Yes|
| TEXTURE22 | GLenum | Yes| | TEXTURE22 | GLenum | Yes|
| TEXTURE23 | GLenum | Yes| | TEXTURE23 | GLenum | Yes|
| TEXTURE24 | GLenum | Yes| | TEXTURE24 | GLenum | Yes|
| TEXTURE25 | GLenum | Yes| | TEXTURE25 | GLenum | Yes|
| TEXTURE26 | GLenum | Yes| | TEXTURE26 | GLenum | Yes|
| TEXTURE27 | GLenum | Yes| | TEXTURE27 | GLenum | Yes|
| TEXTURE28 | GLenum | Yes| | TEXTURE28 | GLenum | Yes|
| TEXTURE29 | GLenum | Yes| | TEXTURE29 | GLenum | Yes|
| TEXTURE30 | GLenum | Yes| | TEXTURE30 | GLenum | Yes|
| TEXTURE31 | GLenum | Yes| | TEXTURE31 | GLenum | Yes|
| ACTIVE_TEXTURE | GLenum | Yes| | ACTIVE_TEXTURE | GLenum | Yes|
| REPEAT | GLenum | Yes| | REPEAT | GLenum | Yes|
| CLAMP_TO_EDGE | GLenum | Yes| | CLAMP_TO_EDGE | GLenum | Yes|
| MIRRORED_REPEAT | GLenum | Yes| | MIRRORED_REPEAT | GLenum | Yes|
| FLOAT_VEC2 | GLenum | Yes| | FLOAT_VEC2 | GLenum | Yes|
| FLOAT_VEC3 | GLenum | Yes| | FLOAT_VEC3 | GLenum | Yes|
| FLOAT_VEC4 | GLenum | Yes| | FLOAT_VEC4 | GLenum | Yes|
| INT_VEC2 | GLenum | Yes| | INT_VEC2 | GLenum | Yes|
| INT_VEC3 | GLenum | Yes| | INT_VEC3 | GLenum | Yes|
| INT_VEC4 | GLenum | Yes| | INT_VEC4 | GLenum | Yes|
| BOOL | GLenum | Yes| | BOOL | GLenum | Yes|
| BOOL_VEC2 | GLenum | Yes| | BOOL_VEC2 | GLenum | Yes|
| BOOL_VEC3 | GLenum | Yes| | BOOL_VEC3 | GLenum | Yes|
| BOOL_VEC4 | GLenum | Yes| | BOOL_VEC4 | GLenum | Yes|
| FLOAT_MAT2 | GLenum | Yes| | FLOAT_MAT2 | GLenum | Yes|
| FLOAT_MAT3 | GLenum | Yes| | FLOAT_MAT3 | GLenum | Yes|
| FLOAT_MAT4 | GLenum | Yes| | FLOAT_MAT4 | GLenum | Yes|
| SAMPLER_2D | GLenum | Yes| | SAMPLER_2D | GLenum | Yes|
| SAMPLER_CUBE | GLenum | Yes| | SAMPLER_CUBE | GLenum | Yes|
| VERTEX_ATTRIB_ARRAY_ENABLED | GLenum | Yes| | VERTEX_ATTRIB_ARRAY_ENABLED | GLenum | Yes|
| VERTEX_ATTRIB_ARRAY_SIZE | GLenum | Yes| | VERTEX_ATTRIB_ARRAY_SIZE | GLenum | Yes|
| VERTEX_ATTRIB_ARRAY_STRIDE | GLenum | Yes| | VERTEX_ATTRIB_ARRAY_STRIDE | GLenum | Yes|
| VERTEX_ATTRIB_ARRAY_TYPE | GLenum | Yes| | VERTEX_ATTRIB_ARRAY_TYPE | GLenum | Yes|
| VERTEX_ATTRIB_ARRAY_NORMALIZED | GLenum | Yes| | VERTEX_ATTRIB_ARRAY_NORMALIZED | GLenum | Yes|
| VERTEX_ATTRIB_ARRAY_POINTER | GLenum | Yes| | VERTEX_ATTRIB_ARRAY_POINTER | GLenum | Yes|
| VERTEX_ATTRIB_ARRAY_BUFFER_BINDING | GLenum | Yes| | VERTEX_ATTRIB_ARRAY_BUFFER_BINDING | GLenum | Yes|
| IMPLEMENTATION_COLOR_READ_TYPE | GLenum | Yes| | IMPLEMENTATION_COLOR_READ_TYPE | GLenum | Yes|
| IMPLEMENTATION_COLOR_READ_FORMAT | GLenum | Yes| | IMPLEMENTATION_COLOR_READ_FORMAT | GLenum | Yes|
| COMPILE_STATUS | GLenum | Yes| | COMPILE_STATUS | GLenum | Yes|
| LOW_FLOAT | GLenum | Yes| | LOW_FLOAT | GLenum | Yes|
| MEDIUM_FLOAT | GLenum | Yes| | MEDIUM_FLOAT | GLenum | Yes|
| HIGH_FLOAT | GLenum | Yes| | HIGH_FLOAT | GLenum | Yes|
| LOW_INT | GLenum | Yes| | LOW_INT | GLenum | Yes|
| MEDIUM_INT | GLenum | Yes| | MEDIUM_INT | GLenum | Yes|
| HIGH_INT | GLenum | Yes| | HIGH_INT | GLenum | Yes|
| FRAMEBUFFER | GLenum | Yes| | FRAMEBUFFER | GLenum | Yes|
| RENDERBUFFER | GLenum | Yes| | RENDERBUFFER | GLenum | Yes|
| RGBA4 | GLenum | Yes| | RGBA4 | GLenum | Yes|
| RGB5_A1 | GLenum | Yes| | RGB5_A1 | GLenum | Yes|
| RGB565 | GLenum | Yes| | RGB565 | GLenum | Yes|
| DEPTH_COMPONENT16 | GLenum | Yes| | DEPTH_COMPONENT16 | GLenum | Yes|
| STENCIL_INDEX8 | GLenum | Yes| | STENCIL_INDEX8 | GLenum | Yes|
| DEPTH_STENCIL | GLenum | Yes| | DEPTH_STENCIL | GLenum | Yes|
| RENDERBUFFER_WIDTH | GLenum | Yes| | RENDERBUFFER_WIDTH | GLenum | Yes|
| RENDERBUFFER_HEIGHT | GLenum | Yes| | RENDERBUFFER_HEIGHT | GLenum | Yes|
| RENDERBUFFER_INTERNAL_FORMAT | GLenum | Yes| | RENDERBUFFER_INTERNAL_FORMAT | GLenum | Yes|
| RENDERBUFFER_RED_SIZE | GLenum | Yes| | RENDERBUFFER_RED_SIZE | GLenum | Yes|
| RENDERBUFFER_GREEN_SIZE | GLenum | Yes| | RENDERBUFFER_GREEN_SIZE | GLenum | Yes|
| RENDERBUFFER_BLUE_SIZE | GLenum | Yes| | RENDERBUFFER_BLUE_SIZE | GLenum | Yes|
| RENDERBUFFER_ALPHA_SIZE | GLenum | Yes| | RENDERBUFFER_ALPHA_SIZE | GLenum | Yes|
| RENDERBUFFER_DEPTH_SIZE | GLenum | Yes| | RENDERBUFFER_DEPTH_SIZE | GLenum | Yes|
| RENDERBUFFER_STENCIL_SIZE | GLenum | Yes| | RENDERBUFFER_STENCIL_SIZE | GLenum | Yes|
| FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE | GLenum | Yes| | FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE | GLenum | Yes|
| FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL | GLenum | Yes| | FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL | GLenum | Yes|
| FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE | GLenum | Yes| | FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE | GLenum | Yes|
| COLOR_ATTACHMENT0 | GLenum | Yes| | COLOR_ATTACHMENT0 | GLenum | Yes|
| DEPTH_ATTACHMENT | GLenum | Yes| | DEPTH_ATTACHMENT | GLenum | Yes|
| STENCIL_ATTACHMENT | GLenum | Yes| | STENCIL_ATTACHMENT | GLenum | Yes|
| DEPTH_STENCIL_ATTACHMENT | GLenum | Yes| | DEPTH_STENCIL_ATTACHMENT | GLenum | Yes|
| NONE | GLenum | Yes| | NONE | GLenum | Yes|
| FRAMEBUFFER_COMPLETE | GLenum | Yes| | FRAMEBUFFER_COMPLETE | GLenum | Yes|
| FRAMEBUFFER_INCOMPLETE_ATTACHMENT | GLenum | Yes| | FRAMEBUFFER_INCOMPLETE_ATTACHMENT | GLenum | Yes|
| FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT | GLenum | Yes| | FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT | GLenum | Yes|
| FRAMEBUFFER_INCOMPLETE_DIMENSIONS | GLenum | Yes| | FRAMEBUFFER_INCOMPLETE_DIMENSIONS | GLenum | Yes|
| FRAMEBUFFER_UNSUPPORTED | GLenum | Yes| | FRAMEBUFFER_UNSUPPORTED | GLenum | Yes|
| FRAMEBUFFER_BINDING | GLenum | Yes| | FRAMEBUFFER_BINDING | GLenum | Yes|
| RENDERBUFFER_BINDING | GLenum | Yes| | RENDERBUFFER_BINDING | GLenum | Yes|
| MAX_RENDERBUFFER_SIZE | GLenum | Yes| | MAX_RENDERBUFFER_SIZE | GLenum | Yes|
| INVALID_FRAMEBUFFER_OPERATION | GLenum | Yes| | INVALID_FRAMEBUFFER_OPERATION | GLenum | Yes|
| UNPACK_FLIP_Y_WEBGL | GLenum | Yes| | UNPACK_FLIP_Y_WEBGL | GLenum | Yes|
| UNPACK_PREMULTIPLY_ALPHA_WEBGL | GLenum | Yes| | UNPACK_PREMULTIPLY_ALPHA_WEBGL | GLenum | Yes|
| CONTEXT_LOST_WEBGL | GLenum | Yes| | CONTEXT_LOST_WEBGL | GLenum | Yes|
| UNPACK_COLORSPACE_CONVERSION_WEBGL | GLenum | Yes| | UNPACK_COLORSPACE_CONVERSION_WEBGL | GLenum | Yes|
| BROWSER_DEFAULT_WEBGL | GLenum | Yes| | BROWSER_DEFAULT_WEBGL | GLenum | Yes|
| canvas | HTMLCanvasElement&nbsp;\|&nbsp;OffscreenCanvas | Yes| | canvas | HTMLCanvasElement&nbsp;\|&nbsp;OffscreenCanvas | Yes|
| drawingBufferWidth | GLsizei | Yes| | drawingBufferWidth | GLsizei | Yes|
| drawingBufferHeight | GLsizei | Yes| | drawingBufferHeight | GLsizei | Yes|
### Methods ### Methods
| Method| Return Value Type| | Method| Return Value Type|
| -------- | -------- | | -------- | -------- |
| getContextAttributes() | WebGLContextAttributes&nbsp;\|&nbsp;null | | getContextAttributes() | WebGLContextAttributes&nbsp;\|&nbsp;null |
| isContextLost() | boolean | | isContextLost() | boolean |
| getSupportedExtensions() | string[]&nbsp;\|&nbsp;null | | getSupportedExtensions() | string[]&nbsp;\|&nbsp;null |
| getExtension(name:&nbsp;string) | any | | getExtension(name:&nbsp;string) | any |
| activeTexture(texture:&nbsp;GLenum) | void | | activeTexture(texture:&nbsp;GLenum) | void |
| attachShader(program:&nbsp;WebGLProgram,&nbsp;shader:&nbsp;WebGLShader) | void | | attachShader(program:&nbsp;WebGLProgram,&nbsp;shader:&nbsp;WebGLShader) | void |
| bindAttribLocation(program:&nbsp;WebGLProgram,&nbsp;index:&nbsp;GLuint,&nbsp;name:&nbsp;string) | void | | bindAttribLocation(program:&nbsp;WebGLProgram,&nbsp;index:&nbsp;GLuint,&nbsp;name:&nbsp;string) | void |
| bindBuffer(target:&nbsp;GLenum,&nbsp;buffer:&nbsp;WebGLBuffer&nbsp;\|&nbsp;null) | void | | bindBuffer(target:&nbsp;GLenum,&nbsp;buffer:&nbsp;WebGLBuffer&nbsp;\|&nbsp;null) | void |
| bindFramebuffer(target:&nbsp;GLenum,&nbsp;framebuffer:&nbsp;WebGLFramebuffer&nbsp;\|&nbsp;null) | void | | bindFramebuffer(target:&nbsp;GLenum,&nbsp;framebuffer:&nbsp;WebGLFramebuffer&nbsp;\|&nbsp;null) | void |
| bindRenderbuffer(target:&nbsp;GLenum,&nbsp;renderbuffer:&nbsp;WebGLRenderbuffer&nbsp;\|&nbsp;null) | void | | bindRenderbuffer(target:&nbsp;GLenum,&nbsp;renderbuffer:&nbsp;WebGLRenderbuffer&nbsp;\|&nbsp;null) | void |
| bindTexture(target:&nbsp;GLenum,&nbsp;texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null) | void | | bindTexture(target:&nbsp;GLenum,&nbsp;texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null) | void |
| blendColor(red:&nbsp;GLclampf,&nbsp;green:&nbsp;GLclampf,&nbsp;blue:&nbsp;GLclampf,&nbsp;alpha:&nbsp;GLclampf) | void | | blendColor(red:&nbsp;GLclampf,&nbsp;green:&nbsp;GLclampf,&nbsp;blue:&nbsp;GLclampf,&nbsp;alpha:&nbsp;GLclampf) | void |
| blendEquation(mode:&nbsp;GLenum) | void | | blendEquation(mode:&nbsp;GLenum) | void |
| blendEquationSeparate(modeRGB:&nbsp;GLenum,&nbsp;modeAlpha:&nbsp;GLenum) | void | | blendEquationSeparate(modeRGB:&nbsp;GLenum,&nbsp;modeAlpha:&nbsp;GLenum) | void |
| blendFunc(sfactor:&nbsp;GLenum,&nbsp;dfactor:&nbsp;GLenum) | void | | blendFunc(sfactor:&nbsp;GLenum,&nbsp;dfactor:&nbsp;GLenum) | void |
| blendFuncSeparate(srcRGB:&nbsp;GLenum,&nbsp;dstRGB:&nbsp;GLenum,&nbsp;srcAlpha:&nbsp;GLenum,&nbsp;dstAlpha:&nbsp;GLenum) | void | | blendFuncSeparate(srcRGB:&nbsp;GLenum,&nbsp;dstRGB:&nbsp;GLenum,&nbsp;srcAlpha:&nbsp;GLenum,&nbsp;dstAlpha:&nbsp;GLenum) | void |
| checkFramebufferStatus(target:&nbsp;GLenum) | GLenum | | checkFramebufferStatus(target:&nbsp;GLenum) | GLenum |
| clear(mask:&nbsp;GLbitfield) | void | | clear(mask:&nbsp;GLbitfield) | void |
| clearColor(red:&nbsp;GLclampf,&nbsp;green:&nbsp;GLclampf,&nbsp;blue:&nbsp;GLclampf,&nbsp;alpha:&nbsp;GLclampf) | void | | clearColor(red:&nbsp;GLclampf,&nbsp;green:&nbsp;GLclampf,&nbsp;blue:&nbsp;GLclampf,&nbsp;alpha:&nbsp;GLclampf) | void |
| clearDepth(depth:&nbsp;GLclampf) | void | | clearDepth(depth:&nbsp;GLclampf) | void |
| clearStencil(s:&nbsp;GLint) | void | | clearStencil(s:&nbsp;GLint) | void |
| colorMask(red:&nbsp;GLboolean,&nbsp;green:&nbsp;GLboolean,&nbsp;blue:&nbsp;GLboolean,&nbsp;alpha:&nbsp;GLboolean) | void | | colorMask(red:&nbsp;GLboolean,&nbsp;green:&nbsp;GLboolean,&nbsp;blue:&nbsp;GLboolean,&nbsp;alpha:&nbsp;GLboolean) | void |
| compileShader(shader:&nbsp;WebGLShader) | void | | compileShader(shader:&nbsp;WebGLShader) | void |
| copyTexImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint) | void | | copyTexImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint) | void |
| copyTexSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void | | copyTexSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void |
| createBuffer() | WebGLBuffer&nbsp;\|&nbsp;null | | createBuffer() | WebGLBuffer&nbsp;\|&nbsp;null |
| createFramebuffer() | WebGLFramebuffer&nbsp;\|&nbsp;null | | createFramebuffer() | WebGLFramebuffer&nbsp;\|&nbsp;null |
| createProgram() | WebGLProgram&nbsp;\|&nbsp;null | | createProgram() | WebGLProgram&nbsp;\|&nbsp;null |
| createRenderbuffer() | WebGLRenderbuffer&nbsp;\|&nbsp;null | | createRenderbuffer() | WebGLRenderbuffer&nbsp;\|&nbsp;null |
| createShader(type:&nbsp;GLenum) | WebGLShader&nbsp;\|&nbsp;null | | createShader(type:&nbsp;GLenum) | WebGLShader&nbsp;\|&nbsp;null |
| createTexture() | WebGLTexture&nbsp;\|&nbsp;null | | createTexture() | WebGLTexture&nbsp;\|&nbsp;null |
| cullFace(mode:&nbsp;GLenum) | void | | cullFace(mode:&nbsp;GLenum) | void |
| deleteBuffer(buffer:&nbsp;WebGLBuffer&nbsp;\|&nbsp;null) | void | | deleteBuffer(buffer:&nbsp;WebGLBuffer&nbsp;\|&nbsp;null) | void |
| deleteFramebuffer(framebuffer:&nbsp;WebGLFramebuffer&nbsp;\|&nbsp;null) | void | | deleteFramebuffer(framebuffer:&nbsp;WebGLFramebuffer&nbsp;\|&nbsp;null) | void |
| deleteProgram(program:&nbsp;WebGLProgram&nbsp;\|&nbsp;null) | void | | deleteProgram(program:&nbsp;WebGLProgram&nbsp;\|&nbsp;null) | void |
| deleteRenderbuffer(renderbuffer:&nbsp;WebGLRenderbuffer&nbsp;\|&nbsp;null) | void | | deleteRenderbuffer(renderbuffer:&nbsp;WebGLRenderbuffer&nbsp;\|&nbsp;null) | void |
| deleteShader(shader:&nbsp;WebGLShader&nbsp;\|&nbsp;null) | void | | deleteShader(shader:&nbsp;WebGLShader&nbsp;\|&nbsp;null) | void |
| deleteTexture(texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null) | void | | deleteTexture(texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null) | void |
| depthFunc(func:&nbsp;GLenum) | void | | depthFunc(func:&nbsp;GLenum) | void |
| depthMask(flag:&nbsp;GLboolean) | void | | depthMask(flag:&nbsp;GLboolean) | void |
| depthRange(zNear:&nbsp;GLclampf,&nbsp;zFar:&nbsp;GLclampf) | void | | depthRange(zNear:&nbsp;GLclampf,&nbsp;zFar:&nbsp;GLclampf) | void |
| detachShader(program:&nbsp;WebGLProgram,&nbsp;shader:&nbsp;WebGLShader) | void | | detachShader(program:&nbsp;WebGLProgram,&nbsp;shader:&nbsp;WebGLShader) | void |
| disable(cap:&nbsp;GLenum) | void | | disable(cap:&nbsp;GLenum) | void |
| disableVertexAttribArray(index:&nbsp;GLuint) | void | | disableVertexAttribArray(index:&nbsp;GLuint) | void |
| drawArrays(mode:&nbsp;GLenum,&nbsp;first:&nbsp;GLint,&nbsp;count:&nbsp;GLsizei) | void | | drawArrays(mode:&nbsp;GLenum,&nbsp;first:&nbsp;GLint,&nbsp;count:&nbsp;GLsizei) | void |
| drawElements(mode:&nbsp;GLenum,&nbsp;count:&nbsp;GLsizei,&nbsp;type:&nbsp;GLenum,&nbsp;offset:&nbsp;GLintptr) | void | | drawElements(mode:&nbsp;GLenum,&nbsp;count:&nbsp;GLsizei,&nbsp;type:&nbsp;GLenum,&nbsp;offset:&nbsp;GLintptr) | void |
| enable(cap:&nbsp;GLenum) | void | | enable(cap:&nbsp;GLenum) | void |
| enableVertexAttribArray(index:&nbsp;GLuint) | void | | enableVertexAttribArray(index:&nbsp;GLuint) | void |
| finish() | void | | finish() | void |
| flush() | void | | flush() | void |
| framebufferRenderbuffer(target:&nbsp;GLenum,&nbsp;attachment:&nbsp;GLenum,&nbsp;renderbuffertarget:&nbsp;GLenum,&nbsp;renderbuffer:&nbsp;WebGLRenderbuffer&nbsp;\|&nbsp;null) | void | | framebufferRenderbuffer(target:&nbsp;GLenum,&nbsp;attachment:&nbsp;GLenum,&nbsp;renderbuffertarget:&nbsp;GLenum,&nbsp;renderbuffer:&nbsp;WebGLRenderbuffer&nbsp;\|&nbsp;null) | void |
| framebufferTexture2D(target:&nbsp;GLenum,&nbsp;attachment:&nbsp;GLenum,&nbsp;textarget:&nbsp;GLenum,&nbsp;texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null,&nbsp;level:&nbsp;GLint) | void | | framebufferTexture2D(target:&nbsp;GLenum,&nbsp;attachment:&nbsp;GLenum,&nbsp;textarget:&nbsp;GLenum,&nbsp;texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null,&nbsp;level:&nbsp;GLint) | void |
| frontFace(mode:&nbsp;GLenum) | void | | frontFace(mode:&nbsp;GLenum) | void |
| generateMipmap(target:&nbsp;GLenum) | void | | generateMipmap(target:&nbsp;GLenum) | void |
| getActiveAttrib(program:&nbsp;WebGLProgram,&nbsp;index:&nbsp;GLuint) | WebGLActiveInfo&nbsp;\|&nbsp;null | | getActiveAttrib(program:&nbsp;WebGLProgram,&nbsp;index:&nbsp;GLuint) | WebGLActiveInfo&nbsp;\|&nbsp;null |
| getActiveUniform(program:&nbsp;WebGLProgram,&nbsp;index:&nbsp;GLuint) | WebGLActiveInfo&nbsp;\|&nbsp;null | | getActiveUniform(program:&nbsp;WebGLProgram,&nbsp;index:&nbsp;GLuint) | WebGLActiveInfo&nbsp;\|&nbsp;null |
| getAttachedShaders(program:&nbsp;WebGLProgram) | WebGLShader[]&nbsp;\|&nbsp;null | | getAttachedShaders(program:&nbsp;WebGLProgram) | WebGLShader[]&nbsp;\|&nbsp;null |
| getAttribLocation(program:&nbsp;WebGLProgram,&nbsp;name:&nbsp;string) | GLint | | getAttribLocation(program:&nbsp;WebGLProgram,&nbsp;name:&nbsp;string) | GLint |
| getBufferParameter(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any | | getBufferParameter(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any |
| getParameter(pname:&nbsp;GLenum) | any | | getParameter(pname:&nbsp;GLenum) | any |
| getError() | GLenum | | getError() | GLenum |
| getFramebufferAttachmentParameter(target:&nbsp;GLenum,&nbsp;attachment:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any | | getFramebufferAttachmentParameter(target:&nbsp;GLenum,&nbsp;attachment:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any |
| getProgramParameter(program:&nbsp;WebGLProgram,&nbsp;pname:&nbsp;GLenum) | any | | getProgramParameter(program:&nbsp;WebGLProgram,&nbsp;pname:&nbsp;GLenum) | any |
| getProgramInfoLog(program:&nbsp;WebGLProgram) | string&nbsp;\|&nbsp;null | | getProgramInfoLog(program:&nbsp;WebGLProgram) | string&nbsp;\|&nbsp;null |
| getRenderbufferParameter(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any | | getRenderbufferParameter(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any |
| getShaderParameter(shader:&nbsp;WebGLShader,&nbsp;pname:&nbsp;GLenum) | any | | getShaderParameter(shader:&nbsp;WebGLShader,&nbsp;pname:&nbsp;GLenum) | any |
| getShaderPrecisionFormat(shadertype:&nbsp;GLenum,&nbsp;precisiontype:&nbsp;GLenum) | WebGLShaderPrecisionFormat&nbsp;\|&nbsp;null | | getShaderPrecisionFormat(shadertype:&nbsp;GLenum,&nbsp;precisiontype:&nbsp;GLenum) | WebGLShaderPrecisionFormat&nbsp;\|&nbsp;null |
| getShaderInfoLog(shader:&nbsp;WebGLShader) | string&nbsp;\|&nbsp;null | | getShaderInfoLog(shader:&nbsp;WebGLShader) | string&nbsp;\|&nbsp;null |
| getShaderSource(shader:&nbsp;WebGLShader) | string&nbsp;\|&nbsp;null | | getShaderSource(shader:&nbsp;WebGLShader) | string&nbsp;\|&nbsp;null |
| getTexParameter(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any | | getTexParameter(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any |
| getUniform(program:&nbsp;WebGLProgram,&nbsp;location:&nbsp;WebGLUniformLocation) | any | | getUniform(program:&nbsp;WebGLProgram,&nbsp;location:&nbsp;WebGLUniformLocation) | any |
| getUniformLocation(program:&nbsp;WebGLProgram,&nbsp;name:&nbsp;string) | WebGLUniformLocation&nbsp;\|&nbsp;null | | getUniformLocation(program:&nbsp;WebGLProgram,&nbsp;name:&nbsp;string) | WebGLUniformLocation&nbsp;\|&nbsp;null |
| getVertexAttrib(index:&nbsp;GLuint,&nbsp;pname:&nbsp;GLenum) | any | | getVertexAttrib(index:&nbsp;GLuint,&nbsp;pname:&nbsp;GLenum) | any |
| getVertexAttribOffset(index:&nbsp;GLuint,&nbsp;pname:&nbsp;GLenum) | GLintptr | | getVertexAttribOffset(index:&nbsp;GLuint,&nbsp;pname:&nbsp;GLenum) | GLintptr |
| hint(target:&nbsp;GLenum,&nbsp;mode:&nbsp;GLenum) | void | | hint(target:&nbsp;GLenum,&nbsp;mode:&nbsp;GLenum) | void |
| isBuffer(buffer:&nbsp;WebGLBuffer&nbsp;\|&nbsp;null) | GLboolean | | isBuffer(buffer:&nbsp;WebGLBuffer&nbsp;\|&nbsp;null) | GLboolean |
| isEnabled(cap:&nbsp;GLenum) | GLboolean | | isEnabled(cap:&nbsp;GLenum) | GLboolean |
| isFramebuffer(framebuffer:&nbsp;WebGLFramebuffer&nbsp;\|&nbsp;null) | GLboolean | | isFramebuffer(framebuffer:&nbsp;WebGLFramebuffer&nbsp;\|&nbsp;null) | GLboolean |
| isProgram(program:&nbsp;WebGLProgram&nbsp;\|&nbsp;null) | GLboolean | | isProgram(program:&nbsp;WebGLProgram&nbsp;\|&nbsp;null) | GLboolean |
| isRenderbuffer(renderbuffer:&nbsp;WebGLRenderbuffer&nbsp;\|&nbsp;null) | GLboolean | | isRenderbuffer(renderbuffer:&nbsp;WebGLRenderbuffer&nbsp;\|&nbsp;null) | GLboolean |
| isShader(shader:&nbsp;WebGLShader&nbsp;\|&nbsp;null) | GLboolean | | isShader(shader:&nbsp;WebGLShader&nbsp;\|&nbsp;null) | GLboolean |
| isTexture(texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null) | GLboolean | | isTexture(texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null) | GLboolean |
| lineWidth(width:&nbsp;GLfloat) | void | | lineWidth(width:&nbsp;GLfloat) | void |
| linkProgram(program:&nbsp;WebGLProgram) | void | | linkProgram(program:&nbsp;WebGLProgram) | void |
| pixelStorei(pname:&nbsp;GLenum,&nbsp;param:&nbsp;GLint&nbsp;\|&nbsp;GLboolean) | void | | pixelStorei(pname:&nbsp;GLenum,&nbsp;param:&nbsp;GLint&nbsp;\|&nbsp;GLboolean) | void |
| polygonOffset(factor:&nbsp;GLfloat,&nbsp;units:&nbsp;GLfloat) | void | | polygonOffset(factor:&nbsp;GLfloat,&nbsp;units:&nbsp;GLfloat) | void |
| renderbufferStorage(target:&nbsp;GLenum,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void | | renderbufferStorage(target:&nbsp;GLenum,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void |
| sampleCoverage(value:&nbsp;GLclampf,&nbsp;invert:&nbsp;GLboolean) | void | | sampleCoverage(value:&nbsp;GLclampf,&nbsp;invert:&nbsp;GLboolean) | void |
| scissor(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void | | scissor(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void |
| shaderSource(shader:&nbsp;WebGLShader,&nbsp;source:&nbsp;string) | void | | shaderSource(shader:&nbsp;WebGLShader,&nbsp;source:&nbsp;string) | void |
| stencilFunc(func:&nbsp;GLenum,&nbsp;ref:&nbsp;GLint,&nbsp;mask:&nbsp;GLuint) | void | | stencilFunc(func:&nbsp;GLenum,&nbsp;ref:&nbsp;GLint,&nbsp;mask:&nbsp;GLuint) | void |
| stencilFuncSeparate(face:&nbsp;GLenum,&nbsp;func:&nbsp;GLenum,&nbsp;ref:&nbsp;GLint,&nbsp;mask:&nbsp;GLuint) | void | | stencilFuncSeparate(face:&nbsp;GLenum,&nbsp;func:&nbsp;GLenum,&nbsp;ref:&nbsp;GLint,&nbsp;mask:&nbsp;GLuint) | void |
| stencilMask(mask:&nbsp;GLuint) | void | | stencilMask(mask:&nbsp;GLuint) | void |
| stencilMaskSeparate(face:&nbsp;GLenum,&nbsp;mask:&nbsp;GLuint) | void | | stencilMaskSeparate(face:&nbsp;GLenum,&nbsp;mask:&nbsp;GLuint) | void |
| stencilOp(fail:&nbsp;GLenum,&nbsp;zfail:&nbsp;GLenum,&nbsp;zpass:&nbsp;GLenum) | void | | stencilOp(fail:&nbsp;GLenum,&nbsp;zfail:&nbsp;GLenum,&nbsp;zpass:&nbsp;GLenum) | void |
| stencilOpSeparate(face:&nbsp;GLenum,&nbsp;fail:&nbsp;GLenum,&nbsp;zfail:&nbsp;GLenum,&nbsp;zpass:&nbsp;GLenum) | void | | stencilOpSeparate(face:&nbsp;GLenum,&nbsp;fail:&nbsp;GLenum,&nbsp;zfail:&nbsp;GLenum,&nbsp;zpass:&nbsp;GLenum) | void |
| texParameterf(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum,&nbsp;param:&nbsp;GLfloat) | void | | texParameterf(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum,&nbsp;param:&nbsp;GLfloat) | void |
| texParameteri(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum,&nbsp;param:&nbsp;GLint) | void | | texParameteri(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum,&nbsp;param:&nbsp;GLint) | void |
| uniform1f(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLfloat) | void | | uniform1f(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLfloat) | void |
| uniform2f(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat) | void | | uniform2f(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat) | void |
| uniform3f(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat,&nbsp;z:&nbsp;GLfloat) | void | | uniform3f(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat,&nbsp;z:&nbsp;GLfloat) | void |
| uniform4f(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat,&nbsp;z:&nbsp;GLfloat,&nbsp;w:&nbsp;GLfloat) | void | | uniform4f(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat,&nbsp;z:&nbsp;GLfloat,&nbsp;w:&nbsp;GLfloat) | void |
| uniform1i(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLint) | void | | uniform1i(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLint) | void |
| uniform2i(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint) | void | | uniform2i(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint) | void |
| uniform3i(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;z:&nbsp;GLint) | void | | uniform3i(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;z:&nbsp;GLint) | void |
| uniform4i(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;z:&nbsp;GLint,&nbsp;w:&nbsp;GLint) | void | | uniform4i(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;z:&nbsp;GLint,&nbsp;w:&nbsp;GLint) | void |
| useProgram(program:&nbsp;WebGLProgram&nbsp;\|&nbsp;null) | void | | useProgram(program:&nbsp;WebGLProgram&nbsp;\|&nbsp;null) | void |
| validateProgram(program:&nbsp;WebGLProgram) | void | | validateProgram(program:&nbsp;WebGLProgram) | void |
| vertexAttrib1f(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLfloat) | void | | vertexAttrib1f(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLfloat) | void |
| vertexAttrib2f(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat) | void | | vertexAttrib2f(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat) | void |
| vertexAttrib3f(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat,&nbsp;z:&nbsp;GLfloat) | void | | vertexAttrib3f(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat,&nbsp;z:&nbsp;GLfloat) | void |
| vertexAttrib4f(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat,&nbsp;z:&nbsp;GLfloat,&nbsp;w:&nbsp;GLfloat) | void | | vertexAttrib4f(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLfloat,&nbsp;y:&nbsp;GLfloat,&nbsp;z:&nbsp;GLfloat,&nbsp;w:&nbsp;GLfloat) | void |
| vertexAttrib1fv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Float32List) | void | | vertexAttrib1fv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Float32List) | void |
| vertexAttrib2fv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Float32List) | void | | vertexAttrib2fv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Float32List) | void |
| vertexAttrib3fv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Float32List) | void | | vertexAttrib3fv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Float32List) | void |
| vertexAttrib4fv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Float32List) | void | | vertexAttrib4fv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Float32List) | void |
| vertexAttribPointer(index:&nbsp;GLuint,&nbsp;size:&nbsp;GLint,&nbsp;type:&nbsp;GLenum,&nbsp;normalized:&nbsp;GLboolean,&nbsp;stride:&nbsp;GLsizei,&nbsp;offset:&nbsp;GLintptr) | void | | vertexAttribPointer(index:&nbsp;GLuint,&nbsp;size:&nbsp;GLint,&nbsp;type:&nbsp;GLenum,&nbsp;normalized:&nbsp;GLboolean,&nbsp;stride:&nbsp;GLsizei,&nbsp;offset:&nbsp;GLintptr) | void |
| viewport(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void | | viewport(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void |
## WebGLRenderingContextOverloads ## WebGLRenderingContextOverloads
WebGLRenderingContextOverloads WebGLRenderingContextOverloads
| Method| Return Value Type| | Method| Return Value Type|
| -------- | -------- | | -------- | -------- |
| bufferData(target:&nbsp;GLenum,&nbsp;size:&nbsp;GLsizeiptr,&nbsp;usage:&nbsp;GLenum) | void | | bufferData(target:&nbsp;GLenum,&nbsp;size:&nbsp;GLsizeiptr,&nbsp;usage:&nbsp;GLenum) | void |
| bufferData(target:&nbsp;GLenum,&nbsp;data:&nbsp;BufferSource&nbsp;\|&nbsp;null,&nbsp;usage:&nbsp;GLenum) | void | | bufferData(target:&nbsp;GLenum,&nbsp;data:&nbsp;BufferSource&nbsp;\|&nbsp;null,&nbsp;usage:&nbsp;GLenum) | void |
| bufferSubData(target:&nbsp;GLenum,&nbsp;offset:&nbsp;GLintptr,&nbsp;data:&nbsp;BufferSource) | void | | bufferSubData(target:&nbsp;GLenum,&nbsp;offset:&nbsp;GLintptr,&nbsp;data:&nbsp;BufferSource) | void |
| compressedTexImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;data:&nbsp;ArrayBufferView) | void | | compressedTexImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;data:&nbsp;ArrayBufferView) | void |
| compressedTexSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;data:&nbsp;ArrayBufferView) | void | | compressedTexSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;data:&nbsp;ArrayBufferView) | void |
| readPixels(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pixels:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void; | | readPixels(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pixels:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void; |
| texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pixels:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void | | texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pixels:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void |
| texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void | | texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void |
| texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pixels:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void | | texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pixels:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void |
| texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void | | texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void |
| uniform1fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Float32List) | void | | uniform1fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Float32List) | void |
| uniform2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Float32List) | void | | uniform2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Float32List) | void |
| uniform3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Float32List) | void | | uniform3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Float32List) | void |
| uniform4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Float32List) | void | | uniform4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Float32List) | void |
| uniform1iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Int32List) | void | | uniform1iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Int32List) | void |
| uniform2iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Int32List) | void | | uniform2iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Int32List) | void |
| uniform3iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Int32List) | void | | uniform3iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Int32List) | void |
| uniform4iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Int32List) | void | | uniform4iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v:&nbsp;Int32List) | void |
| uniformMatrix2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;value:&nbsp;Float32List) | void | | uniformMatrix2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;value:&nbsp;Float32List) | void |
| uniformMatrix3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;value:&nbsp;Float32List) | void | | uniformMatrix3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;value:&nbsp;Float32List) | void |
| uniformMatrix4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;value:&nbsp;Float32List) | void | | uniformMatrix4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;value:&nbsp;Float32List) | void |
# webgl2 # webgl2
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**
>
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
...@@ -11,7 +12,7 @@ This module provides WebGL APIs that correspond to the OpenGL ES 3.0 feature set ...@@ -11,7 +12,7 @@ This module provides WebGL APIs that correspond to the OpenGL ES 3.0 feature set
Create a **<canvas\>** component in the HML file. The following is an example: Create a **<canvas\>** component in the HML file. The following is an example:
``` ```
<div class="container"> <div class="container">
<canvas ref="canvas1" style="width : 400px; height : 200px; background-color : lightyellow;"></canvas> <canvas ref="canvas1" style="width : 400px; height : 200px; background-color : lightyellow;"></canvas>
...@@ -21,8 +22,8 @@ Create a **<canvas\>** component in the HML file. The following is an example: ...@@ -21,8 +22,8 @@ Create a **<canvas\>** component in the HML file. The following is an example:
Obtain the **<canvas\>** component instance in the JS file. The following is an example: Obtain the **<canvas\>** component instance in the JS file. The following is an example:
``` ```js
// Obtain the <canvas> component instance. // Obtain the <canvas> component instance.
const el = this.$refs.canvas1; const el = this.$refs.canvas1;
// Obtain the WebGL context from the <canvas> component instance. // Obtain the WebGL context from the <canvas> component instance.
...@@ -70,409 +71,409 @@ WebGL2RenderingContextBase ...@@ -70,409 +71,409 @@ WebGL2RenderingContextBase
### Attributes ### Attributes
| Name| Type| Mandatory| | Name| Type| Mandatory|
| -------- | -------- | -------- | | -------- | -------- | -------- |
| READ_BUFFER | GLenum | Yes| | READ_BUFFER | GLenum | Yes|
| UNPACK_ROW_LENGTH | GLenum | Yes| | UNPACK_ROW_LENGTH | GLenum | Yes|
| UNPACK_SKIP_ROWS | GLenum | Yes| | UNPACK_SKIP_ROWS | GLenum | Yes|
| UNPACK_SKIP_PIXELS | GLenum | Yes| | UNPACK_SKIP_PIXELS | GLenum | Yes|
| PACK_ROW_LENGTH | GLenum | Yes| | PACK_ROW_LENGTH | GLenum | Yes|
| PACK_SKIP_ROWS | GLenum | Yes| | PACK_SKIP_ROWS | GLenum | Yes|
| PACK_SKIP_PIXELS | GLenum | Yes| | PACK_SKIP_PIXELS | GLenum | Yes|
| COLOR | GLenum | Yes| | COLOR | GLenum | Yes|
| DEPTH | GLenum | Yes| | DEPTH | GLenum | Yes|
| STENCIL | GLenum | Yes| | STENCIL | GLenum | Yes|
| RED | GLenum | Yes| | RED | GLenum | Yes|
| RGB8 | GLenum | Yes| | RGB8 | GLenum | Yes|
| RGBA8 | GLenum | Yes| | RGBA8 | GLenum | Yes|
| RGB10_A2 | GLenum | Yes| | RGB10_A2 | GLenum | Yes|
| TEXTURE_BINDING_3D | GLenum | Yes| | TEXTURE_BINDING_3D | GLenum | Yes|
| UNPACK_SKIP_IMAGES | GLenum | Yes| | UNPACK_SKIP_IMAGES | GLenum | Yes|
| UNPACK_IMAGE_HEIGHT | GLenum | Yes| | UNPACK_IMAGE_HEIGHT | GLenum | Yes|
| TEXTURE_3D | GLenum | Yes| | TEXTURE_3D | GLenum | Yes|
| TEXTURE_WRAP_R | GLenum | Yes| | TEXTURE_WRAP_R | GLenum | Yes|
| MAX_3D_TEXTURE_SIZE | GLenum | Yes| | MAX_3D_TEXTURE_SIZE | GLenum | Yes|
| UNSIGNED_INT_2_10_10_10_REV | GLenum | Yes| | UNSIGNED_INT_2_10_10_10_REV | GLenum | Yes|
| MAX_ELEMENTS_VERTICES | GLenum | Yes| | MAX_ELEMENTS_VERTICES | GLenum | Yes|
| MAX_ELEMENTS_INDICES | GLenum | Yes| | MAX_ELEMENTS_INDICES | GLenum | Yes|
| TEXTURE_MIN_LOD | GLenum | Yes| | TEXTURE_MIN_LOD | GLenum | Yes|
| TEXTURE_MAX_LOD | GLenum | Yes| | TEXTURE_MAX_LOD | GLenum | Yes|
| TEXTURE_BASE_LEVEL | GLenum | Yes| | TEXTURE_BASE_LEVEL | GLenum | Yes|
| TEXTURE_MAX_LEVEL | GLenum | Yes| | TEXTURE_MAX_LEVEL | GLenum | Yes|
| MIN | GLenum | Yes| | MIN | GLenum | Yes|
| MAX | GLenum | Yes| | MAX | GLenum | Yes|
| DEPTH_COMPONENT24 | GLenum | Yes| | DEPTH_COMPONENT24 | GLenum | Yes|
| MAX_TEXTURE_LOD_BIAS | GLenum | Yes| | MAX_TEXTURE_LOD_BIAS | GLenum | Yes|
| TEXTURE_COMPARE_MODE | GLenum | Yes| | TEXTURE_COMPARE_MODE | GLenum | Yes|
| TEXTURE_COMPARE_FUNC | GLenum | Yes| | TEXTURE_COMPARE_FUNC | GLenum | Yes|
| CURRENT_QUERY | GLenum | Yes| | CURRENT_QUERY | GLenum | Yes|
| QUERY_RESULT | GLenum | Yes| | QUERY_RESULT | GLenum | Yes|
| QUERY_RESULT_AVAILABLE | GLenum | Yes| | QUERY_RESULT_AVAILABLE | GLenum | Yes|
| STREAM_READ | GLenum | Yes| | STREAM_READ | GLenum | Yes|
| STREAM_COPY | GLenum | Yes| | STREAM_COPY | GLenum | Yes|
| STATIC_READ | GLenum | Yes| | STATIC_READ | GLenum | Yes|
| STATIC_COPY | GLenum | Yes| | STATIC_COPY | GLenum | Yes|
| DYNAMIC_READ | GLenum | Yes| | DYNAMIC_READ | GLenum | Yes|
| DYNAMIC_COPY | GLenum | Yes| | DYNAMIC_COPY | GLenum | Yes|
| MAX_DRAW_BUFFERS | GLenum | Yes| | MAX_DRAW_BUFFERS | GLenum | Yes|
| DRAW_BUFFER0 | GLenum | Yes| | DRAW_BUFFER0 | GLenum | Yes|
| DRAW_BUFFER1 | GLenum | Yes| | DRAW_BUFFER1 | GLenum | Yes|
| DRAW_BUFFER2 | GLenum | Yes| | DRAW_BUFFER2 | GLenum | Yes|
| DRAW_BUFFER3 | GLenum | Yes| | DRAW_BUFFER3 | GLenum | Yes|
| DRAW_BUFFER4 | GLenum | Yes| | DRAW_BUFFER4 | GLenum | Yes|
| DRAW_BUFFER5 | GLenum | Yes| | DRAW_BUFFER5 | GLenum | Yes|
| DRAW_BUFFER6 | GLenum | Yes| | DRAW_BUFFER6 | GLenum | Yes|
| DRAW_BUFFER7 | GLenum | Yes| | DRAW_BUFFER7 | GLenum | Yes|
| DRAW_BUFFER8 | GLenum | Yes| | DRAW_BUFFER8 | GLenum | Yes|
| DRAW_BUFFER9 | GLenum | Yes| | DRAW_BUFFER9 | GLenum | Yes|
| DRAW_BUFFER10 | GLenum | Yes| | DRAW_BUFFER10 | GLenum | Yes|
| DRAW_BUFFER11 | GLenum | Yes| | DRAW_BUFFER11 | GLenum | Yes|
| DRAW_BUFFER12 | GLenum | Yes| | DRAW_BUFFER12 | GLenum | Yes|
| DRAW_BUFFER13 | GLenum | Yes| | DRAW_BUFFER13 | GLenum | Yes|
| DRAW_BUFFER14 | GLenum | Yes| | DRAW_BUFFER14 | GLenum | Yes|
| DRAW_BUFFER15 | GLenum | Yes| | DRAW_BUFFER15 | GLenum | Yes|
| MAX_FRAGMENT_UNIFORM_COMPONENTS | GLenum | Yes| | MAX_FRAGMENT_UNIFORM_COMPONENTS | GLenum | Yes|
| MAX_VERTEX_UNIFORM_COMPONENTS | GLenum | Yes| | MAX_VERTEX_UNIFORM_COMPONENTS | GLenum | Yes|
| SAMPLER_3D | GLenum | Yes| | SAMPLER_3D | GLenum | Yes|
| SAMPLER_2D_SHADOW | GLenum | Yes| | SAMPLER_2D_SHADOW | GLenum | Yes|
| FRAGMENT_SHADER_DERIVATIVE_HINT | GLenum | Yes| | FRAGMENT_SHADER_DERIVATIVE_HINT | GLenum | Yes|
| PIXEL_PACK_BUFFER | GLenum | Yes| | PIXEL_PACK_BUFFER | GLenum | Yes|
| PIXEL_UNPACK_BUFFER | GLenum | Yes| | PIXEL_UNPACK_BUFFER | GLenum | Yes|
| PIXEL_PACK_BUFFER_BINDING | GLenum | Yes| | PIXEL_PACK_BUFFER_BINDING | GLenum | Yes|
| PIXEL_UNPACK_BUFFER_BINDING | GLenum | Yes| | PIXEL_UNPACK_BUFFER_BINDING | GLenum | Yes|
| FLOAT_MAT2x3 | GLenum | Yes| | FLOAT_MAT2x3 | GLenum | Yes|
| FLOAT_MAT2x4 | GLenum | Yes| | FLOAT_MAT2x4 | GLenum | Yes|
| FLOAT_MAT3x2 | GLenum | Yes| | FLOAT_MAT3x2 | GLenum | Yes|
| FLOAT_MAT3x4 | GLenum | Yes| | FLOAT_MAT3x4 | GLenum | Yes|
| FLOAT_MAT4x2 | GLenum | Yes| | FLOAT_MAT4x2 | GLenum | Yes|
| FLOAT_MAT4x3 | GLenum | Yes| | FLOAT_MAT4x3 | GLenum | Yes|
| SRGB | GLenum | Yes| | SRGB | GLenum | Yes|
| SRGB8 | GLenum | Yes| | SRGB8 | GLenum | Yes|
| SRGB8_ALPHA8 | GLenum | Yes| | SRGB8_ALPHA8 | GLenum | Yes|
| COMPARE_REF_TO_TEXTURE | GLenum | Yes| | COMPARE_REF_TO_TEXTURE | GLenum | Yes|
| RGBA32F | GLenum | Yes| | RGBA32F | GLenum | Yes|
| RGB32F | GLenum | Yes| | RGB32F | GLenum | Yes|
| RGBA16F | GLenum | Yes| | RGBA16F | GLenum | Yes|
| RGB16F | GLenum | Yes| | RGB16F | GLenum | Yes|
| VERTEX_ATTRIB_ARRAY_INTEGER | GLenum | Yes| | VERTEX_ATTRIB_ARRAY_INTEGER | GLenum | Yes|
| MAX_ARRAY_TEXTURE_LAYERS | GLenum | Yes| | MAX_ARRAY_TEXTURE_LAYERS | GLenum | Yes|
| MIN_PROGRAM_TEXEL_OFFSET | GLenum | Yes| | MIN_PROGRAM_TEXEL_OFFSET | GLenum | Yes|
| MAX_PROGRAM_TEXEL_OFFSET | GLenum | Yes| | MAX_PROGRAM_TEXEL_OFFSET | GLenum | Yes|
| MAX_VARYING_COMPONENTS | GLenum | Yes| | MAX_VARYING_COMPONENTS | GLenum | Yes|
| TEXTURE_2D_ARRAY | GLenum | Yes| | TEXTURE_2D_ARRAY | GLenum | Yes|
| TEXTURE_BINDING_2D_ARRAY | GLenum | Yes| | TEXTURE_BINDING_2D_ARRAY | GLenum | Yes|
| R11F_G11F_B10F | GLenum | Yes| | R11F_G11F_B10F | GLenum | Yes|
| UNSIGNED_INT_10F_11F_11F_REV | GLenum | Yes| | UNSIGNED_INT_10F_11F_11F_REV | GLenum | Yes|
| RGB9_E5 | GLenum | Yes| | RGB9_E5 | GLenum | Yes|
| UNSIGNED_INT_5_9_9_9_REV | GLenum | Yes| | UNSIGNED_INT_5_9_9_9_REV | GLenum | Yes|
| TRANSFORM_FEEDBACK_BUFFER_MODE | GLenum | Yes| | TRANSFORM_FEEDBACK_BUFFER_MODE | GLenum | Yes|
| MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS | GLenum | Yes| | MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS | GLenum | Yes|
| TRANSFORM_FEEDBACK_VARYINGS | GLenum | Yes| | TRANSFORM_FEEDBACK_VARYINGS | GLenum | Yes|
| TRANSFORM_FEEDBACK_BUFFER_START | GLenum | Yes| | TRANSFORM_FEEDBACK_BUFFER_START | GLenum | Yes|
| TRANSFORM_FEEDBACK_BUFFER_SIZE | GLenum | Yes| | TRANSFORM_FEEDBACK_BUFFER_SIZE | GLenum | Yes|
| TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN | GLenum | Yes| | TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN | GLenum | Yes|
| RASTERIZER_DISCARD | GLenum | Yes| | RASTERIZER_DISCARD | GLenum | Yes|
| MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS | GLenum | Yes| | MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS | GLenum | Yes|
| MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS | GLenum | Yes| | MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS | GLenum | Yes|
| INTERLEAVED_ATTRIBS | GLenum | Yes| | INTERLEAVED_ATTRIBS | GLenum | Yes|
| SEPARATE_ATTRIBS | GLenum | Yes| | SEPARATE_ATTRIBS | GLenum | Yes|
| TRANSFORM_FEEDBACK_BUFFER | GLenum | Yes| | TRANSFORM_FEEDBACK_BUFFER | GLenum | Yes|
| TRANSFORM_FEEDBACK_BUFFER_BINDING | GLenum | Yes| | TRANSFORM_FEEDBACK_BUFFER_BINDING | GLenum | Yes|
| RGBA32UI | GLenum | Yes| | RGBA32UI | GLenum | Yes|
| RGB32UI | GLenum | Yes| | RGB32UI | GLenum | Yes|
| RGBA16UI | GLenum | Yes| | RGBA16UI | GLenum | Yes|
| RGB16UI | GLenum | Yes| | RGB16UI | GLenum | Yes|
| RGBA8UI | GLenum | Yes| | RGBA8UI | GLenum | Yes|
| RGB8UI | GLenum | Yes| | RGB8UI | GLenum | Yes|
| RGBA32I | GLenum | Yes| | RGBA32I | GLenum | Yes|
| RGB32I | GLenum | Yes| | RGB32I | GLenum | Yes|
| RGBA16I | GLenum | Yes| | RGBA16I | GLenum | Yes|
| RGB16I | GLenum | Yes| | RGB16I | GLenum | Yes|
| RGBA8I | GLenum | Yes| | RGBA8I | GLenum | Yes|
| RGB8I | GLenum | Yes| | RGB8I | GLenum | Yes|
| RED_INTEGER | GLenum | Yes| | RED_INTEGER | GLenum | Yes|
| RGB_INTEGER | GLenum | Yes| | RGB_INTEGER | GLenum | Yes|
| RGBA_INTEGER | GLenum | Yes| | RGBA_INTEGER | GLenum | Yes|
| SAMPLER_2D_ARRAY | GLenum | Yes| | SAMPLER_2D_ARRAY | GLenum | Yes|
| SAMPLER_2D_ARRAY_SHADOW | GLenum | Yes| | SAMPLER_2D_ARRAY_SHADOW | GLenum | Yes|
| SAMPLER_CUBE_SHADOW | GLenum | Yes| | SAMPLER_CUBE_SHADOW | GLenum | Yes|
| UNSIGNED_INT_VEC2 | GLenum | Yes| | UNSIGNED_INT_VEC2 | GLenum | Yes|
| UNSIGNED_INT_VEC3 | GLenum | Yes| | UNSIGNED_INT_VEC3 | GLenum | Yes|
| UNSIGNED_INT_VEC4 | GLenum | Yes| | UNSIGNED_INT_VEC4 | GLenum | Yes|
| INT_SAMPLER_2D | GLenum | Yes| | INT_SAMPLER_2D | GLenum | Yes|
| INT_SAMPLER_3D | GLenum | Yes| | INT_SAMPLER_3D | GLenum | Yes|
| INT_SAMPLER_CUBE | GLenum | Yes| | INT_SAMPLER_CUBE | GLenum | Yes|
| INT_SAMPLER_2D_ARRAY | GLenum | Yes| | INT_SAMPLER_2D_ARRAY | GLenum | Yes|
| UNSIGNED_INT_SAMPLER_2D | GLenum | Yes| | UNSIGNED_INT_SAMPLER_2D | GLenum | Yes|
| UNSIGNED_INT_SAMPLER_3D | GLenum | Yes| | UNSIGNED_INT_SAMPLER_3D | GLenum | Yes|
| UNSIGNED_INT_SAMPLER_CUBE | GLenum | Yes| | UNSIGNED_INT_SAMPLER_CUBE | GLenum | Yes|
| UNSIGNED_INT_SAMPLER_2D_ARRAY | GLenum | Yes| | UNSIGNED_INT_SAMPLER_2D_ARRAY | GLenum | Yes|
| DEPTH_COMPONENT32F | GLenum | Yes| | DEPTH_COMPONENT32F | GLenum | Yes|
| DEPTH32F_STENCIL8 | GLenum | Yes| | DEPTH32F_STENCIL8 | GLenum | Yes|
| FLOAT_32_UNSIGNED_INT_24_8_REV | GLenum | Yes| | FLOAT_32_UNSIGNED_INT_24_8_REV | GLenum | Yes|
| FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING | GLenum | Yes| | FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING | GLenum | Yes|
| FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE | GLenum | Yes| | FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE | GLenum | Yes|
| FRAMEBUFFER_ATTACHMENT_RED_SIZE | GLenum | Yes| | FRAMEBUFFER_ATTACHMENT_RED_SIZE | GLenum | Yes|
| FRAMEBUFFER_ATTACHMENT_GREEN_SIZE | GLenum | Yes| | FRAMEBUFFER_ATTACHMENT_GREEN_SIZE | GLenum | Yes|
| FRAMEBUFFER_ATTACHMENT_BLUE_SIZE | GLenum | Yes| | FRAMEBUFFER_ATTACHMENT_BLUE_SIZE | GLenum | Yes|
| FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE | GLenum | Yes| | FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE | GLenum | Yes|
| FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE | GLenum | Yes| | FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE | GLenum | Yes|
| FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE | GLenum | Yes| | FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE | GLenum | Yes|
| FRAMEBUFFER_DEFAULT | GLenum | Yes| | FRAMEBUFFER_DEFAULT | GLenum | Yes|
| UNSIGNED_INT_24_8 | GLenum | Yes| | UNSIGNED_INT_24_8 | GLenum | Yes|
| DEPTH24_STENCIL8 | GLenum | Yes| | DEPTH24_STENCIL8 | GLenum | Yes|
| UNSIGNED_NORMALIZED | GLenum | Yes| | UNSIGNED_NORMALIZED | GLenum | Yes|
| DRAW_FRAMEBUFFER_BINDING | GLenum | Yes| | DRAW_FRAMEBUFFER_BINDING | GLenum | Yes|
| READ_FRAMEBUFFER | GLenum | Yes| | READ_FRAMEBUFFER | GLenum | Yes|
| DRAW_FRAMEBUFFER | GLenum | Yes| | DRAW_FRAMEBUFFER | GLenum | Yes|
| READ_FRAMEBUFFER_BINDING | GLenum | Yes| | READ_FRAMEBUFFER_BINDING | GLenum | Yes|
| RENDERBUFFER_SAMPLES | GLenum | Yes| | RENDERBUFFER_SAMPLES | GLenum | Yes|
| FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER | GLenum | Yes| | FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER | GLenum | Yes|
| MAX_COLOR_ATTACHMENTS | GLenum | Yes| | MAX_COLOR_ATTACHMENTS | GLenum | Yes|
| COLOR_ATTACHMENT1 | GLenum | Yes| | COLOR_ATTACHMENT1 | GLenum | Yes|
| COLOR_ATTACHMENT2 | GLenum | Yes| | COLOR_ATTACHMENT2 | GLenum | Yes|
| COLOR_ATTACHMENT3 | GLenum | Yes| | COLOR_ATTACHMENT3 | GLenum | Yes|
| COLOR_ATTACHMENT4 | GLenum | Yes| | COLOR_ATTACHMENT4 | GLenum | Yes|
| COLOR_ATTACHMENT5 | GLenum | Yes| | COLOR_ATTACHMENT5 | GLenum | Yes|
| COLOR_ATTACHMENT6 | GLenum | Yes| | COLOR_ATTACHMENT6 | GLenum | Yes|
| COLOR_ATTACHMENT7 | GLenum | Yes| | COLOR_ATTACHMENT7 | GLenum | Yes|
| COLOR_ATTACHMENT8 | GLenum | Yes| | COLOR_ATTACHMENT8 | GLenum | Yes|
| COLOR_ATTACHMENT9 | GLenum | Yes| | COLOR_ATTACHMENT9 | GLenum | Yes|
| COLOR_ATTACHMENT10 | GLenum | Yes| | COLOR_ATTACHMENT10 | GLenum | Yes|
| COLOR_ATTACHMENT11 | GLenum | Yes| | COLOR_ATTACHMENT11 | GLenum | Yes|
| COLOR_ATTACHMENT12 | GLenum | Yes| | COLOR_ATTACHMENT12 | GLenum | Yes|
| COLOR_ATTACHMENT13 | GLenum | Yes| | COLOR_ATTACHMENT13 | GLenum | Yes|
| COLOR_ATTACHMENT14 | GLenum | Yes| | COLOR_ATTACHMENT14 | GLenum | Yes|
| COLOR_ATTACHMENT15 | GLenum | Yes| | COLOR_ATTACHMENT15 | GLenum | Yes|
| FRAMEBUFFER_INCOMPLETE_MULTISAMPLE | GLenum | Yes| | FRAMEBUFFER_INCOMPLETE_MULTISAMPLE | GLenum | Yes|
| MAX_SAMPLES | GLenum | Yes| | MAX_SAMPLES | GLenum | Yes|
| HALF_FLOAT | GLenum | Yes| | HALF_FLOAT | GLenum | Yes|
| RG | GLenum | Yes| | RG | GLenum | Yes|
| RG_INTEGER | GLenum | Yes| | RG_INTEGER | GLenum | Yes|
| R8 | GLenum | Yes| | R8 | GLenum | Yes|
| RG8 | GLenum | Yes| | RG8 | GLenum | Yes|
| R16F | GLenum | Yes| | R16F | GLenum | Yes|
| R32F | GLenum | Yes| | R32F | GLenum | Yes|
| RG16F | GLenum | Yes| | RG16F | GLenum | Yes|
| RG32F | GLenum | Yes| | RG32F | GLenum | Yes|
| R8I | GLenum | Yes| | R8I | GLenum | Yes|
| R8UI | GLenum | Yes| | R8UI | GLenum | Yes|
| R16I | GLenum | Yes| | R16I | GLenum | Yes|
| R16UI | GLenum | Yes| | R16UI | GLenum | Yes|
| R32I | GLenum | Yes| | R32I | GLenum | Yes|
| R32UI | GLenum | Yes| | R32UI | GLenum | Yes|
| RG8I | GLenum | Yes| | RG8I | GLenum | Yes|
| RG8UI | GLenum | Yes| | RG8UI | GLenum | Yes|
| RG16I | GLenum | Yes| | RG16I | GLenum | Yes|
| RG16UI | GLenum | Yes| | RG16UI | GLenum | Yes|
| RG32I | GLenum | Yes| | RG32I | GLenum | Yes|
| RG32UI | GLenum | Yes| | RG32UI | GLenum | Yes|
| VERTEX_ARRAY_BINDING | GLenum | Yes| | VERTEX_ARRAY_BINDING | GLenum | Yes|
| R8_SNORM | GLenum | Yes| | R8_SNORM | GLenum | Yes|
| RG8_SNORM | GLenum | Yes| | RG8_SNORM | GLenum | Yes|
| RGB8_SNORM | GLenum | Yes| | RGB8_SNORM | GLenum | Yes|
| SIGNED_NORMALIZED | GLenum | Yes| | SIGNED_NORMALIZED | GLenum | Yes|
| COPY_READ_BUFFER | GLenum | Yes| | COPY_READ_BUFFER | GLenum | Yes|
| COPY_WRITE_BUFFER | GLenum | Yes| | COPY_WRITE_BUFFER | GLenum | Yes|
| COPY_READ_BUFFER_BINDING | GLenum | Yes| | COPY_READ_BUFFER_BINDING | GLenum | Yes|
| COPY_WRITE_BUFFER_BINDING | GLenum | Yes| | COPY_WRITE_BUFFER_BINDING | GLenum | Yes|
| UNIFORM_BUFFER | GLenum | Yes| | UNIFORM_BUFFER | GLenum | Yes|
| UNIFORM_BUFFER_BINDING | GLenum | Yes| | UNIFORM_BUFFER_BINDING | GLenum | Yes|
| UNIFORM_BUFFER_START | GLenum | Yes| | UNIFORM_BUFFER_START | GLenum | Yes|
| UNIFORM_BUFFER_SIZE | GLenum | Yes| | UNIFORM_BUFFER_SIZE | GLenum | Yes|
| MAX_VERTEX_UNIFORM_BLOCKS | GLenum | Yes| | MAX_VERTEX_UNIFORM_BLOCKS | GLenum | Yes|
| MAX_FRAGMENT_UNIFORM_BLOCKS | GLenum | Yes| | MAX_FRAGMENT_UNIFORM_BLOCKS | GLenum | Yes|
| MAX_COMBINED_UNIFORM_BLOCKS | GLenum | Yes| | MAX_COMBINED_UNIFORM_BLOCKS | GLenum | Yes|
| MAX_UNIFORM_BUFFER_BINDINGS | GLenum | Yes| | MAX_UNIFORM_BUFFER_BINDINGS | GLenum | Yes|
| MAX_UNIFORM_BLOCK_SIZE | GLenum | Yes| | MAX_UNIFORM_BLOCK_SIZE | GLenum | Yes|
| MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS | GLenum | Yes| | MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS | GLenum | Yes|
| MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS | GLenum | Yes| | MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS | GLenum | Yes|
| UNIFORM_BUFFER_OFFSET_ALIGNMENT | GLenum | Yes| | UNIFORM_BUFFER_OFFSET_ALIGNMENT | GLenum | Yes|
| ACTIVE_UNIFORM_BLOCKS | GLenum | Yes| | ACTIVE_UNIFORM_BLOCKS | GLenum | Yes|
| UNIFORM_TYPE | GLenum | Yes| | UNIFORM_TYPE | GLenum | Yes|
| UNIFORM_SIZE | GLenum | Yes| | UNIFORM_SIZE | GLenum | Yes|
| UNIFORM_BLOCK_INDEX | GLenum | Yes| | UNIFORM_BLOCK_INDEX | GLenum | Yes|
| UNIFORM_OFFSET | GLenum | Yes| | UNIFORM_OFFSET | GLenum | Yes|
| UNIFORM_ARRAY_STRIDE | GLenum | Yes| | UNIFORM_ARRAY_STRIDE | GLenum | Yes|
| UNIFORM_MATRIX_STRIDE | GLenum | Yes| | UNIFORM_MATRIX_STRIDE | GLenum | Yes|
| UNIFORM_IS_ROW_MAJOR | GLenum | Yes| | UNIFORM_IS_ROW_MAJOR | GLenum | Yes|
| UNIFORM_BLOCK_BINDING | GLenum | Yes| | UNIFORM_BLOCK_BINDING | GLenum | Yes|
| UNIFORM_BLOCK_DATA_SIZE | GLenum | Yes| | UNIFORM_BLOCK_DATA_SIZE | GLenum | Yes|
| UNIFORM_BLOCK_ACTIVE_UNIFORMS | GLenum | Yes| | UNIFORM_BLOCK_ACTIVE_UNIFORMS | GLenum | Yes|
| UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES | GLenum | Yes| | UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES | GLenum | Yes|
| UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER | GLenum | Yes| | UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER | GLenum | Yes|
| UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER | GLenum | Yes| | UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER | GLenum | Yes|
| INVALID_INDEX | GLenum | Yes| | INVALID_INDEX | GLenum | Yes|
| MAX_VERTEX_OUTPUT_COMPONENTS | GLenum | Yes| | MAX_VERTEX_OUTPUT_COMPONENTS | GLenum | Yes|
| MAX_FRAGMENT_INPUT_COMPONENTS | GLenum | Yes| | MAX_FRAGMENT_INPUT_COMPONENTS | GLenum | Yes|
| MAX_SERVER_WAIT_TIMEOUT | GLenum | Yes| | MAX_SERVER_WAIT_TIMEOUT | GLenum | Yes|
| OBJECT_TYPE | GLenum | Yes| | OBJECT_TYPE | GLenum | Yes|
| SYNC_CONDITION | GLenum | Yes| | SYNC_CONDITION | GLenum | Yes|
| SYNC_STATUS | GLenum | Yes| | SYNC_STATUS | GLenum | Yes|
| SYNC_FLAGS | GLenum | Yes| | SYNC_FLAGS | GLenum | Yes|
| SYNC_FENCE | GLenum | Yes| | SYNC_FENCE | GLenum | Yes|
| SYNC_GPU_COMMANDS_COMPLETE | GLenum | Yes| | SYNC_GPU_COMMANDS_COMPLETE | GLenum | Yes|
| UNSIGNALED | GLenum | Yes| | UNSIGNALED | GLenum | Yes|
| SIGNALED | GLenum | Yes| | SIGNALED | GLenum | Yes|
| ALREADY_SIGNALED | GLenum | Yes| | ALREADY_SIGNALED | GLenum | Yes|
| TIMEOUT_EXPIRED | GLenum | Yes| | TIMEOUT_EXPIRED | GLenum | Yes|
| CONDITION_SATISFIED | GLenum | Yes| | CONDITION_SATISFIED | GLenum | Yes|
| WAIT_FAILED | GLenum | Yes| | WAIT_FAILED | GLenum | Yes|
| SYNC_FLUSH_COMMANDS_BIT | GLenum | Yes| | SYNC_FLUSH_COMMANDS_BIT | GLenum | Yes|
| VERTEX_ATTRIB_ARRAY_DIVISOR | GLenum | Yes| | VERTEX_ATTRIB_ARRAY_DIVISOR | GLenum | Yes|
| ANY_SAMPLES_PASSED | GLenum | Yes| | ANY_SAMPLES_PASSED | GLenum | Yes|
| ANY_SAMPLES_PASSED_CONSERVATIVE | GLenum | Yes| | ANY_SAMPLES_PASSED_CONSERVATIVE | GLenum | Yes|
| SAMPLER_BINDING | GLenum | Yes| | SAMPLER_BINDING | GLenum | Yes|
| RGB10_A2UI | GLenum | Yes| | RGB10_A2UI | GLenum | Yes|
| INT_2_10_10_10_REV | GLenum | Yes| | INT_2_10_10_10_REV | GLenum | Yes|
| TRANSFORM_FEEDBACK | GLenum | Yes| | TRANSFORM_FEEDBACK | GLenum | Yes|
| TRANSFORM_FEEDBACK_PAUSED | GLenum | Yes| | TRANSFORM_FEEDBACK_PAUSED | GLenum | Yes|
| TRANSFORM_FEEDBACK_ACTIVE | GLenum | Yes| | TRANSFORM_FEEDBACK_ACTIVE | GLenum | Yes|
| TRANSFORM_FEEDBACK_BINDING | GLenum | Yes| | TRANSFORM_FEEDBACK_BINDING | GLenum | Yes|
| TEXTURE_IMMUTABLE_FORMAT | GLenum | Yes| | TEXTURE_IMMUTABLE_FORMAT | GLenum | Yes|
| MAX_ELEMENT_INDEX | GLenum | Yes| | MAX_ELEMENT_INDEX | GLenum | Yes|
| TEXTURE_IMMUTABLE_LEVELS | GLenum | Yes| | TEXTURE_IMMUTABLE_LEVELS | GLenum | Yes|
| TIMEOUT_IGNORED | GLint64 | Yes| | TIMEOUT_IGNORED | GLint64 | Yes|
| MAX_CLIENT_WAIT_TIMEOUT_WEBGL | GLenum | Yes| | MAX_CLIENT_WAIT_TIMEOUT_WEBGL | GLenum | Yes|
### Methods ### Methods
| Method| Return Value Type| | Method| Return Value Type|
| -------- | -------- | | -------- | -------- |
| copyBufferSubData(readTarget:&nbsp;GLenum,&nbsp;writeTarget:&nbsp;GLenum,&nbsp;readOffset:&nbsp;GLintptr,&nbsp;writeOffset:&nbsp;GLintptr,&nbsp;size:&nbsp;GLsizeiptr) | void | | copyBufferSubData(readTarget:&nbsp;GLenum,&nbsp;writeTarget:&nbsp;GLenum,&nbsp;readOffset:&nbsp;GLintptr,&nbsp;writeOffset:&nbsp;GLintptr,&nbsp;size:&nbsp;GLsizeiptr) | void |
| getBufferSubData(target:&nbsp;GLenum,&nbsp;srcByteOffset:&nbsp;GLintptr,&nbsp;dstBuffer:&nbsp;ArrayBufferView,&nbsp;dstOffset?:&nbsp;GLuint,&nbsp;length?:&nbsp;GLuint) | void | | getBufferSubData(target:&nbsp;GLenum,&nbsp;srcByteOffset:&nbsp;GLintptr,&nbsp;dstBuffer:&nbsp;ArrayBufferView,&nbsp;dstOffset?:&nbsp;GLuint,&nbsp;length?:&nbsp;GLuint) | void |
| blitFramebuffer(srcX0:&nbsp;GLint,&nbsp;srcY0:&nbsp;GLint,&nbsp;srcX1:&nbsp;GLint,&nbsp;srcY1:&nbsp;GLint,&nbsp;dstX0:&nbsp;GLint,&nbsp;dstY0:&nbsp;GLint,&nbsp;dstX1:&nbsp;GLint,&nbsp;dstY1:&nbsp;GLint,&nbsp;mask:&nbsp;GLbitfield,&nbsp;filter:&nbsp;GLenum) | void | | blitFramebuffer(srcX0:&nbsp;GLint,&nbsp;srcY0:&nbsp;GLint,&nbsp;srcX1:&nbsp;GLint,&nbsp;srcY1:&nbsp;GLint,&nbsp;dstX0:&nbsp;GLint,&nbsp;dstY0:&nbsp;GLint,&nbsp;dstX1:&nbsp;GLint,&nbsp;dstY1:&nbsp;GLint,&nbsp;mask:&nbsp;GLbitfield,&nbsp;filter:&nbsp;GLenum) | void |
| framebufferTextureLayer(target:&nbsp;GLenum,&nbsp;attachment:&nbsp;GLenum,&nbsp;texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null,&nbsp;level:&nbsp;GLint,&nbsp;layer:&nbsp;GLint) | void | | framebufferTextureLayer(target:&nbsp;GLenum,&nbsp;attachment:&nbsp;GLenum,&nbsp;texture:&nbsp;WebGLTexture&nbsp;\|&nbsp;null,&nbsp;level:&nbsp;GLint,&nbsp;layer:&nbsp;GLint) | void |
| invalidateFramebuffer(target:&nbsp;GLenum,&nbsp;attachments:&nbsp;GLenum[]) | void | | invalidateFramebuffer(target:&nbsp;GLenum,&nbsp;attachments:&nbsp;GLenum[]) | void |
| invalidateSubFramebuffer(target:&nbsp;GLenum,&nbsp;attachments:&nbsp;GLenum[],&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void | | invalidateSubFramebuffer(target:&nbsp;GLenum,&nbsp;attachments:&nbsp;GLenum[],&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void |
| readBuffer(src:&nbsp;GLenum) | void | | readBuffer(src:&nbsp;GLenum) | void |
| getInternalformatParameter(target:&nbsp;GLenum,&nbsp;internalformat:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any | | getInternalformatParameter(target:&nbsp;GLenum,&nbsp;internalformat:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | any |
| renderbufferStorageMultisample(target:&nbsp;GLenum,&nbsp;samples:&nbsp;GLsizei,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void | | renderbufferStorageMultisample(target:&nbsp;GLenum,&nbsp;samples:&nbsp;GLsizei,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void |
| texStorage2D(target:&nbsp;GLenum,&nbsp;levels:&nbsp;GLsizei,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void | | texStorage2D(target:&nbsp;GLenum,&nbsp;levels:&nbsp;GLsizei,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void |
| texStorage3D(target:&nbsp;GLenum,&nbsp;levels:&nbsp;GLsizei,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei) | void | | texStorage3D(target:&nbsp;GLenum,&nbsp;levels:&nbsp;GLsizei,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei) | void |
| texImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pboOffset:&nbsp;GLintptr) | void | | texImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pboOffset:&nbsp;GLintptr) | void |
| texImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void | | texImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void |
| texImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void | | texImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void |
| texImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset:&nbsp;GLuint) | void | | texImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset:&nbsp;GLuint) | void |
| texSubImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;zoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pboOffset:&nbsp;GLintptr) | void | | texSubImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;zoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pboOffset:&nbsp;GLintptr) | void |
| texSubImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;zoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void | | texSubImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;zoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void |
| texSubImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;zoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null,&nbsp;srcOffset?:&nbsp;GLuint) | void | | texSubImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;zoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null,&nbsp;srcOffset?:&nbsp;GLuint) | void |
| copyTexSubImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;zoffset:&nbsp;GLint,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void | | copyTexSubImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;zoffset:&nbsp;GLint,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei) | void |
| compressedTexImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;imageSize:&nbsp;GLsizei,&nbsp;offset:&nbsp;GLintptr) | void | | compressedTexImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;imageSize:&nbsp;GLsizei,&nbsp;offset:&nbsp;GLintptr) | void |
| compressedTexImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLengthOverride?:&nbsp;GLuint) | void | | compressedTexImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLengthOverride?:&nbsp;GLuint) | void |
| compressedTexSubImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;zoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;imageSize:&nbsp;GLsizei,&nbsp;offset:&nbsp;GLintptr) | void | | compressedTexSubImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;zoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;imageSize:&nbsp;GLsizei,&nbsp;offset:&nbsp;GLintptr) | void |
| compressedTexSubImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;zoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLengthOverride?:&nbsp;GLuint) | void | | compressedTexSubImage3D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;zoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;depth:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLengthOverride?:&nbsp;GLuint) | void |
| getFragDataLocation(program:&nbsp;WebGLProgram,&nbsp;name:&nbsp;string) | GLint | | getFragDataLocation(program:&nbsp;WebGLProgram,&nbsp;name:&nbsp;string) | GLint |
| uniform1ui(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v0:&nbsp;GLuint) | void | | uniform1ui(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v0:&nbsp;GLuint) | void |
| uniform2ui(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v0:&nbsp;GLuint,&nbsp;v1:&nbsp;GLuint) | void | | uniform2ui(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v0:&nbsp;GLuint,&nbsp;v1:&nbsp;GLuint) | void |
| uniform3ui(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v0:&nbsp;GLuint,&nbsp;v1:&nbsp;GLuint,&nbsp;v2:&nbsp;GLuint) | void | | uniform3ui(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v0:&nbsp;GLuint,&nbsp;v1:&nbsp;GLuint,&nbsp;v2:&nbsp;GLuint) | void |
| uniform4ui(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v0:&nbsp;GLuint,&nbsp;v1:&nbsp;GLuint,&nbsp;v2:&nbsp;GLuint,&nbsp;v3:&nbsp;GLuint) | void | | uniform4ui(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;v0:&nbsp;GLuint,&nbsp;v1:&nbsp;GLuint,&nbsp;v2:&nbsp;GLuint,&nbsp;v3:&nbsp;GLuint) | void |
| uniform1uiv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Uint32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniform1uiv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Uint32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniform2uiv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Uint32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniform2uiv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Uint32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniform3uiv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Uint32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniform3uiv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Uint32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniform4uiv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Uint32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniform4uiv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Uint32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniformMatrix3x2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniformMatrix3x2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniformMatrix4x2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniformMatrix4x2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniformMatrix2x3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniformMatrix2x3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniformMatrix4x3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniformMatrix4x3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniformMatrix2x4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniformMatrix2x4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniformMatrix3x4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniformMatrix3x4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| vertexAttribI4i(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;z:&nbsp;GLint,&nbsp;w:&nbsp;GLint) | void | | vertexAttribI4i(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;z:&nbsp;GLint,&nbsp;w:&nbsp;GLint) | void |
| vertexAttribI4iv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Int32List) | void | | vertexAttribI4iv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Int32List) | void |
| vertexAttribI4ui(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLuint,&nbsp;y:&nbsp;GLuint,&nbsp;z:&nbsp;GLuint,&nbsp;w:&nbsp;GLuint) | void | | vertexAttribI4ui(index:&nbsp;GLuint,&nbsp;x:&nbsp;GLuint,&nbsp;y:&nbsp;GLuint,&nbsp;z:&nbsp;GLuint,&nbsp;w:&nbsp;GLuint) | void |
| vertexAttribI4uiv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Uint32List) | void | | vertexAttribI4uiv(index:&nbsp;GLuint,&nbsp;values:&nbsp;Uint32List) | void |
| vertexAttribIPointer(index:&nbsp;GLuint,&nbsp;size:&nbsp;GLint,&nbsp;type:&nbsp;GLenum,&nbsp;stride:&nbsp;GLsizei,&nbsp;offset:&nbsp;GLintptr) | void | | vertexAttribIPointer(index:&nbsp;GLuint,&nbsp;size:&nbsp;GLint,&nbsp;type:&nbsp;GLenum,&nbsp;stride:&nbsp;GLsizei,&nbsp;offset:&nbsp;GLintptr) | void |
| vertexAttribDivisor(index:&nbsp;GLuint,&nbsp;divisor:&nbsp;GLuint) | void | | vertexAttribDivisor(index:&nbsp;GLuint,&nbsp;divisor:&nbsp;GLuint) | void |
| drawArraysInstanced(mode:&nbsp;GLenum,&nbsp;first:&nbsp;GLint,&nbsp;count:&nbsp;GLsizei,&nbsp;instanceCount:&nbsp;GLsizei) | void | | drawArraysInstanced(mode:&nbsp;GLenum,&nbsp;first:&nbsp;GLint,&nbsp;count:&nbsp;GLsizei,&nbsp;instanceCount:&nbsp;GLsizei) | void |
| drawElementsInstanced(mode:&nbsp;GLenum,&nbsp;count:&nbsp;GLsizei,&nbsp;type:&nbsp;GLenum,&nbsp;offset:&nbsp;GLintptr,&nbsp;instanceCount:&nbsp;GLsizei) | void | | drawElementsInstanced(mode:&nbsp;GLenum,&nbsp;count:&nbsp;GLsizei,&nbsp;type:&nbsp;GLenum,&nbsp;offset:&nbsp;GLintptr,&nbsp;instanceCount:&nbsp;GLsizei) | void |
| drawRangeElements(mode:&nbsp;GLenum,&nbsp;start:&nbsp;GLuint,&nbsp;end:&nbsp;GLuint,&nbsp;count:&nbsp;GLsizei,&nbsp;type:&nbsp;GLenum,&nbsp;offset:&nbsp;GLintptr) | void | | drawRangeElements(mode:&nbsp;GLenum,&nbsp;start:&nbsp;GLuint,&nbsp;end:&nbsp;GLuint,&nbsp;count:&nbsp;GLsizei,&nbsp;type:&nbsp;GLenum,&nbsp;offset:&nbsp;GLintptr) | void |
| drawBuffers(buffers:&nbsp;GLenum[]) | void | | drawBuffers(buffers:&nbsp;GLenum[]) | void |
| clearBufferfv(buffer:&nbsp;GLenum,&nbsp;drawbuffer:&nbsp;GLint,&nbsp;values:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint) | void | | clearBufferfv(buffer:&nbsp;GLenum,&nbsp;drawbuffer:&nbsp;GLint,&nbsp;values:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint) | void |
| clearBufferiv(buffer:&nbsp;GLenum,&nbsp;drawbuffer:&nbsp;GLint,&nbsp;values:&nbsp;Int32List,&nbsp;srcOffset?:&nbsp;GLuint) | void | | clearBufferiv(buffer:&nbsp;GLenum,&nbsp;drawbuffer:&nbsp;GLint,&nbsp;values:&nbsp;Int32List,&nbsp;srcOffset?:&nbsp;GLuint) | void |
| clearBufferuiv(buffer:&nbsp;GLenum,&nbsp;drawbuffer:&nbsp;GLint,&nbsp;values:&nbsp;Uint32List,&nbsp;srcOffset?:&nbsp;GLuint) | void | | clearBufferuiv(buffer:&nbsp;GLenum,&nbsp;drawbuffer:&nbsp;GLint,&nbsp;values:&nbsp;Uint32List,&nbsp;srcOffset?:&nbsp;GLuint) | void |
| clearBufferfi(buffer:&nbsp;GLenum,&nbsp;drawbuffer:&nbsp;GLint,&nbsp;depth:&nbsp;GLfloat,&nbsp;stencil:&nbsp;GLint) | void | | clearBufferfi(buffer:&nbsp;GLenum,&nbsp;drawbuffer:&nbsp;GLint,&nbsp;depth:&nbsp;GLfloat,&nbsp;stencil:&nbsp;GLint) | void |
| createQuery() | WebGLQuery&nbsp;\|&nbsp;null | | createQuery() | WebGLQuery&nbsp;\|&nbsp;null |
| deleteQuery(query:&nbsp;WebGLQuery&nbsp;\|&nbsp;null) | void | | deleteQuery(query:&nbsp;WebGLQuery&nbsp;\|&nbsp;null) | void |
| isQuery(query:&nbsp;WebGLQuery&nbsp;\|&nbsp;null) | GLboolean | | isQuery(query:&nbsp;WebGLQuery&nbsp;\|&nbsp;null) | GLboolean |
| beginQuery(target:&nbsp;GLenum,&nbsp;query:&nbsp;WebGLQuery) | void | | beginQuery(target:&nbsp;GLenum,&nbsp;query:&nbsp;WebGLQuery) | void |
| endQuery(target:&nbsp;GLenum) | void | | endQuery(target:&nbsp;GLenum) | void |
| getQuery(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | WebGLQuery&nbsp;\|&nbsp;null | | getQuery(target:&nbsp;GLenum,&nbsp;pname:&nbsp;GLenum) | WebGLQuery&nbsp;\|&nbsp;null |
| getQueryParameter(query:&nbsp;WebGLQuery,&nbsp;pname:&nbsp;GLenum) | any | | getQueryParameter(query:&nbsp;WebGLQuery,&nbsp;pname:&nbsp;GLenum) | any |
| createSampler() | WebGLSampler&nbsp;\|&nbsp;null | | createSampler() | WebGLSampler&nbsp;\|&nbsp;null |
| deleteSampler(sampler:&nbsp;WebGLSampler&nbsp;\|&nbsp;null) | void | | deleteSampler(sampler:&nbsp;WebGLSampler&nbsp;\|&nbsp;null) | void |
| isSampler(sampler:&nbsp;WebGLSampler&nbsp;\|&nbsp;null) | GLboolean | | isSampler(sampler:&nbsp;WebGLSampler&nbsp;\|&nbsp;null) | GLboolean |
| bindSampler(unit:&nbsp;GLuint,&nbsp;sampler:&nbsp;WebGLSampler&nbsp;\|&nbsp;null) | void | | bindSampler(unit:&nbsp;GLuint,&nbsp;sampler:&nbsp;WebGLSampler&nbsp;\|&nbsp;null) | void |
| samplerParameteri(sampler:&nbsp;WebGLSampler,&nbsp;pname:&nbsp;GLenum,&nbsp;param:&nbsp;GLint) | void | | samplerParameteri(sampler:&nbsp;WebGLSampler,&nbsp;pname:&nbsp;GLenum,&nbsp;param:&nbsp;GLint) | void |
| samplerParameterf(sampler:&nbsp;WebGLSampler,&nbsp;pname:&nbsp;GLenum,&nbsp;param:&nbsp;GLfloat) | void; | | samplerParameterf(sampler:&nbsp;WebGLSampler,&nbsp;pname:&nbsp;GLenum,&nbsp;param:&nbsp;GLfloat) | void; |
| getSamplerParameter(sampler:&nbsp;WebGLSampler,&nbsp;pname:&nbsp;GLenum) | any | | getSamplerParameter(sampler:&nbsp;WebGLSampler,&nbsp;pname:&nbsp;GLenum) | any |
| fenceSync(condition:&nbsp;GLenum,&nbsp;flags:&nbsp;GLbitfield) | WebGLSync&nbsp;\|&nbsp;null | | fenceSync(condition:&nbsp;GLenum,&nbsp;flags:&nbsp;GLbitfield) | WebGLSync&nbsp;\|&nbsp;null |
| isSync(sync:&nbsp;WebGLSync&nbsp;\|&nbsp;null) | GLboolean | | isSync(sync:&nbsp;WebGLSync&nbsp;\|&nbsp;null) | GLboolean |
| deleteSync(sync:&nbsp;WebGLSync&nbsp;\|&nbsp;null) | void | | deleteSync(sync:&nbsp;WebGLSync&nbsp;\|&nbsp;null) | void |
| clientWaitSync(sync:&nbsp;WebGLSync,&nbsp;flags:&nbsp;GLbitfield,&nbsp;timeout:&nbsp;GLuint64) | GLenum | | clientWaitSync(sync:&nbsp;WebGLSync,&nbsp;flags:&nbsp;GLbitfield,&nbsp;timeout:&nbsp;GLuint64) | GLenum |
| waitSync(sync:&nbsp;WebGLSync,&nbsp;flags:&nbsp;GLbitfield,&nbsp;timeout:&nbsp;GLint64) | void | | waitSync(sync:&nbsp;WebGLSync,&nbsp;flags:&nbsp;GLbitfield,&nbsp;timeout:&nbsp;GLint64) | void |
| getSyncParameter(sync:&nbsp;WebGLSync,&nbsp;pname:&nbsp;GLenum) | any | | getSyncParameter(sync:&nbsp;WebGLSync,&nbsp;pname:&nbsp;GLenum) | any |
| createTransformFeedback() | WebGLTransformFeedback&nbsp;\|&nbsp;null | | createTransformFeedback() | WebGLTransformFeedback&nbsp;\|&nbsp;null |
| deleteTransformFeedback(tf:&nbsp;WebGLTransformFeedback&nbsp;\|&nbsp;null) | void | | deleteTransformFeedback(tf:&nbsp;WebGLTransformFeedback&nbsp;\|&nbsp;null) | void |
| isTransformFeedback(tf:&nbsp;WebGLTransformFeedback&nbsp;\|&nbsp;null) | GLboolean | | isTransformFeedback(tf:&nbsp;WebGLTransformFeedback&nbsp;\|&nbsp;null) | GLboolean |
| bindTransformFeedback(target:&nbsp;GLenum,&nbsp;tf:&nbsp;WebGLTransformFeedback&nbsp;\|&nbsp;null) | void | | bindTransformFeedback(target:&nbsp;GLenum,&nbsp;tf:&nbsp;WebGLTransformFeedback&nbsp;\|&nbsp;null) | void |
| beginTransformFeedback(primitiveMode:&nbsp;GLenum) | void | | beginTransformFeedback(primitiveMode:&nbsp;GLenum) | void |
| endTransformFeedback() | void | | endTransformFeedback() | void |
| transformFeedbackVaryings(program:&nbsp;WebGLProgram,&nbsp;varyings:&nbsp;string[],&nbsp;bufferMode:&nbsp;GLenum) | void | | transformFeedbackVaryings(program:&nbsp;WebGLProgram,&nbsp;varyings:&nbsp;string[],&nbsp;bufferMode:&nbsp;GLenum) | void |
| getTransformFeedbackVarying(program:&nbsp;WebGLProgram,&nbsp;index:&nbsp;GLuint) | WebGLActiveInfo&nbsp;\|&nbsp;null | | getTransformFeedbackVarying(program:&nbsp;WebGLProgram,&nbsp;index:&nbsp;GLuint) | WebGLActiveInfo&nbsp;\|&nbsp;null |
| pauseTransformFeedback() | void | | pauseTransformFeedback() | void |
| resumeTransformFeedback() | void | | resumeTransformFeedback() | void |
| bindBufferBase(target:&nbsp;GLenum,&nbsp;index:&nbsp;GLuint,&nbsp;buffer:&nbsp;WebGLBuffer&nbsp;\|&nbsp;null) | void | | bindBufferBase(target:&nbsp;GLenum,&nbsp;index:&nbsp;GLuint,&nbsp;buffer:&nbsp;WebGLBuffer&nbsp;\|&nbsp;null) | void |
| bindBufferRange(target:&nbsp;GLenum,&nbsp;index:&nbsp;GLuint,&nbsp;buffer:&nbsp;WebGLBuffer&nbsp;\|&nbsp;null,&nbsp;offset:&nbsp;GLintptr,&nbsp;size:&nbsp;GLsizeiptr) | void | | bindBufferRange(target:&nbsp;GLenum,&nbsp;index:&nbsp;GLuint,&nbsp;buffer:&nbsp;WebGLBuffer&nbsp;\|&nbsp;null,&nbsp;offset:&nbsp;GLintptr,&nbsp;size:&nbsp;GLsizeiptr) | void |
| getIndexedParameter(target:&nbsp;GLenum,&nbsp;index:&nbsp;GLuint) | any | | getIndexedParameter(target:&nbsp;GLenum,&nbsp;index:&nbsp;GLuint) | any |
| getUniformIndices(program:&nbsp;WebGLProgram,&nbsp;uniformNames:&nbsp;string[]) | GLuint[]&nbsp;\|&nbsp;null | | getUniformIndices(program:&nbsp;WebGLProgram,&nbsp;uniformNames:&nbsp;string[]) | GLuint[]&nbsp;\|&nbsp;null |
| getActiveUniforms(program:&nbsp;WebGLProgram,&nbsp;uniformIndices:&nbsp;GLuint[],&nbsp;pname:&nbsp;GLenum) | any | | getActiveUniforms(program:&nbsp;WebGLProgram,&nbsp;uniformIndices:&nbsp;GLuint[],&nbsp;pname:&nbsp;GLenum) | any |
| getUniformBlockIndex(program:&nbsp;WebGLProgram,&nbsp;uniformBlockName:&nbsp;string) | GLuint | | getUniformBlockIndex(program:&nbsp;WebGLProgram,&nbsp;uniformBlockName:&nbsp;string) | GLuint |
| getActiveUniformBlockParameter(program:&nbsp;WebGLProgram,&nbsp;uniformBlockIndex:&nbsp;GLuint,&nbsp;pname:&nbsp;GLenum) | any | | getActiveUniformBlockParameter(program:&nbsp;WebGLProgram,&nbsp;uniformBlockIndex:&nbsp;GLuint,&nbsp;pname:&nbsp;GLenum) | any |
| getActiveUniformBlockName(program:&nbsp;WebGLProgram,&nbsp;uniformBlockIndex:&nbsp;GLuint) | string&nbsp;\|&nbsp;null | | getActiveUniformBlockName(program:&nbsp;WebGLProgram,&nbsp;uniformBlockIndex:&nbsp;GLuint) | string&nbsp;\|&nbsp;null |
| uniformBlockBinding(program:&nbsp;WebGLProgram,&nbsp;uniformBlockIndex:&nbsp;GLuint,&nbsp;uniformBlockBinding:&nbsp;GLuint) | void | | uniformBlockBinding(program:&nbsp;WebGLProgram,&nbsp;uniformBlockIndex:&nbsp;GLuint,&nbsp;uniformBlockBinding:&nbsp;GLuint) | void |
| createVertexArray() | WebGLVertexArrayObject&nbsp;\|&nbsp;null | | createVertexArray() | WebGLVertexArrayObject&nbsp;\|&nbsp;null |
| deleteVertexArray(vertexArray:&nbsp;WebGLVertexArrayObject&nbsp;\|&nbsp;null) | void | | deleteVertexArray(vertexArray:&nbsp;WebGLVertexArrayObject&nbsp;\|&nbsp;null) | void |
| isVertexArray(vertexArray:&nbsp;WebGLVertexArrayObject&nbsp;\|&nbsp;null) | GLboolean | | isVertexArray(vertexArray:&nbsp;WebGLVertexArrayObject&nbsp;\|&nbsp;null) | GLboolean |
| bindVertexArray(array:&nbsp;WebGLVertexArrayObject&nbsp;\|&nbsp;null) | void | | bindVertexArray(array:&nbsp;WebGLVertexArrayObject&nbsp;\|&nbsp;null) | void |
## WebGL2RenderingContextOverloads ## WebGL2RenderingContextOverloads
WebGL2RenderingContextOverloads WebGL2RenderingContextOverloads
| Method| Return Value Type| | Method| Return Value Type|
| -------- | -------- | | -------- | -------- |
| bufferData(target:&nbsp;GLenum,&nbsp;size:&nbsp;GLsizeiptr,&nbsp;usage:&nbsp;GLenum) | void | | bufferData(target:&nbsp;GLenum,&nbsp;size:&nbsp;GLsizeiptr,&nbsp;usage:&nbsp;GLenum) | void |
| bufferData(target:&nbsp;GLenum,&nbsp;srcData:&nbsp;BufferSource&nbsp;\|&nbsp;null,&nbsp;usage:&nbsp;GLenum) | void | | bufferData(target:&nbsp;GLenum,&nbsp;srcData:&nbsp;BufferSource&nbsp;\|&nbsp;null,&nbsp;usage:&nbsp;GLenum) | void |
| bufferSubData(target:&nbsp;GLenum,&nbsp;dstByteOffset:&nbsp;GLintptr,&nbsp;srcData:&nbsp;BufferSource) | void | | bufferSubData(target:&nbsp;GLenum,&nbsp;dstByteOffset:&nbsp;GLintptr,&nbsp;srcData:&nbsp;BufferSource) | void |
| bufferData(target:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;usage:&nbsp;GLenum,&nbsp;srcOffset:&nbsp;GLuint,&nbsp;length?:&nbsp;GLuint) | void | | bufferData(target:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;usage:&nbsp;GLenum,&nbsp;srcOffset:&nbsp;GLuint,&nbsp;length?:&nbsp;GLuint) | void |
| bufferSubData(target:&nbsp;GLenum,&nbsp;dstByteOffset:&nbsp;GLintptr,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset:&nbsp;GLuint,&nbsp;length?:&nbsp;GLuint) | void | | bufferSubData(target:&nbsp;GLenum,&nbsp;dstByteOffset:&nbsp;GLintptr,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset:&nbsp;GLuint,&nbsp;length?:&nbsp;GLuint) | void |
| texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pixels:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void | | texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pixels:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void |
| texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void | | texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void |
| texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pixels:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void | | texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pixels:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void |
| texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void | | texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void |
| texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pboOffset:&nbsp;GLintptr) | void | | texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pboOffset:&nbsp;GLintptr) | void |
| texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void | | texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void |
| texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset:&nbsp;GLuint) | void | | texImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset:&nbsp;GLuint) | void |
| texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pboOffset:&nbsp;GLintptr) | void | | texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;pboOffset:&nbsp;GLintptr) | void |
| texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void | | texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;source:&nbsp;TexImageSource) | void |
| texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset:&nbsp;GLuint) | void | | texSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset:&nbsp;GLuint) | void |
| compressedTexImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;imageSize:&nbsp;GLsizei,&nbsp;offset:&nbsp;GLintptr) | void | | compressedTexImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;imageSize:&nbsp;GLsizei,&nbsp;offset:&nbsp;GLintptr) | void |
| compressedTexImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLengthOverride?:&nbsp;GLuint) | void | | compressedTexImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;internalformat:&nbsp;GLenum,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;border:&nbsp;GLint,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLengthOverride?:&nbsp;GLuint) | void |
| compressedTexSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;imageSize:&nbsp;GLsizei,&nbsp;offset:&nbsp;GLintptr) | void | | compressedTexSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;imageSize:&nbsp;GLsizei,&nbsp;offset:&nbsp;GLintptr) | void |
| compressedTexSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLengthOverride?:&nbsp;GLuint) | void | | compressedTexSubImage2D(target:&nbsp;GLenum,&nbsp;level:&nbsp;GLint,&nbsp;xoffset:&nbsp;GLint,&nbsp;yoffset:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;srcData:&nbsp;ArrayBufferView,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLengthOverride?:&nbsp;GLuint) | void |
| uniform1fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniform1fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniform2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniform2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniform3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniform3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniform4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniform4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniform1iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Int32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniform1iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Int32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniform2iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Int32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniform2iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Int32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniform3iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Int32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniform3iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Int32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniform4iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Int32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniform4iv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;data:&nbsp;Int32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniformMatrix2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniformMatrix2fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniformMatrix3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniformMatrix3fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| uniformMatrix4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void | | uniformMatrix4fv(location:&nbsp;WebGLUniformLocation&nbsp;\|&nbsp;null,&nbsp;transpose:&nbsp;GLboolean,&nbsp;data:&nbsp;Float32List,&nbsp;srcOffset?:&nbsp;GLuint,&nbsp;srcLength?:&nbsp;GLuint) | void |
| readPixels(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;dstData:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void | | readPixels(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;dstData:&nbsp;ArrayBufferView&nbsp;\|&nbsp;null) | void |
| readPixels(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;offset:&nbsp;GLintptr) | void | | readPixels(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;offset:&nbsp;GLintptr) | void |
| readPixels(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;dstData:&nbsp;ArrayBufferView,&nbsp;dstOffset:&nbsp;GLuint) | void | | readPixels(x:&nbsp;GLint,&nbsp;y:&nbsp;GLint,&nbsp;width:&nbsp;GLsizei,&nbsp;height:&nbsp;GLsizei,&nbsp;format:&nbsp;GLenum,&nbsp;type:&nbsp;GLenum,&nbsp;dstData:&nbsp;ArrayBufferView,&nbsp;dstOffset:&nbsp;GLuint) | void |
# Window # Window
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br/> The **Window** module provides basic capabilities for managing windows, including creating and destroying windows and setting serial port attributes.
> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
> **NOTE**<br/>
> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
> >
> API version 9 is a canary version for trial use. The APIs of this version may be unstable. > API version 9 is a canary version for trial use. The APIs of this version may be unstable.
## Modules to Import ## Modules to Import
...@@ -95,7 +97,7 @@ This is a system API and cannot be called by third-party applications. ...@@ -95,7 +97,7 @@ This is a system API and cannot be called by third-party applications.
## Rect<sup>7+</sup> ## Rect<sup>7+</sup>
Describes a rectangle. Rectangular area of the window.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
...@@ -172,7 +174,7 @@ This API is discarded since API version 8. You are advised to use [window.create ...@@ -172,7 +174,7 @@ This API is discarded since API version 8. You are advised to use [window.create
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | -------------------------------------- | ---- | -------------------------- | | -------- | -------------------------------------- | ---- | -------------------------- |
...@@ -180,7 +182,7 @@ This API is discarded since API version 8. You are advised to use [window.create ...@@ -180,7 +182,7 @@ This API is discarded since API version 8. You are advised to use [window.create
| type | [WindowType](#windowtype) | Yes | Window type. | | type | [WindowType](#windowtype) | Yes | Window type. |
| callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the subwindow created.| | callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the subwindow created.|
- Example **Example**
```js ```js
var windowClass = null; var windowClass = null;
...@@ -205,20 +207,20 @@ This API is discarded since API version 8. You are advised to use [window.create ...@@ -205,20 +207,20 @@ This API is discarded since API version 8. You are advised to use [window.create
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------------------------- | ---- | ---------- | | ------ | ------------------------- | ---- | ---------- |
| id | string | Yes | Window ID. | | id | string | Yes | Window ID. |
| type | [WindowType](#windowtype) | Yes | Window type.| | type | [WindowType](#windowtype) | Yes | Window type.|
- Return value **Return value**
| Type | Description | | Type | Description |
| -------------------------------- | ------------------------------------------------- | | -------------------------------- | ------------------------------------------------- |
| Promise&lt;[Window](#window)&gt; | Promise used to return the subwindow created.| | Promise&lt;[Window](#window)&gt; | Promise used to return the subwindow created.|
- Example **Example**
```js ```js
var windowClass = null; var windowClass = null;
...@@ -237,20 +239,20 @@ create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback&lt;Wi ...@@ -237,20 +239,20 @@ create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback&lt;Wi
Creates a subwindow when the context is [Context](js-apis-Context.md). This API uses an asynchronous callback to return the result. Creates a subwindow when the context is [Context](js-apis-Context.md). This API uses an asynchronous callback to return the result.
Creates a system window when the context is [ServiceExtAbilityContext](js-apis-serviceExtAbilityContext.md), starting from API version 9. This API uses an asynchronous callback to return the result. Creates a system window when the context is [ServiceExtensionContext](js-apis-service-extension-context.md), starting from API version 9. This API uses an asynchronous callback to return the result.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | -------------------------------------- | ---- | ------------------------------------------------------------ | | -------- | -------------------------------------- | ---- | ------------------------------------------------------------ |
| ctx | Context | Yes | Current application context.<br>For the definition of **Context** of API version 8, see [Context](js-apis-Context.md).<br>For the definition of **Context** of API version 9, see [Context](js-apis-serviceExtAbilityContext.md).| | ctx | Context | Yes | Current application context.<br>For the definition of **Context** of API version 8, see [Context](js-apis-Context.md).<br>For the definition of **Context** of API version 9, see [Context](js-apis-service-extension-context.md).|
| id | string | Yes | Window ID. | | id | string | Yes | Window ID. |
| type | [WindowType](#windowtype) | Yes | Window type. | | type | [WindowType](#windowtype) | Yes | Window type. |
| callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the window created. | | callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the window created. |
- Example **Example**
```js ```js
var windowClass = null; var windowClass = null;
...@@ -271,25 +273,25 @@ create(ctx: Context, id: string, type: WindowType): Promise&lt;Window&gt; ...@@ -271,25 +273,25 @@ create(ctx: Context, id: string, type: WindowType): Promise&lt;Window&gt;
Creates a subwindow when the context is [Context](js-apis-Context.md). This API uses a promise to return the result. Creates a subwindow when the context is [Context](js-apis-Context.md). This API uses a promise to return the result.
Creates a system window when the context is [ServiceExtAbilityContext](js-apis-serviceExtAbilityContext.md), starting from API version 9. This API uses a promise to return the result. Creates a system window when the context is [ServiceExtensionContext](js-apis-service-extension-context.md), starting from API version 9. This API uses a promise to return the result.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------------------------- | ---- | ------------------------------------------------------------ | | ------ | ------------------------- | ---- | ------------------------------------------------------------ |
| ctx | Context | Yes | Current application context.<br>For the definition of **Context** of API version 8, see [Context](js-apis-Context.md).<br>For the definition of **Context** of API version 9, see [Context](js-apis-serviceExtAbilityContext.md).| | ctx | Context | Yes | Current application context.<br>For the definition of **Context** of API version 8, see [Context](js-apis-Context.md).<br>For the definition of **Context** of API version 9, see [Context](js-apis-service-extension-context.md).|
| id | string | Yes | Window ID. | | id | string | Yes | Window ID. |
| type | [WindowType](#windowtype) | Yes | Window type. | | type | [WindowType](#windowtype) | Yes | Window type. |
- Return value **Return value**
| Type | Description | | Type | Description |
| -------------------------------- | ----------------------------------------------- | | -------------------------------- | ----------------------------------------------- |
| Promise&lt;[Window](#window)&gt; | Promise used to return the window created.| | Promise&lt;[Window](#window)&gt; | Promise used to return the window created.|
- Example **Example**
```js ```js
var windowClass = null; var windowClass = null;
...@@ -310,14 +312,14 @@ Finds a window based on the ID. This API uses an asynchronous callback to return ...@@ -310,14 +312,14 @@ Finds a window based on the ID. This API uses an asynchronous callback to return
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | -------------------------------------- | ---- | ---------------------------- | | -------- | -------------------------------------- | ---- | ---------------------------- |
| id | string | Yes | Window ID. | | id | string | Yes | Window ID. |
| callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the window found.| | callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the window found.|
- Example **Example**
```js ```js
var windowClass = null; var windowClass = null;
...@@ -339,19 +341,19 @@ Finds a window based on the ID. This API uses a promise to return the result. ...@@ -339,19 +341,19 @@ Finds a window based on the ID. This API uses a promise to return the result.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------ | ---- | -------- | | ------ | ------ | ---- | -------- |
| id | string | Yes | Window ID.| | id | string | Yes | Window ID.|
- Return value **Return value**
| Type | Description | | Type | Description |
| -------------------------------- | ----------------------------------------------- | | -------------------------------- | ----------------------------------------------- |
| Promise&lt;[Window](#window)&gt; | Promise used to return the window found.| | Promise&lt;[Window](#window)&gt; | Promise used to return the window found.|
- Example **Example**
```js ```js
var windowClass = null; var windowClass = null;
...@@ -370,15 +372,17 @@ getTopWindow(callback: AsyncCallback&lt;Window&gt;): void ...@@ -370,15 +372,17 @@ getTopWindow(callback: AsyncCallback&lt;Window&gt;): void
Obtains the top window of the current application. This API uses an asynchronous callback to return the result. Obtains the top window of the current application. This API uses an asynchronous callback to return the result.
This API is discarded since API version 8. You are advised to use [window.getTopWindow<sup>8+</sup>](#windowgettopwindow8) instead.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | -------------------------------------- | ---- | -------------------------------------- | | -------- | -------------------------------------- | ---- | -------------------------------------- |
| callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the top window obtained.| | callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the top window obtained.|
- Example **Example**
```js ```js
var windowClass = null; var windowClass = null;
...@@ -398,15 +402,17 @@ getTopWindow(): Promise&lt;Window&gt; ...@@ -398,15 +402,17 @@ getTopWindow(): Promise&lt;Window&gt;
Obtains the top window of the current application. This API uses a promise to return the result. Obtains the top window of the current application. This API uses a promise to return the result.
This API is discarded since API version 8. You are advised to use [window.getTopWindow<sup>8+</sup>](#windowgettopwindow8) instead.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Return value **Return value**
| Type | Description | | Type | Description |
| -------------------------------- | --------------------------------------------------------- | | -------------------------------- | --------------------------------------------------------- |
| Promise&lt;[Window](#window)&gt; | Promise used to return the top window obtained.| | Promise&lt;[Window](#window)&gt; | Promise used to return the top window obtained.|
- Example **Example**
```js ```js
var windowClass = null; var windowClass = null;
...@@ -427,14 +433,14 @@ Obtains the top window of the current application. This API uses an asynchronous ...@@ -427,14 +433,14 @@ Obtains the top window of the current application. This API uses an asynchronous
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | -------------------------------------- | ---- | ------------------------------------------------------------ | | -------- | -------------------------------------- | ---- | ------------------------------------------------------------ |
| ctx | Context | Yes | Current application context.<br>For the definition of **Context** of API version 8, see [Context](js-apis-Context.md).<br>For the definition of **Context** of API version 9, see [Context](js-apis-ability-context.md).| | ctx | Context | Yes | Current application context.<br>For the definition of **Context** of API version 8, see [Context](js-apis-Context.md).<br>For the definition of **Context** of API version 9, see [Context](js-apis-ability-context.md).|
| callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the top window obtained. | | callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the top window obtained. |
- Example **Example**
```js ```js
var windowClass = null; var windowClass = null;
...@@ -456,19 +462,19 @@ Obtains the top window of the current application. This API uses a promise to re ...@@ -456,19 +462,19 @@ Obtains the top window of the current application. This API uses a promise to re
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------- | ---- | ------------------------------------------------------------ | | ------ | ------- | ---- | ------------------------------------------------------------ |
| ctx | Context | Yes | Current application context.<br>For the definition of **Context** of API version 8, see [Context](js-apis-Context.md).<br>For the definition of **Context** of API version 9, see [Context](js-apis-ability-context.md).| | ctx | Context | Yes | Current application context.<br>For the definition of **Context** of API version 8, see [Context](js-apis-Context.md).<br>For the definition of **Context** of API version 9, see [Context](js-apis-ability-context.md).|
- Return value **Return value**
| Type | Description | | Type | Description |
| -------------------------------- | --------------------------------------------------------- | | -------------------------------- | --------------------------------------------------------- |
| Promise&lt;[Window](#window)&gt; | Promise used to return the top window obtained.| | Promise&lt;[Window](#window)&gt; | Promise used to return the top window obtained.|
- Example **Example**
```js ```js
var windowClass = null; var windowClass = null;
...@@ -491,14 +497,14 @@ This is a system API and cannot be called by third-party applications. ...@@ -491,14 +497,14 @@ This is a system API and cannot be called by third-party applications.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ | | -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ |
| type | string | Yes | Type of event to listen for. The value is fixed at **systemBarTintChange**, indicating the property change event of the status bar and navigation bar.| | type | string | Yes | Type of event to listen for. The value is fixed at **systemBarTintChange**, indicating the property change event of the status bar and navigation bar.|
| callback | Callback&lt;[SystemBarTintState](#systembartintstate)&gt; | Yes | Callback used to return the information. | | callback | Callback&lt;[SystemBarTintState](#systembartintstate)&gt; | Yes | Callback used to return the information. |
- Example **Example**
```js ```js
var type = 'systemBarTintChange'; var type = 'systemBarTintChange';
...@@ -517,14 +523,14 @@ This is a system API and cannot be called by third-party applications. ...@@ -517,14 +523,14 @@ This is a system API and cannot be called by third-party applications.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ | | -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ |
| type | string | Yes | Type of event to listen for. The value is fixed at **systemBarTintChange**, indicating the property change event of the status bar and navigation bar.| | type | string | Yes | Type of event to listen for. The value is fixed at **systemBarTintChange**, indicating the property change event of the status bar and navigation bar.|
| callback | Callback&lt;[SystemBarTintState](#systembartintstate)&gt; | No | Callback used to return the information. | | callback | Callback&lt;[SystemBarTintState](#systembartintstate)&gt; | No | Callback used to return the information. |
- Example **Example**
```js ```js
var type = 'systemBarTintChange'; var type = 'systemBarTintChange';
...@@ -545,13 +551,13 @@ This is a system API and cannot be called by third-party applications. ...@@ -545,13 +551,13 @@ This is a system API and cannot be called by third-party applications.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | ---------- | | -------- | ------------------------- | ---- | ---------- |
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result.| | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result.|
- Example **Example**
```js ```js
windowClass.hide((err, data) => { windowClass.hide((err, data) => {
...@@ -573,13 +579,13 @@ This is a system API and cannot be called by third-party applications. ...@@ -573,13 +579,13 @@ This is a system API and cannot be called by third-party applications.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
let promise = windowClass.hide(); let promise = windowClass.hide();
...@@ -598,13 +604,13 @@ Shows this window. This API uses an asynchronous callback to return the result. ...@@ -598,13 +604,13 @@ Shows this window. This API uses an asynchronous callback to return the result.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | ---------- | | -------- | ------------------------- | ---- | ---------- |
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result.| | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result.|
- Example **Example**
```js ```js
windowClass.show((err, data) => { windowClass.show((err, data) => {
...@@ -624,13 +630,13 @@ Shows this window. This API uses a promise to return the result. ...@@ -624,13 +630,13 @@ Shows this window. This API uses a promise to return the result.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
let promise = windowClass.show(); let promise = windowClass.show();
...@@ -649,13 +655,13 @@ Destroys this window. This API uses an asynchronous callback to return the resul ...@@ -649,13 +655,13 @@ Destroys this window. This API uses an asynchronous callback to return the resul
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | ---------- | | -------- | ------------------------- | ---- | ---------- |
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result.| | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result.|
- Example **Example**
```js ```js
windowClass.destroy((err, data) => { windowClass.destroy((err, data) => {
...@@ -675,13 +681,13 @@ Destroys this window. This API uses a promise to return the result. ...@@ -675,13 +681,13 @@ Destroys this window. This API uses a promise to return the result.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
let promise = windowClass.destroy(); let promise = windowClass.destroy();
...@@ -700,7 +706,7 @@ Moves the position of this window. This API uses an asynchronous callback to ret ...@@ -700,7 +706,7 @@ Moves the position of this window. This API uses an asynchronous callback to ret
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | --------------------------------------- | | -------- | ------------------------- | ---- | --------------------------------------- |
...@@ -708,7 +714,7 @@ Moves the position of this window. This API uses an asynchronous callback to ret ...@@ -708,7 +714,7 @@ Moves the position of this window. This API uses an asynchronous callback to ret
| y | number | Yes | Distance that the window moves along the y-axis. A positive value indicates that the window moves downwards.| | y | number | Yes | Distance that the window moves along the y-axis. A positive value indicates that the window moves downwards.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
windowClass.moveTo(300, 300, (err, data)=>{ windowClass.moveTo(300, 300, (err, data)=>{
...@@ -729,20 +735,20 @@ Moves the position of this window. This API uses a promise to return the result. ...@@ -729,20 +735,20 @@ Moves the position of this window. This API uses a promise to return the result.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------ | ---- | --------------------------------------- | | ------ | ------ | ---- | --------------------------------------- |
| x | number | Yes | Distance that the window moves along the x-axis. A positive value indicates that the window moves to the right.| | x | number | Yes | Distance that the window moves along the x-axis. A positive value indicates that the window moves to the right.|
| y | number | Yes | Distance that the window moves along the y-axis. A positive value indicates that the window moves downwards.| | y | number | Yes | Distance that the window moves along the y-axis. A positive value indicates that the window moves downwards.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
let promise = windowClass.moveTo(300, 300); let promise = windowClass.moveTo(300, 300);
...@@ -761,7 +767,7 @@ Changes the size of this window. This API uses an asynchronous callback to retur ...@@ -761,7 +767,7 @@ Changes the size of this window. This API uses an asynchronous callback to retur
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | ---------------- | | -------- | ------------------------- | ---- | ---------------- |
...@@ -769,7 +775,7 @@ Changes the size of this window. This API uses an asynchronous callback to retur ...@@ -769,7 +775,7 @@ Changes the size of this window. This API uses an asynchronous callback to retur
| height | number | Yes | New height of the window.| | height | number | Yes | New height of the window.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
windowClass.resetSize(500, 1000, (err, data) => { windowClass.resetSize(500, 1000, (err, data) => {
...@@ -789,20 +795,20 @@ Changes the size of this window. This API uses a promise to return the result. ...@@ -789,20 +795,20 @@ Changes the size of this window. This API uses a promise to return the result.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ---------------- | | ------ | ------ | ---- | ---------------- |
| width | number | Yes | New width of the window.| | width | number | Yes | New width of the window.|
| height | number | Yes | New height of the window.| | height | number | Yes | New height of the window.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
let promise = windowClass.resetSize(500, 1000); let promise = windowClass.resetSize(500, 1000);
...@@ -823,14 +829,14 @@ This is a system API and cannot be called by third-party applications. ...@@ -823,14 +829,14 @@ This is a system API and cannot be called by third-party applications.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | ---------- | | -------- | ------------------------- | ---- | ---------- |
| type | [WindowType](#windowtype) | Yes | Window type.| | type | [WindowType](#windowtype) | Yes | Window type.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result.| | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result.|
- Example **Example**
```js ```js
var type = window.TYPE_APP; var type = window.TYPE_APP;
...@@ -853,19 +859,19 @@ This is a system API and cannot be called by third-party applications. ...@@ -853,19 +859,19 @@ This is a system API and cannot be called by third-party applications.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------------------------- | ---- | ---------- | | ------ | ------------------------- | ---- | ---------- |
| type | [WindowType](#windowtype) | Yes | Window type.| | type | [WindowType](#windowtype) | Yes | Window type.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
var type = window.TYPE_APP; var type = window.TYPE_APP;
...@@ -885,13 +891,13 @@ Obtains the properties of this window. This API uses an asynchronous callback to ...@@ -885,13 +891,13 @@ Obtains the properties of this window. This API uses an asynchronous callback to
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ---------------------------------------------------------- | ---- | ------------------ | | -------- | ---------------------------------------------------------- | ---- | ------------------ |
| callback | AsyncCallback&lt;[WindowProperties](#windowproperties)&gt; | Yes | Callback used to return the window properties.| | callback | AsyncCallback&lt;[WindowProperties](#windowproperties)&gt; | Yes | Callback used to return the window properties.|
- Example **Example**
```js ```js
windowClass.getProperties((err, data) => { windowClass.getProperties((err, data) => {
...@@ -911,13 +917,13 @@ Obtains the properties of this window. This API uses a promise to return the res ...@@ -911,13 +917,13 @@ Obtains the properties of this window. This API uses a promise to return the res
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Return value **Return value**
| Type | Description | | Type | Description |
| ---------------------------------------------------- | ------------------------------------- | | ---------------------------------------------------- | ------------------------------------- |
| Promise&lt;[WindowProperties](#windowproperties)&gt; | Promise used to return the window properties.| | Promise&lt;[WindowProperties](#windowproperties)&gt; | Promise used to return the window properties.|
- Example **Example**
```js ```js
let promise = windowClass.getProperties(); let promise = windowClass.getProperties();
...@@ -936,14 +942,14 @@ Obtains the area where this window cannot be displayed, for example, the system ...@@ -936,14 +942,14 @@ Obtains the area where this window cannot be displayed, for example, the system
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | -------------------------------------------- | ---- | ------------------------------------------------------------ | | -------- | -------------------------------------------- | ---- | ------------------------------------------------------------ |
| type | [AvoidAreaType](#avoidareatype) | Yes | Type of the area. **TYPE_SYSTEM** indicates the default area of the system. **TYPE_CUTOUT** indicates the notch.| | type | [AvoidAreaType](#avoidareatype) | Yes | Type of the area. **TYPE_SYSTEM** indicates the default area of the system. **TYPE_CUTOUT** indicates the notch.|
| callback | AsyncCallback&lt;[AvoidArea](#avoidarea)&gt; | Yes | Callback used to return the area. | | callback | AsyncCallback&lt;[AvoidArea](#avoidarea)&gt; | Yes | Callback used to return the area. |
- Example **Example**
```js ```js
var type = window.AvoidAreaType.TYPE_SYSTEM; var type = window.AvoidAreaType.TYPE_SYSTEM;
...@@ -964,19 +970,19 @@ Obtains the area where this window cannot be displayed, for example, the system ...@@ -964,19 +970,19 @@ Obtains the area where this window cannot be displayed, for example, the system
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------------------------------- | ---- | ------------------------------------------------------------ | | ------ | ------------------------------- | ---- | ------------------------------------------------------------ |
| type | [AvoidAreaType](#avoidareatype) | Yes | Type of the area. **TYPE_SYSTEM** indicates the default area of the system. **TYPE_CUTOUT** indicates the notch.| | type | [AvoidAreaType](#avoidareatype) | Yes | Type of the area. **TYPE_SYSTEM** indicates the default area of the system. **TYPE_CUTOUT** indicates the notch.|
- Return value **Return value**
| Type | Description | | Type | Description |
| -------------------------------------- | --------------------------------------------- | | -------------------------------------- | --------------------------------------------- |
| Promise&lt;[AvoidArea](#avoidarea)&gt; | Promise used to return the area.| | Promise&lt;[AvoidArea](#avoidarea)&gt; | Promise used to return the area.|
- Example **Example**
```js ```js
let promise = windowClass.getAvoidArea(); let promise = windowClass.getAvoidArea();
...@@ -995,14 +1001,14 @@ Sets whether to enable the full-screen mode for this window. This API uses an as ...@@ -995,14 +1001,14 @@ Sets whether to enable the full-screen mode for this window. This API uses an as
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ------------ | ------------------------- | ---- | ---------------------------------------------- | | ------------ | ------------------------- | ---- | ---------------------------------------------- |
| isFullScreen | boolean | Yes | Whether to enable the full-screen mode, in which the status bar and navigation bar are hidden.| | isFullScreen | boolean | Yes | Whether to enable the full-screen mode, in which the status bar and navigation bar are hidden.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
var isFullScreen = true; var isFullScreen = true;
...@@ -1023,19 +1029,19 @@ Sets whether to enable the full-screen mode for this window. This API uses a pro ...@@ -1023,19 +1029,19 @@ Sets whether to enable the full-screen mode for this window. This API uses a pro
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ------------ | ------- | ---- | ---------------------------------------------- | | ------------ | ------- | ---- | ---------------------------------------------- |
| isFullScreen | boolean | Yes | Whether to enable the full-screen mode, in which the status bar and navigation bar are hidden.| | isFullScreen | boolean | Yes | Whether to enable the full-screen mode, in which the status bar and navigation bar are hidden.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
var isFullScreen = true; var isFullScreen = true;
...@@ -1055,14 +1061,14 @@ Sets whether the window layout is in full-screen mode. This API uses an asynchro ...@@ -1055,14 +1061,14 @@ Sets whether the window layout is in full-screen mode. This API uses an asynchro
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ------------------ | ------------------------- | ---- | ------------------------------------------------------------ | | ------------------ | ------------------------- | ---- | ------------------------------------------------------------ |
| isLayoutFullScreen | boolean | Yes | Whether the window layout is in full-screen mode, in which the status bar and navigation bar are displayed.| | isLayoutFullScreen | boolean | Yes | Whether the window layout is in full-screen mode, in which the status bar and navigation bar are displayed.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
var isLayoutFullScreen= true; var isLayoutFullScreen= true;
...@@ -1083,19 +1089,19 @@ Sets whether the window layout is in full-screen mode. This API uses a promise t ...@@ -1083,19 +1089,19 @@ Sets whether the window layout is in full-screen mode. This API uses a promise t
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ------------------ | ------- | ---- | ------------------------------------------------------------ | | ------------------ | ------- | ---- | ------------------------------------------------------------ |
| isLayoutFullScreen | boolean | Yes | Whether the window layout is in full-screen mode, in which the status bar and navigation bar are displayed.| | isLayoutFullScreen | boolean | Yes | Whether the window layout is in full-screen mode, in which the status bar and navigation bar are displayed.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
var isLayoutFullScreen = true; var isLayoutFullScreen = true;
...@@ -1115,14 +1121,14 @@ Sets whether to display the status bar and navigation bar in this window. This A ...@@ -1115,14 +1121,14 @@ Sets whether to display the status bar and navigation bar in this window. This A
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | ------------------------------------------------------------ | | -------- | ------------------------- | ---- | ------------------------------------------------------------ |
| names | Array | Yes | Whether to display the status bar and navigation bar. For example, to display the status bar and navigation bar, set this parameter to **["status", "navigation"]**. By default, they are not displayed.| | names | Array | Yes | Whether to display the status bar and navigation bar. For example, to display the status bar and navigation bar, set this parameter to **["status", "navigation"]**. By default, they are not displayed.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
var names = ["status", "navigation"]; var names = ["status", "navigation"];
...@@ -1143,19 +1149,19 @@ Sets whether to display the status bar and navigation bar in this window. This A ...@@ -1143,19 +1149,19 @@ Sets whether to display the status bar and navigation bar in this window. This A
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ----- | ---- | ------------------------------------------------------------ | | ------ | ----- | ---- | ------------------------------------------------------------ |
| names | Array | Yes | Whether to display the status bar and navigation bar. For example, to display the status bar and navigation bar, set this parameter to **["status", "navigation"]**. By default, they are not displayed.| | names | Array | Yes | Whether to display the status bar and navigation bar. For example, to display the status bar and navigation bar, set this parameter to **["status", "navigation"]**. By default, they are not displayed.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
var names = ["status", "navigation"]; var names = ["status", "navigation"];
...@@ -1175,14 +1181,14 @@ Sets the properties of the status bar and navigation bar in this window. This AP ...@@ -1175,14 +1181,14 @@ Sets the properties of the status bar and navigation bar in this window. This AP
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ------------------- | ------------------------------------------- | ---- | -------------------- | | ------------------- | ------------------------------------------- | ---- | -------------------- |
| SystemBarProperties | [SystemBarProperties](#systembarproperties) | Yes | Properties of the status bar and navigation bar.| | SystemBarProperties | [SystemBarProperties](#systembarproperties) | Yes | Properties of the status bar and navigation bar.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
var SystemBarProperties={ var SystemBarProperties={
...@@ -1212,19 +1218,19 @@ Sets the properties of the status bar and navigation bar in this window. This AP ...@@ -1212,19 +1218,19 @@ Sets the properties of the status bar and navigation bar in this window. This AP
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ------------------- | ------------------------------------------- | ---- | -------------------- | | ------------------- | ------------------------------------------- | ---- | -------------------- |
| SystemBarProperties | [SystemBarProperties](#systembarproperties) | Yes | Properties of the status bar and navigation bar.| | SystemBarProperties | [SystemBarProperties](#systembarproperties) | Yes | Properties of the status bar and navigation bar.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
var SystemBarProperties={ var SystemBarProperties={
...@@ -1253,14 +1259,14 @@ Loads content to this window. This API uses an asynchronous callback to return t ...@@ -1253,14 +1259,14 @@ Loads content to this window. This API uses an asynchronous callback to return t
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | -------------------- | | -------- | ------------------------- | ---- | -------------------- |
| path | string | Yes | Path of the page from which the content will be loaded.| | path | string | Yes | Path of the page from which the content will be loaded.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
windowClass.loadContent("pages/page2/page2", (err, data) => { windowClass.loadContent("pages/page2/page2", (err, data) => {
...@@ -1280,19 +1286,19 @@ Loads content to this window. This API uses a promise to return the result. ...@@ -1280,19 +1286,19 @@ Loads content to this window. This API uses a promise to return the result.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------ | ---- | -------------------- | | ------ | ------ | ---- | -------------------- |
| path | string | Yes | Path of the page from which the content will be loaded.| | path | string | Yes | Path of the page from which the content will be loaded.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
let promise = windowClass.loadContent("pages/page2/page2"); let promise = windowClass.loadContent("pages/page2/page2");
...@@ -1311,13 +1317,13 @@ Checks whether this window is displayed. This API uses an asynchronous callback ...@@ -1311,13 +1317,13 @@ Checks whether this window is displayed. This API uses an asynchronous callback
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ---------------------------- | ---- | -------------------------------- | | -------- | ---------------------------- | ---- | -------------------------------- |
| callback | AsyncCallback&lt;boolean&gt; | Yes | Callback used to return whether the window is displayed.| | callback | AsyncCallback&lt;boolean&gt; | Yes | Callback used to return whether the window is displayed.|
- Example **Example**
```js ```js
windowClass.isShowing((err, data) => { windowClass.isShowing((err, data) => {
...@@ -1337,13 +1343,13 @@ Checks whether this window is displayed. This API uses a promise to return the r ...@@ -1337,13 +1343,13 @@ Checks whether this window is displayed. This API uses a promise to return the r
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Return value **Return value**
| Type | Description | | Type | Description |
| ---------------------- | ----------------------------------------------------- | | ---------------------- | ----------------------------------------------------- |
| Promise&lt;boolean&gt; | Promise used to return whether the window is displayed.| | Promise&lt;boolean&gt; | Promise used to return whether the window is displayed.|
- Example **Example**
```js ```js
let promise = windowClass.isShowing(); let promise = windowClass.isShowing();
...@@ -1362,14 +1368,14 @@ Enables listening for window size changes. ...@@ -1362,14 +1368,14 @@ Enables listening for window size changes.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ----------------------------- | ---- | -------------------------------------------------------- | | -------- | ----------------------------- | ---- | -------------------------------------------------------- |
| type | string | Yes | Type of event to listen for. The value is fixed at **windowSizeChange**, indicating the window size change event.| | type | string | Yes | Type of event to listen for. The value is fixed at **windowSizeChange**, indicating the window size change event.|
| callback | Callback&lt;[Size](#size)&gt; | Yes | Callback used to return the information. | | callback | Callback&lt;[Size](#size)&gt; | Yes | Callback used to return the information. |
- Example **Example**
```js ```js
var type = 'windowSizeChange'; var type = 'windowSizeChange';
...@@ -1386,14 +1392,14 @@ Disables listening for window size changes. ...@@ -1386,14 +1392,14 @@ Disables listening for window size changes.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ----------------------------- | ---- | -------------------------------------------------------- | | -------- | ----------------------------- | ---- | -------------------------------------------------------- |
| type | string | Yes | Type of event to listen for. The value is fixed at **windowSizeChange**, indicating the window size change event.| | type | string | Yes | Type of event to listen for. The value is fixed at **windowSizeChange**, indicating the window size change event.|
| callback | Callback&lt;[Size](#size)&gt; | No | Callback used to return the information. | | callback | Callback&lt;[Size](#size)&gt; | No | Callback used to return the information. |
- Example **Example**
```js ```js
var type = 'windowSizeChange'; var type = 'windowSizeChange';
...@@ -1408,14 +1414,14 @@ Enables listening for changes to the area where the window cannot be displayed. ...@@ -1408,14 +1414,14 @@ Enables listening for changes to the area where the window cannot be displayed.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | --------------------------------------- | ---- | ------------------------------------------------------------ | | -------- | --------------------------------------- | ---- | ------------------------------------------------------------ |
| type | string | Yes | Type of event to listen for. The value is fixed at **systemAvoidAreaChange**, indicating the event of changes to the area where the window cannot be displayed.| | type | string | Yes | Type of event to listen for. The value is fixed at **systemAvoidAreaChange**, indicating the event of changes to the area where the window cannot be displayed.|
| callback | Callback&lt;[AvoidArea](#avoidarea)&gt; | Yes | Callback used to return the information. | | callback | Callback&lt;[AvoidArea](#avoidarea)&gt; | Yes | Callback used to return the information. |
- Example **Example**
```js ```js
var type = 'systemAvoidAreaChange'; var type = 'systemAvoidAreaChange';
...@@ -1432,14 +1438,14 @@ Disables listening for changes to the area where the window cannot be displayed. ...@@ -1432,14 +1438,14 @@ Disables listening for changes to the area where the window cannot be displayed.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | --------------------------------------- | ---- | ------------------------------------------------------------ | | -------- | --------------------------------------- | ---- | ------------------------------------------------------------ |
| type | string | Yes | Type of event to listen for. The value is fixed at **systemAvoidAreaChange**, indicating the event of changes to the area where the window cannot be displayed.| | type | string | Yes | Type of event to listen for. The value is fixed at **systemAvoidAreaChange**, indicating the event of changes to the area where the window cannot be displayed.|
| callback | Callback&lt;[AvoidArea](#avoidarea)&gt; | No | Callback used to return the information. | | callback | Callback&lt;[AvoidArea](#avoidarea)&gt; | No | Callback used to return the information. |
- Example **Example**
```js ```js
var type = 'systemAvoidAreaChange'; var type = 'systemAvoidAreaChange';
...@@ -1456,14 +1462,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -1456,14 +1462,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------ | ---- | ------------------------------------------------------------ | | -------- | ------------------ | ---- | ------------------------------------------------------------ |
| type | string | Yes | Type of event to listen for. The value is fixed at **keyboardHeightChange**, indicating the keyboard height change event.| | type | string | Yes | Type of event to listen for. The value is fixed at **keyboardHeightChange**, indicating the keyboard height change event.|
| callback | Callbacknumber&gt; | Yes | Callback used to return the information. | | callback | Callbacknumber&gt; | Yes | Callback used to return the information. |
- Example **Example**
```js ```js
var type = 'keyboardHeightChange'; var type = 'keyboardHeightChange';
...@@ -1482,14 +1488,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -1482,14 +1488,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ---------------------- | ---- | ------------------------------------------------------------ | | -------- | ---------------------- | ---- | ------------------------------------------------------------ |
| type | string | Yes | Type of event to listen for. The value is fixed at **keyboardHeightChange**, indicating the keyboard height change event.| | type | string | Yes | Type of event to listen for. The value is fixed at **keyboardHeightChange**, indicating the keyboard height change event.|
| callback | Callback&lt;number&gt; | No | Callback used to return the information. | | callback | Callback&lt;number&gt; | No | Callback used to return the information. |
- Example **Example**
```js ```js
var type = 'keyboardHeightChange'; var type = 'keyboardHeightChange';
...@@ -1504,13 +1510,13 @@ Checks whether this window supports the wide color gamut mode. This API uses an ...@@ -1504,13 +1510,13 @@ Checks whether this window supports the wide color gamut mode. This API uses an
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ---------------------------- | ---- | -------------------------------- | | -------- | ---------------------------- | ---- | -------------------------------- |
| callback | AsyncCallback&lt;boolean&gt; | Yes | Callback used to return whether the wide color gamut mode is supported.| | callback | AsyncCallback&lt;boolean&gt; | Yes | Callback used to return whether the wide color gamut mode is supported.|
- Example **Example**
```js ```js
windowClass.isSupportWideGamut((err, data) => { windowClass.isSupportWideGamut((err, data) => {
...@@ -1530,13 +1536,13 @@ Checks whether this window supports the wide color gamut mode. This API uses a p ...@@ -1530,13 +1536,13 @@ Checks whether this window supports the wide color gamut mode. This API uses a p
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Return value **Return value**
| Type | Description | | Type | Description |
| ---------------------- | ------------------------------------------------------------ | | ---------------------- | ------------------------------------------------------------ |
| Promise&lt;boolean&gt; | Promise used to return whether the wide color gamut mode is supported.| | Promise&lt;boolean&gt; | Promise used to return whether the wide color gamut mode is supported.|
- Example **Example**
```js ```js
let promise = windowClass.isSupportWideGamut(); let promise = windowClass.isSupportWideGamut();
...@@ -1555,14 +1561,14 @@ Sets this window to the wide or default color gamut mode. This API uses an async ...@@ -1555,14 +1561,14 @@ Sets this window to the wide or default color gamut mode. This API uses an async
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ---------- | ------------------------- | ---- | ------------ | | ---------- | ------------------------- | ---- | ------------ |
| colorSpace | [ColorSpace](#colorspace) | Yes | Color gamut mode.| | colorSpace | [ColorSpace](#colorspace) | Yes | Color gamut mode.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
windowClass.setColorSpace(window.ColorSpace.WIDE_GAMUT, (err, data) => { windowClass.setColorSpace(window.ColorSpace.WIDE_GAMUT, (err, data) => {
...@@ -1582,19 +1588,19 @@ Sets this window to the wide or default color gamut mode. This API uses a promis ...@@ -1582,19 +1588,19 @@ Sets this window to the wide or default color gamut mode. This API uses a promis
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ---------- | ------------------------- | ---- | ------------ | | ---------- | ------------------------- | ---- | ------------ |
| colorSpace | [ColorSpace](#colorspace) | Yes | Color gamut mode.| | colorSpace | [ColorSpace](#colorspace) | Yes | Color gamut mode.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
let promise = windowClass.isSupportWideGamut(window.ColorSpace.WIDE_GAMUT); let promise = windowClass.isSupportWideGamut(window.ColorSpace.WIDE_GAMUT);
...@@ -1613,13 +1619,13 @@ Obtains the color gamut mode of this window. This API uses an asynchronous callb ...@@ -1613,13 +1619,13 @@ Obtains the color gamut mode of this window. This API uses an asynchronous callb
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ---------------------------------------------- | ---- | -------------------------- | | -------- | ---------------------------------------------- | ---- | -------------------------- |
| callback | AsyncCallback&lt;[ColorSpace](#colorspace)&gt; | Yes | Callback used to return the color gamut mode obtained.| | callback | AsyncCallback&lt;[ColorSpace](#colorspace)&gt; | Yes | Callback used to return the color gamut mode obtained.|
- Example **Example**
```js ```js
windowClass.getColorSpace((err, data) => { windowClass.getColorSpace((err, data) => {
...@@ -1639,13 +1645,13 @@ Obtains the color gamut mode of this window. This API uses a promise to return t ...@@ -1639,13 +1645,13 @@ Obtains the color gamut mode of this window. This API uses a promise to return t
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Return value **Return value**
| Type | Description | | Type | Description |
| ---------------------------------------- | ----------------------------------------- | | ---------------------------------------- | ----------------------------------------- |
| Promise&lt;[ColorSpace](#colorspace)&gt; | Promise used to return the color gamut mode obtained.| | Promise&lt;[ColorSpace](#colorspace)&gt; | Promise used to return the color gamut mode obtained.|
- Example **Example**
```js ```js
let promise = windowClass.getColorSpace(); let promise = windowClass.getColorSpace();
...@@ -1666,14 +1672,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -1666,14 +1672,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | ------------------------------------------------------------ | | -------- | ------------------------- | ---- | ------------------------------------------------------------ |
| color | string | Yes | Background color to set. The color is a hexadecimal value, for example, #00FF00 or #FF00FF00.| | color | string | Yes | Background color to set. The color is a hexadecimal value, for example, #00FF00 or #FF00FF00.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
var color = '#00ff33'; var color = '#00ff33';
...@@ -1696,19 +1702,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -1696,19 +1702,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ------------------------------------------------------------ | | ------ | ------ | ---- | ------------------------------------------------------------ |
| color | string | Yes | Background color to set. The color is a hexadecimal value, for example, #00FF00 or #FF00FF00.| | color | string | Yes | Background color to set. The color is a hexadecimal value, for example, #00FF00 or #FF00FF00.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
var color = '#00ff33'; var color = '#00ff33';
...@@ -1730,14 +1736,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -1730,14 +1736,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ---------- | ------------------------- | ---- | ------------------------------------ | | ---------- | ------------------------- | ---- | ------------------------------------ |
| brightness | number | Yes | Brightness to set, which ranges from 0 to 1. The value **1** indicates the brightest.| | brightness | number | Yes | Brightness to set, which ranges from 0 to 1. The value **1** indicates the brightest.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
var brightness = 1; var brightness = 1;
...@@ -1760,19 +1766,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -1760,19 +1766,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ---------- | ------ | ---- | ------------------------------------ | | ---------- | ------ | ---- | ------------------------------------ |
| brightness | number | Yes | Brightness to set, which ranges from 0 to 1. The value **1** indicates the brightest.| | brightness | number | Yes | Brightness to set, which ranges from 0 to 1. The value **1** indicates the brightest.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
var brightness = 1; var brightness = 1;
...@@ -1794,14 +1800,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -1794,14 +1800,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------------- | ------------------------- | ---- | -------------------------------------------------- | | -------------- | ------------------------- | ---- | -------------------------------------------------- |
| dimBehindValue | number | Yes | Dimness of the window to set. The value ranges from 0 to 1. The value **1** indicates the dimmest.| | dimBehindValue | number | Yes | Dimness of the window to set. The value ranges from 0 to 1. The value **1** indicates the dimmest.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
windowClass.setDimBehind(0.5, (err, data) => { windowClass.setDimBehind(0.5, (err, data) => {
...@@ -1823,19 +1829,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -1823,19 +1829,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------------- | ------ | ---- | -------------------------------------------------- | | -------------- | ------ | ---- | -------------------------------------------------- |
| dimBehindValue | number | Yes | Dimness of the window to set. The value ranges from 0 to 1. The value **1** indicates the dimmest.| | dimBehindValue | number | Yes | Dimness of the window to set. The value ranges from 0 to 1. The value **1** indicates the dimmest.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
let promise = windowClass.setDimBehind(0.5); let promise = windowClass.setDimBehind(0.5);
...@@ -1856,14 +1862,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -1856,14 +1862,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ----------- | ------------------------- | ---- | ---------------------------- | | ----------- | ------------------------- | ---- | ---------------------------- |
| isFocusable | boolean | Yes | Whether the window can gain focus.| | isFocusable | boolean | Yes | Whether the window can gain focus.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
var isFocusable= true; var isFocusable= true;
...@@ -1886,19 +1892,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -1886,19 +1892,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ----------- | ------- | ---- | ---------------------------- | | ----------- | ------- | ---- | ---------------------------- |
| isFocusable | boolean | Yes | Whether the window can gain focus.| | isFocusable | boolean | Yes | Whether the window can gain focus.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
var isFocusable= true; var isFocusable= true;
...@@ -1920,14 +1926,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -1920,14 +1926,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------------- | ------------------------- | ---- | ------------------------ | | -------------- | ------------------------- | ---- | ------------------------ |
| isKeepScreenOn | boolean | Yes | Whether to keep the screen always on.| | isKeepScreenOn | boolean | Yes | Whether to keep the screen always on.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
var isKeepScreenOn = true; var isKeepScreenOn = true;
...@@ -1950,19 +1956,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -1950,19 +1956,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------------- | ------- | ---- | ------------------------ | | -------------- | ------- | ---- | ------------------------ |
| isKeepScreenOn | boolean | Yes | Whether to keep the screen always on.| | isKeepScreenOn | boolean | Yes | Whether to keep the screen always on.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
var isKeepScreenOn= true; var isKeepScreenOn= true;
...@@ -1984,14 +1990,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -1984,14 +1990,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| --------- | ------------------------- | ---- | ---------------- | | --------- | ------------------------- | ---- | ---------------- |
| touchable | boolean | Yes | Whether the area outside the subwindow is touchable. The value **true** means that such an area is touchable, and **false** means the opposite.| | touchable | boolean | Yes | Whether the area outside the subwindow is touchable. The value **true** means that such an area is touchable, and **false** means the opposite.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
windowClass.setOutsideTouchable(true, (err, data) => { windowClass.setOutsideTouchable(true, (err, data) => {
...@@ -2013,19 +2019,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -2013,19 +2019,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| --------- | ------- | ---- | ---------------- | | --------- | ------- | ---- | ---------------- |
| touchable | boolean | Yes | Whether the area outside the subwindow is touchable. The value **true** means that such an area is touchable, and **false** means the opposite.| | touchable | boolean | Yes | Whether the area outside the subwindow is touchable. The value **true** means that such an area is touchable, and **false** means the opposite.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
let promise = windowClass.setOutsideTouchable(true); let promise = windowClass.setOutsideTouchable(true);
...@@ -2046,14 +2052,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -2046,14 +2052,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ------------- | ------------------------- | ---- | -------------------- | | ------------- | ------------------------- | ---- | -------------------- |
| isPrivacyMode | boolean | Yes | Whether the window is in privacy mode.| | isPrivacyMode | boolean | Yes | Whether the window is in privacy mode.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
var isPrivacyMode = true; var isPrivacyMode = true;
...@@ -2077,19 +2083,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -2077,19 +2083,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ------------- | ------- | ---- | -------------------- | | ------------- | ------- | ---- | -------------------- |
| isPrivacyMode | boolean | Yes | Whether the window is in privacy mode.| | isPrivacyMode | boolean | Yes | Whether the window is in privacy mode.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
var isPrivacyMode = true; var isPrivacyMode = true;
...@@ -2111,14 +2117,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -2111,14 +2117,14 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ----------- | ------------------------- | ---- | -------------------- | | ----------- | ------------------------- | ---- | -------------------- |
| isTouchable | boolean | Yes | Whether the window is touchable.| | isTouchable | boolean | Yes | Whether the window is touchable.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```js ```js
var isTouchable = true; var isTouchable = true;
...@@ -2142,19 +2148,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a ...@@ -2142,19 +2148,19 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. It will be a
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ----------- | ------- | ---- | -------------------- | | ----------- | ------- | ---- | -------------------- |
| isTouchable | boolean | Yes | Whether the window is touchable.| | isTouchable | boolean | Yes | Whether the window is touchable.|
- Return value **Return value**
| Type | Description | | Type | Description |
| ------------------- | ----------------------------------------------- | | ------------------- | ----------------------------------------------- |
| Promise&lt;void&gt; | Promise used to return the execution result.| | Promise&lt;void&gt; | Promise used to return the execution result.|
- Example **Example**
```js ```js
var isTouchable = true; var isTouchable = true;
...@@ -2191,13 +2197,13 @@ Obtains the main window of this window stage. This API uses a promise to return ...@@ -2191,13 +2197,13 @@ Obtains the main window of this window stage. This API uses a promise to return
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Return value **Return value**
| Type | Description | | Type | Description |
| -------------------------------- | ---------------------------------------------------------- | | -------------------------------- | ---------------------------------------------------------- |
| Promise&lt;[Window](#window)&gt; | Promise used to return the main window.| | Promise&lt;[Window](#window)&gt; | Promise used to return the main window.|
- Example **Example**
```ts ```ts
class myAbility extends Ability { class myAbility extends Ability {
...@@ -2223,13 +2229,13 @@ Obtains the main window of this window stage. This API uses an asynchronous call ...@@ -2223,13 +2229,13 @@ Obtains the main window of this window stage. This API uses an asynchronous call
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | -------------------------------------- | ---- | --------------------------------------- | | -------- | -------------------------------------- | ---- | --------------------------------------- |
| callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the main window.| | callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the main window.|
- Example **Example**
```ts ```ts
class myAbility extends Ability { class myAbility extends Ability {
...@@ -2256,19 +2262,19 @@ Creates a subwindow for this window stage. This API uses a promise to return the ...@@ -2256,19 +2262,19 @@ Creates a subwindow for this window stage. This API uses a promise to return the
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------ | ---- | -------------- | | ------ | ------ | ---- | -------------- |
| name | String | Yes | Name of the subwindow.| | name | String | Yes | Name of the subwindow.|
- Return value **Return value**
| Type | Description | | Type | Description |
| -------------------------------- | ------------------------------------------------- | | -------------------------------- | ------------------------------------------------- |
| Promise&lt;[Window](#window)&gt; | Promise used to return the subwindow created.| | Promise&lt;[Window](#window)&gt; | Promise used to return the subwindow created.|
- Example **Example**
```ts ```ts
class myAbility extends Ability { class myAbility extends Ability {
...@@ -2294,14 +2300,14 @@ Creates a subwindow for this window stage. This API uses an asynchronous callbac ...@@ -2294,14 +2300,14 @@ Creates a subwindow for this window stage. This API uses an asynchronous callbac
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | -------------------------------------- | ---- | ------------------------------ | | -------- | -------------------------------------- | ---- | ------------------------------ |
| name | String | Yes | Name of the subwindow. | | name | String | Yes | Name of the subwindow. |
| callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the subwindow created.| | callback | AsyncCallback&lt;[Window](#window)&gt; | Yes | Callback used to return the subwindow created.|
- Example **Example**
```ts ```ts
class myAbility extends Ability { class myAbility extends Ability {
...@@ -2329,13 +2335,13 @@ Obtains all the subwindows of this window stage. This API uses a promise to retu ...@@ -2329,13 +2335,13 @@ Obtains all the subwindows of this window stage. This API uses a promise to retu
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Return value **Return value**
| Type | Description | | Type | Description |
| --------------------------------------------- | ------------------------------------------------------------ | | --------------------------------------------- | ------------------------------------------------------------ |
| Promise&lt;Array&lt;[Window](#window)&gt;&gt; | Promise used to return all the subwindows.| | Promise&lt;Array&lt;[Window](#window)&gt;&gt; | Promise used to return all the subwindows.|
- Example **Example**
```ts ```ts
class myAbility extends Ability { class myAbility extends Ability {
...@@ -2361,13 +2367,13 @@ Obtains all the subwindows of this window stage. This API uses an asynchronous c ...@@ -2361,13 +2367,13 @@ Obtains all the subwindows of this window stage. This API uses an asynchronous c
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | --------------------------------------------------- | ---- | ------------------------------------------- | | -------- | --------------------------------------------------- | ---- | ------------------------------------------- |
| callback | AsyncCallback&lt;Array&lt;[Window](#window)&gt;&gt; | Yes | Callback used to return all the subwindows.| | callback | AsyncCallback&lt;Array&lt;[Window](#window)&gt;&gt; | Yes | Callback used to return all the subwindows.|
- Example **Example**
```ts ```ts
class myAbility extends Ability { class myAbility extends Ability {
...@@ -2392,16 +2398,16 @@ loadContent(path: string, callback: AsyncCallback&lt;void&gt;): void ...@@ -2392,16 +2398,16 @@ loadContent(path: string, callback: AsyncCallback&lt;void&gt;): void
Loads content to this window stage. This API uses an asynchronous callback to return the result. Loads content to this window stage. This API uses an asynchronous callback to return the result.
**System capability**: SystemCapability.WindowManager.WindowManager.Coretype with the value 'windowSizeChange' **System capability**: SystemCapability.WindowManager.WindowManager.Coretype with the value **windowSizeChange**
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | -------------------- | | -------- | ------------------------- | ---- | -------------------- |
| path | string | Yes | Path of the page from which the content will be loaded.| | path | string | Yes | Path of the page from which the content will be loaded.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the execution result. |
- Example **Example**
```ts ```ts
class myAbility extends Ability { class myAbility extends Ability {
...@@ -2426,14 +2432,14 @@ Enables listening for window stage lifecycle changes. ...@@ -2426,14 +2432,14 @@ Enables listening for window stage lifecycle changes.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ |
| type | string | Yes | Type of event to listen for. The value is fixed at **windowStageEvent**, indicating the window stage lifecycle change event.| | type | string | Yes | Type of event to listen for. The value is fixed at **windowStageEvent**, indicating the window stage lifecycle change event.|
| callback | Callback&lt;[WindowStageEventType](#windowstageeventtype9)&gt; | Yes | Callback used to return the information. | | callback | Callback&lt;[WindowStageEventType](#windowstageeventtype9)&gt; | Yes | Callback used to return the information. |
- Example **Example**
```ts ```ts
class myAbility extends Ability { class myAbility extends Ability {
...@@ -2455,14 +2461,14 @@ Disables listening for window stage lifecycle changes. ...@@ -2455,14 +2461,14 @@ Disables listening for window stage lifecycle changes.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters **Parameters**
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ |
| type | string | Yes | Type of event to listen for. The value is fixed at **windowStageEvent**, indicating the window stage lifecycle change event.| | type | string | Yes | Type of event to listen for. The value is fixed at **windowStageEvent**, indicating the window stage lifecycle change event.|
| callback | Callback&lt;[WindowStageEventType](#windowstageeventtype9)&gt; | No | Callback used to return the information. | | callback | Callback&lt;[WindowStageEventType](#windowstageeventtype9)&gt; | No | Callback used to return the information. |
- Example **Example**
```ts ```ts
class myAbility extends Ability { class myAbility extends Ability {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册