phina.js.d.ts
    Preparing search index...

    Interface File

    interface File {
        data: object | null;
        loadError: boolean;
        notFount: boolean;
        serverError: boolean;
        addEventListener(type: string, listener: Function): this;
        clear(type: string): this;
        clearEventListener(type: string): this;
        dispatchEvent(e: { type: string }): this;
        dispatchEventByType(type: string, param: object): this;
        fire(e: { type: string }): this;
        flare(type: string, param?: object): this;
        has(type: string): boolean;
        hasEventListener(type: string): boolean;
        isLoaded(): boolean;
        load(src: string): phina.util.Flow<phina.asset.File>;
        loadDummy(): any;
        off(type: string, listener: Function): this;
        on(type: string, listener: Function): this;
        one(type: string, listener: Function): this;
        removeEventListener(type: string, listener: Function): this;
    }

    Hierarchy (View Summary)

    Index

    Properties

    data: object | null
    loadError: boolean
    notFount: boolean
    serverError: boolean

    Methods

    • Parameters

      • e: { type: string }

      Returns this

    • Parameters

      • type: string
      • Optionalparam: object

      Returns this

    • Parameters

      • type: string

      Returns boolean

    • Parameters

      • type: string
      • listener: Function

      Returns this

    • Parameters

      • type: string
      • listener: Function

      Returns this

    • Parameters

      • type: string
      • listener: Function

      Returns this