public class XWalkPreferences
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALLOW_UNIVERSAL_ACCESS_FROM_FILE
The key string to allow/disallow having universal access
from file origin.
|
static java.lang.String |
ANIMATABLE_XWALK_VIEW
The key string to enable/disable animatable XWalkView.
|
static java.lang.String |
JAVASCRIPT_CAN_OPEN_WINDOW
The key string to allow/disallow javascript to open
window automatically.
|
static java.lang.String |
PROFILE_NAME
The key string to set xwalk profile name.
|
static java.lang.String |
REMOTE_DEBUGGING
The key string to enable/disable remote debugging.
|
static java.lang.String |
SUPPORT_MULTIPLE_WINDOWS
The key string to enable/disable multiple windows.
|
| Constructor and Description |
|---|
XWalkPreferences() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBooleanValue(java.lang.String key)
Get a boolean preference value from Crosswalk.
|
static int |
getIntegerValue(java.lang.String key)
Get a int preference value from Crosswalk.
|
static java.lang.String |
getStringValue(java.lang.String key)
Get a string preference value from Crosswalk.
|
static boolean |
getValue(java.lang.String key)
Deprecated.
|
static void |
setValue(java.lang.String key,
boolean enabled)
Set a boolean preference value into Crosswalk.
|
static void |
setValue(java.lang.String key,
int value)
Set an integer preference value into Crosswalk.
|
static void |
setValue(java.lang.String key,
java.lang.String value)
Set a string preference value into Crosswalk.
|
public static final java.lang.String REMOTE_DEBUGGING
public static final java.lang.String ANIMATABLE_XWALK_VIEW
public static final java.lang.String JAVASCRIPT_CAN_OPEN_WINDOW
public static final java.lang.String ALLOW_UNIVERSAL_ACCESS_FROM_FILE
public static final java.lang.String SUPPORT_MULTIPLE_WINDOWS
public static final java.lang.String PROFILE_NAME
public static void setValue(java.lang.String key,
boolean enabled)
key - the string name of the key.enabled - true if setting it as enabled.public static void setValue(java.lang.String key,
int value)
key - the string name of the key.value - the integer value.public static void setValue(java.lang.String key,
java.lang.String value)
key - the string name of the key.value - the string value.public static boolean getValue(java.lang.String key)
key - the string name of the key.public static boolean getBooleanValue(java.lang.String key)
key - the string name of the key.public static int getIntegerValue(java.lang.String key)
key - the string name of the key.public static java.lang.String getStringValue(java.lang.String key)
key - the string name of the key.