java - How to determine which platform the current app is running on in LibGDX? -
i need offer different app logic depending on deployment platform libgdx app running on, i.e. desktop or android, etc., does libgdx api offer method of identifying current runtime platform?
this post, "abstracting platform specific code in libgdx" offers solution of sorts, i'm wondering if there directly available in api (?).
you potentially use application#gettype()
, return 1 of values defined application.applicationtype
:
- android
- applet
- desktop
- ios
- webgl
Comments
Post a Comment