SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Class Resource

    A resource is an item referenced elsewhere with the application. This will track when a resource is no longer being used and can be removed.

    Implements

    Index
    • get isIResource(): true

      For runtime type checking.

      Returns true

    • Add a reference to the resource.

      Parameters

      • ref: any

        The object to strongly hold the resource.

      Returns void

    • Delete a reference to the resource.

      Parameters

      • ref: any

        The object that held the resource.

      Returns void

    • Returns the resource as a uri if this is external.

      Returns Promise<string | null>

    • An optional name for the resource.

      Returns string | null

    • true if the resource if all references have been deleted.

      Returns boolean

    • Returns the resource as a Promise to array buffer.

      Returns Promise<ArrayBuffer>