Matterway
    Preparing search index...

    Interface SdkFile

    Represents a file in the SDK.

    Use MwFile instead.

    interface SdkFile {
        data: string;
        name: string;
        webkitRelativePath: string;
        lastModified: number;
        size: number;
        type: string;
        arrayBuffer(): Promise<ArrayBuffer>;
        text(): Promise<string>;
        slice(start?: number, end?: number, type?: string): SdkFile;
    }
    Index

    Properties

    data: string

    The file's data.

    name: string

    The name of the file.

    webkitRelativePath: string

    The webkitRelativePath of the file.

    lastModified: number

    The last modified timestamp of the file.

    size: number

    The size of the file in bytes.

    type: string

    The type of the file.

    Methods

    • Returns a promise that resolves to the file's data as an ArrayBuffer.

      Returns Promise<ArrayBuffer>

      A promise that resolves to the file's data as an ArrayBuffer.

    • Returns a promise that resolves to the file's data as a string.

      Returns Promise<string>

      A promise that resolves to the file's data as a string.

    • Returns a new SdkFile object that represents a portion of the original file.

      Parameters

      • Optionalstart: number

        The starting position of the slice (optional).

      • Optionalend: number

        The ending position of the slice (optional).

      • Optionaltype: string

        The type of the slice (optional).

      Returns SdkFile

      A new SdkFile object that represents a portion of the original file.