Created
April 16, 2015 08:08
-
-
Save rajubd49/97aeb7ace27f3435cfa7 to your computer and use it in GitHub Desktop.
Android menu if present or not -check - Appcelerator Titanium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var androidMenu=require('yy.hasmenu'); | |
if (androidMenu.hasMenu) { | |
alert("Has a hardware button"); | |
} | |
else { | |
alert("Uses a system bar, should probably add 48dp"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment