Skip to content

Instantly share code, notes, and snippets.

@rajubd49
Created April 16, 2015 08:08
Show Gist options
  • Save rajubd49/97aeb7ace27f3435cfa7 to your computer and use it in GitHub Desktop.
Save rajubd49/97aeb7ace27f3435cfa7 to your computer and use it in GitHub Desktop.
Android menu if present or not -check - Appcelerator Titanium
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