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.
Permalink
Failed to load latest commit information.
dependencies/android
ndll/Android
project
AndroidModeType.hx
LICENSE.md
README.md
haxelib.json
include.xml

README.md

Android Mode Type OpenFL Extension

##About

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.

##Installation

To get the latest release, run:

haxelib git android-mode-type https://github.com/spipnl/adroid-mode-type.git

In your project xml include the following line:

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

##Usage

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
}

##Example

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