Skip to content

Variable: URL ​

ts
URL: {
(url, base?): URL;
  prototype: URL;
  canParse: boolean;
  createObjectURL: string;
  parse: URL | null;
  revokeObjectURL: void;
};

Defined in: types/desktop-engine.d.ts:4305

Type Declaration ​

Throws a TypeError for an invalid URL

Parameters ​

ParameterType
urlstring | URL
base?string | URL

Returns ​

URL

NameTypeDescriptionDefined in
prototypeURL-types/desktop-engine.d.ts:4323
canParse()(url, base?) => boolean-types/desktop-engine.d.ts:4326
createObjectURL()(blob) => stringA blob:null/<uuid> URL for the blob: fetch, XMLHttpRequest and the src of CanvasImage, Image and Video load it. It lasts until revoked or until the content stopstypes/desktop-engine.d.ts:4333
parse()(url, base?) => URL | nullnull for an invalid URLtypes/desktop-engine.d.ts:4328
revokeObjectURL()(url) => voidfetch can't load it anymore; images and videos that already loaded it keep workingtypes/desktop-engine.d.ts:4335

The SDK is released under the Apache License 2.0