libgdx: Is there a class to figure out wether I'm running on desktop or Device?

I was wondering. Is there a Class I can use that help me to figure out if I am running my game on desktop or on my Android or iOS device?

Just used google. Took 30 seconds :stuck_out_tongue:

CopyableCougar4 :slight_smile:

if(Gdx.app.getType() == ApplicationType.android){}
I think… it’s something like that.

It is exactly this.

Shweeeet. Thanks for confirmation!

I mean that’s exactly what cougar’s link said…

Yea, I just noticed that. Oh well, hopefully OP found his solution. :slight_smile: I’m guessing so considering no replies…

Seems like it.
No reply because of afk for 24 hours. :slight_smile:
Thanks a lot

Thanks for the update. Glad to know you’ve got it working. :slight_smile: