Table of Contents

Interface WindowOrWorkerGlobalScope

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
[Value("WindowOrWorkerGlobalScope")]
public interface WindowOrWorkerGlobalScope

Properties

Caches

[Value("caches")]
CacheStorage Caches { get; }

Property Value

CacheStorage

CrossOriginIsolated

[Value("crossOriginIsolated")]
bool CrossOriginIsolated { get; }

Property Value

bool

Crypto

[Value("crypto")]
Crypto Crypto { get; }

Property Value

Crypto

IndexedDB

[Value("indexedDB")]
IDBFactory IndexedDB { get; }

Property Value

IDBFactory

IsSecureContext

[Value("isSecureContext")]
bool IsSecureContext { get; }

Property Value

bool

Origin

[Value("origin")]
string Origin { get; }

Property Value

string

Performance

[Value("performance")]
Performance Performance { get; }

Property Value

Performance

Scheduler

[Value("scheduler")]
Scheduler Scheduler { get; }

Property Value

Scheduler

TrustedTypes

[Value("trustedTypes")]
TrustedTypePolicyFactory TrustedTypes { get; }

Property Value

TrustedTypePolicyFactory

Methods

Atob(string)

[Value("atob")]
string Atob(string data)

Parameters

data string

Returns

string

Btoa(string)

[Value("btoa")]
string Btoa(string data)

Parameters

data string

Returns

string

ClearInterval(long)

[Value("clearInterval")]
GlobalObject.Undefined ClearInterval(long id = 0)

Parameters

id long

Returns

GlobalObject.Undefined

ClearTimeout(long)

[Value("clearTimeout")]
GlobalObject.Undefined ClearTimeout(long id = 0)

Parameters

id long

Returns

GlobalObject.Undefined

CreateImageBitmap(Union93, ImageBitmapOptions)

[Value("createImageBitmap")]
Task<ImageBitmap> CreateImageBitmap(Union93 image, ImageBitmapOptions options = null)

Parameters

image Union93
options ImageBitmapOptions

Returns

Task<ImageBitmap>

CreateImageBitmap(Union93, long, long, long, long, ImageBitmapOptions)

[Value("createImageBitmap")]
Task<ImageBitmap> CreateImageBitmap(Union93 image, long sx, long sy, long sw, long sh, ImageBitmapOptions options = null)

Parameters

image Union93
sx long
sy long
sw long
sh long
options ImageBitmapOptions

Returns

Task<ImageBitmap>

Fetch(Union42, RequestInit)

[Value("fetch")]
Task<Response> Fetch(Union42 input, RequestInit init = null)

Parameters

input Union42
init RequestInit

Returns

Task<Response>

Fetch(string)

[To("FirstCharToLowerCase")]
Task<Response> Fetch(string input)

Parameters

input string

Returns

Task<Response>

QueueMicrotask(VoidFunction)

[Value("queueMicrotask")]
GlobalObject.Undefined QueueMicrotask(VoidFunction callback)

Parameters

callback VoidFunction

Returns

GlobalObject.Undefined

ReportError(dynamic)

[Value("reportError")]
GlobalObject.Undefined ReportError(dynamic e)

Parameters

e dynamic

Returns

GlobalObject.Undefined

SetInterval(Union84, long, params dynamic[])

[Value("setInterval")]
long SetInterval(Union84 handler, long timeout = 0, params dynamic[] arguments)

Parameters

handler Union84
timeout long
arguments dynamic[]

Returns

long

SetInterval(Action, long, params dynamic[])

[To("FirstCharToLowerCase")]
long SetInterval(Action handler, long timeout, params dynamic[] arguments)

Parameters

handler Action
timeout long
arguments dynamic[]

Returns

long

SetTimeout(Union84, long, params dynamic[])

[Value("setTimeout")]
long SetTimeout(Union84 handler, long timeout = 0, params dynamic[] arguments)

Parameters

handler Union84
timeout long
arguments dynamic[]

Returns

long

SetTimeout(Action, long, params dynamic[])

[To("FirstCharToLowerCase")]
long SetTimeout(Action handler, long timeout, params dynamic[] arguments)

Parameters

handler Action
timeout long
arguments dynamic[]

Returns

long

StructuredClone(dynamic, StructuredSerializeOptions)

[Value("structuredClone")]
dynamic StructuredClone(dynamic value, StructuredSerializeOptions options = null)

Parameters

value dynamic
options StructuredSerializeOptions

Returns

dynamic