All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.xpenatan.gdx.backends.teavm.filesystem.indexeddb.IndexedDBFileData Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package com.github.xpenatan.gdx.backends.teavm.filesystem.indexeddb;

import com.github.xpenatan.gdx.backends.teavm.dom.typedarray.Int8ArrayWrapper;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;
import org.teavm.jso.core.JSDate;

public abstract class IndexedDBFileData implements JSObject {
    @JSProperty
    public abstract void setContents(byte[] contents);

    @JSProperty
    public abstract Int8ArrayWrapper getContents();

    @JSProperty
    public abstract int getType();

    @JSProperty
    public abstract JSDate getTimestamp();

    @JSBody(params = { "type", "timestamp" }, script = "return {type: type, date: timestamp};")
    public static native IndexedDBFileData create(int type, JSDate timestamp);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy