Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

OpenFL Extension to retrieve the Mode Type on Android. Useful to check if running on Android TV.

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.