當前位置: 首頁>>代碼示例>>Java>>正文


Java ApiListener類代碼示例

本文整理匯總了Java中org.geometerplus.android.fbreader.api.ApiListener的典型用法代碼示例。如果您正苦於以下問題:Java ApiListener類的具體用法?Java ApiListener怎麽用?Java ApiListener使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ApiListener類屬於org.geometerplus.android.fbreader.api包,在下文中一共展示了ApiListener類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onResume

import org.geometerplus.android.fbreader.api.ApiListener; //導入依賴的package包/類
@Override
protected void onResume()
{
	super.onResume();

	myStartTimer = true;
	final int brightnessLevel = getZLibrary().ScreenBrightnessLevelOption.getValue();
	if (brightnessLevel != 0)
	{
		setScreenBrightness(brightnessLevel);
	}
	else
	{
		setScreenBrightnessAuto();
	}
	if (getZLibrary().DisableButtonLightsOption.getValue())
	{
		setButtonLight(false);
	}

	registerReceiver(myBatteryInfoReceiver, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));

	PopupPanel.restoreVisibilities(myFBReaderApp);
	ApiServerImplementation.sendEvent(this, ApiListener.EVENT_READ_MODE_OPENED);

	getCollection().bindToService(this, new Runnable()
	{
		public void run()
		{
			final BookModel model = myFBReaderApp.Model;
			if (model == null || model.Book == null) { return; }
			onPreferencesUpdate(myFBReaderApp.Collection.getBookById(model.Book.getId()));
		}
	});
}
 
開發者ID:AlixMing,項目名稱:FBreader,代碼行數:36,代碼來源:FBReader.java

示例2: onStop

import org.geometerplus.android.fbreader.api.ApiListener; //導入依賴的package包/類
@Override
protected void onStop()
{
	ApiServerImplementation.sendEvent(this, ApiListener.EVENT_READ_MODE_CLOSED);
	PopupPanel.removeAllWindows(myFBReaderApp, this);
	super.onStop();
}
 
開發者ID:AlixMing,項目名稱:FBreader,代碼行數:8,代碼來源:FBReader.java

示例3: onResume

import org.geometerplus.android.fbreader.api.ApiListener; //導入依賴的package包/類
@Override
protected void onResume() {
	super.onResume();

	myStartTimer = true;
	final int brightnessLevel = getZLibrary().ScreenBrightnessLevelOption
			.getValue();
	if (brightnessLevel != 0) {
		setScreenBrightness(brightnessLevel);
	} else {
		setScreenBrightnessAuto();
	}
	if (getZLibrary().DisableButtonLightsOption.getValue()) {
		setButtonLight(false);
	}

	registerReceiver(myBatteryInfoReceiver, new IntentFilter(
			Intent.ACTION_BATTERY_CHANGED));

	PopupPanel.restoreVisibilities(myFBReaderApp);
	ApiServerImplementation.sendEvent(this,
			ApiListener.EVENT_READ_MODE_OPENED);

	getCollection().bindToService(this, new Runnable() {
		public void run() {
			final BookModel model = myFBReaderApp.Model;
			if (model == null || model.Book == null) {
				return;
			}
			onPreferencesUpdate(myFBReaderApp.Collection
					.getBookById(model.Book.getId()));
		}
	});
}
 
開發者ID:liufeiit,項目名稱:itmarry,代碼行數:35,代碼來源:CoreReadActivity.java

示例4: onStop

import org.geometerplus.android.fbreader.api.ApiListener; //導入依賴的package包/類
@Override
protected void onStop() {
	ApiServerImplementation.sendEvent(this,
			ApiListener.EVENT_READ_MODE_CLOSED);
	PopupPanel.removeAllWindows(myFBReaderApp, this);
	Log.i("MAIN", "onStop()");
	super.onStop();
}
 
開發者ID:liufeiit,項目名稱:itmarry,代碼行數:9,代碼來源:CoreReadActivity.java


注:本文中的org.geometerplus.android.fbreader.api.ApiListener類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。