URLStaticMethods

URL: Static Methods

Describes the static API surface available on the standard URL constructor. These methods are available for class execution without an object context.

Functions

Link copied to clipboard
abstract fun createObjectURL(blob: Blob): URL
abstract fun createObjectURL(file: File): URL

Create a new URL object which references the provided File or Blob object.

Link copied to clipboard
abstract fun revokeObjectURL(url: URL)

Revoke a previously-issued temporary URL reference to a File or Blob object.