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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -