本文整理匯總了Java中org.appcelerator.kroll.annotations.Kroll.getProperty方法的典型用法代碼示例。如果您正苦於以下問題:Java Kroll.getProperty方法的具體用法?Java Kroll.getProperty怎麽用?Java Kroll.getProperty使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.appcelerator.kroll.annotations.Kroll
的用法示例。
在下文中一共展示了Kroll.getProperty方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getScrollHeight
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.getProperty @Kroll.method
public String getScrollHeight()
{
if (peekView() != null) {
if (TiApplication.isUIThread()) {
return getWebView().getScrollHeight();
} else {
return (String) TiMessenger.sendBlockingMainMessage(getMainHandler().obtainMessage(MSG_GET_SCROLL_HEIGHT));
}
}
return "0";
}
示例2: getHtml
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.method @Kroll.getProperty
public String getHtml()
{
if (!hasProperty(TiC.PROPERTY_HTML)) {
return getWebView().getJSValue("document.documentElement.outerHTML");
}
return (String) getProperty(TiC.PROPERTY_HTML);
}
示例3: getUserAgent
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.method @Kroll.getProperty
public String getUserAgent()
{
TiUIWebView currWebView = getWebView();
if (currWebView != null) {
if (TiApplication.isUIThread()) {
return currWebView.getUserAgentString();
} else {
return (String) TiMessenger.sendBlockingMainMessage(getMainHandler().obtainMessage(MSG_GET_USER_AGENT));
}
}
return "";
}
示例4: getPluginState
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.method @Kroll.getProperty
public int getPluginState()
{
int pluginState = TiUIWebView.PLUGIN_STATE_OFF;
if (hasProperty(TiC.PROPERTY_PLUGIN_STATE)) {
pluginState = TiConvert.toInt(getProperty(TiC.PROPERTY_PLUGIN_STATE));
}
return pluginState;
}
示例5: getEnableZoomControls
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.method @Kroll.getProperty
public boolean getEnableZoomControls()
{
boolean enabled = true;
if (hasProperty(TiC.PROPERTY_ENABLE_ZOOM_CONTROLS)) {
enabled = TiConvert.toBoolean(getProperty(TiC.PROPERTY_ENABLE_ZOOM_CONTROLS));
}
return enabled;
}
示例6: isPaused
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.getProperty @Kroll.method
public boolean isPaused() {
MediaPlayerWrapper s = getSound();
if (s != null) {
return s.isPaused();
}
return false;
}
示例7: getNotificationSettings
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.method
@Kroll.getProperty
@SuppressWarnings("unchecked")
public KrollDict getNotificationSettings() {
Log.d(LCAT, "Getting notification settings");
Map map = new Gson().fromJson(TiApplication.getInstance().getAppProperties().getString(GCMModule.NOTIFICATION_SETTINGS, null), Map.class);
return map != null ? new KrollDict(map) : null;
}
示例8: getHasCarrierPrivileges
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.method
@Kroll.getProperty
public boolean getHasCarrierPrivileges() {
if (Build.VERSION.SDK_INT >= 22) {
return getManager().hasCarrierPrivileges();
} else {
return false;
}
}
示例9: getDuration
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.getProperty @Kroll.method
public int getDuration() {
MediaPlayerWrapper s = getSound();
if (s != null) {
return s.getDuration();
}
return 0;
}
示例10: isRemoteNotificationsEnabled
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.method
@Kroll.getProperty
public Boolean isRemoteNotificationsEnabled() {
return (getRemoteDeviceUUID() != null);
}
示例11: getRemoteDeviceUUID
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.method
@Kroll.getProperty
public String getRemoteDeviceUUID() {
return getDefaultSharedPreferences().getString(TOKEN, "");
}
示例12: getMessage
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.getProperty @Kroll.method
public String getMessage()
{
return "Hello World from my module";
}
示例13: getExampleProp
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.getProperty
public String getExampleProp()
{
Log.d(LCAT, "get example property");
return "hello world";
}
示例14: getRegistrationId
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.method
@Kroll.getProperty
public String getRegistrationId() {
Log.d(LCAT, "get registrationId property");
return GCMRegistrar.getRegistrationId(TiApplication.getInstance());
}
示例15: getCallState
import org.appcelerator.kroll.annotations.Kroll; //導入方法依賴的package包/類
@Kroll.method
@Kroll.getProperty
public int getCallState() {
return getManager().getCallState();
}