Options
All
  • Public
  • Public/Protected
  • All
Menu

Used by several classes in the framework that needs to generate a URL to a resource that is renderable by the browser.

Hierarchy

  • IUrlFactory

Index

Methods

createUrl

  • createUrl(): Promise<string>
  • Creates a URL that can used to render the resource in the browser using an Element appropriate for the resource. This url may be a http(s) a blob:url or a data url.

    Regardless, consumers MUST call revokeUrl() with the url returned by this method to prevent memory leakage.

    Returns Promise<string>

    Resolved with a URL to the resource.

revokeUrl

  • revokeUrl(url: string): void
  • Revokes an URL previously created with createUrl().

    Parameters

    • url: string

      The URL to revoke.

    Returns void

Generated using TypeDoc