com.github.xpenatan.gdx.backends.teavm.filesystem.indexeddb.IndexedDBFileData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backend-teavm Show documentation
Show all versions of backend-teavm Show documentation
Tool to generate libgdx to javascript using teaVM
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