OpenFL Extension to retrieve the Mode Type on Android. Useful to check if running on Android TV.
Haxe C++
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Android Mode Type OpenFL Extension


A simple Android extension for OpenFL to read the Mode Type of the Context. Useful to check whether the app is running on Android TV or not.

See Check for a TV Device | Android Developers for more information.


To get the latest release, run:

haxelib git android-mode-type

In your project xml include the following line:

<haxelib name="android-mode-type" />


In your application use the following method to check if the app is running on Android TV:

if (AndroidModeType.isAndriodTV()) {
	// Load TV interface
} else {
	// Load Mobile interface


For a working example of the extension check my example app on GitHub.