ImportScripts(params string[] scripts) |
void |
The importScripts() method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker's scope. |
Fetch(Request resource) |
Task<Response> |
Calls fetch |
Fetch(string resource) |
Task<Response> |
Calls fetch |
Fetch(string resource, FetchOptions options) |
Task<Response> |
Calls fetch |
StructuredClone(object value, StructuredCloneOptions options) |
T |
The structuredClone() method of the Window interface creates a deep clone of a given value using the structured clone algorithm. The method also allows transferable objects in the original value to be transferred rather than cloned to the new object. Transferred objects are detached from the original object and attached to the new object; they are no longer accessible in the original object. The object to be cloned. This can be any structured-cloneable type. |
StructuredClone(object value) |
T |
The structuredClone() method of the Window interface creates a deep clone of a given value using the structured clone algorithm. The method also allows transferable objects in the original value to be transferred rather than cloned to the new object. Transferred objects are detached from the original object and attached to the new object; they are no longer accessible in the original object. The object to be cloned. This can be any structured-cloneable type. |
SetTimeout(Callback callback, double delay) |
long |
Schedules a function to execute in a given amount of time. |
SetTimeout(Action callback, double delay) |
long |
Schedules a function to execute in a given amount of time. |
SetTimeout(Func<Task> callback, double delay) |
long |
Schedules a function to execute in a given amount of time. |
SetInterval(Callback callback, double delay) |
long |
The setInterval() method of the Window interface repeatedly calls a function or executes a code snippet, with a fixed time delay between each call. This method returns an interval ID which uniquely identifies the interval, so you can remove it later by calling clearInterval(). |
ClearInterval(long requestId) |
void |
Cancels the delayed execution set using setInterval(). |
ClearTimeout(long requestId) |
void |
Cancels the delayed execution set using setTimeout(). |
CreateImageBitmap(ImageBitmapSource image, int sx, int sy, int sw, int sh, ImageBitmapOptions options) |
Task<ImageBitmap> |
The createImageBitmap() method of the Window interface creates a bitmap from a given source, optionally cropped to contain only a portion of that source. It accepts a variety of different image sources, and returns a Promise which resolves to an ImageBitmap. An image source The x coordinate of the reference point of the rectangle from which the ImageBitmap will be extracted. The y coordinate of the reference point of the rectangle from which the ImageBitmap will be extracted. The width of the rectangle from which the ImageBitmap will be extracted. This value can be negative. The height of the rectangle from which the ImageBitmap will be extracted. This value can be negative. An object that sets options for the image's extraction. A Promise which resolves to an ImageBitmap object containing bitmap data from the given rectangle. |
CreateImageBitmap(ImageBitmapSource image, ImageBitmapOptions options) |
Task<ImageBitmap> |
The createImageBitmap() method of the Window interface creates a bitmap from a given source, optionally cropped to contain only a portion of that source. It accepts a variety of different image sources, and returns a Promise which resolves to an ImageBitmap. An image source An object that sets options for the image's extraction. A Promise which resolves to an ImageBitmap object containing bitmap data from the given rectangle. |
CreateImageBitmap(ImageBitmapSource image) |
Task<ImageBitmap> |
The createImageBitmap() method of the Window interface creates a bitmap from a given source, optionally cropped to contain only a portion of that source. It accepts a variety of different image sources, and returns a Promise which resolves to an ImageBitmap. An image source A Promise which resolves to an ImageBitmap object containing bitmap data from the given rectangle. |
CreateImageBitmap(ImageBitmapSource image, int sx, int sy, int sw, int sh) |
Task<ImageBitmap> |
The createImageBitmap() method of the Window interface creates a bitmap from a given source, optionally cropped to contain only a portion of that source. It accepts a variety of different image sources, and returns a Promise which resolves to an ImageBitmap. An image source The x coordinate of the reference point of the rectangle from which the ImageBitmap will be extracted. The y coordinate of the reference point of the rectangle from which the ImageBitmap will be extracted. The width of the rectangle from which the ImageBitmap will be extracted. This value can be negative. The height of the rectangle from which the ImageBitmap will be extracted. This value can be negative. A Promise which resolves to an ImageBitmap object containing bitmap data from the given rectangle. |