com.github.xpenatan.gdx.backends.teavm.utils.TeaNavigator 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.utils;
import org.teavm.jso.JSBody;
public class TeaNavigator {
@JSBody(script = "return navigator.platform;")
public static native String getPlatform();
@JSBody(script = "return navigator.userAgent;")
public static native String getUserAgent();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy