|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jcdecaux.jcdroid.web.NativeAPIWrapper
public class NativeAPIWrapper
NativeAPI wrapper for javascript web application.
Constructor Summary | |
---|---|
NativeAPIWrapper(android.content.Context context)
Construct the wrapper to be injected in WebViews (@see WebView.addJavascriptInterface) |
Method Summary | |
---|---|
java.lang.String |
getAppEnvironment()
Returns the actual device's app environment |
java.lang.String |
getDeviceName()
Get the device unique name (JCDecaux Identifier) |
java.lang.String |
getLocale()
Get the actual locale (IETF BCP 47, "Tags for Identifying Languages") |
int |
getOrientation()
Get device orientation |
boolean |
hasVirtualButtons()
Deprecated. use isNavigationBarEnabled()
Get device information of using virtual Back and Home buttons |
boolean |
isNavigationBarEnabled()
Get navigation bar status. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NativeAPIWrapper(android.content.Context context)
current
- application contextMethod Detail |
---|
public java.lang.String getLocale()
public java.lang.String getDeviceName()
public int getOrientation()
public java.lang.String getAppEnvironment()
public boolean hasVirtualButtons()
isNavigationBarEnabled()
Get device information of using virtual Back and Home buttons
public boolean isNavigationBarEnabled()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |