Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IOptions<T>

Type parameters

  • T

Hierarchy

Index

Properties

Methods

Properties

url

url: UrlAccepted

The location of the asset to load

Methods

Optional onError

  • onError(error: Error, resource: T): void
  • Invoked when the media creates a loading error or another fatal error

    Parameters

    • error: Error

      the error that occurred

    • resource: T

      the resource

    Returns void

Optional onLoad

  • onLoad(resource: T): void
  • Invoked when the resource has completed loading

    Parameters

    • resource: T

      the loaded resource

    Returns void

Optional onProgress

  • onProgress(percentage: number): void
  • Provides progress updates on the loading resource.

    Parameters

    • percentage: number

      values in the range [0, 1]

    Returns void