com.foxconn.ebook.reader.engine.core
接口 IEngineService

所有已知实现类:
EREngine

public interface IEngineService

EREngine的服務類接口.通過該接口進行EREngine的初始化并獲取功能組件. Example:

IEngineService iEngineService = (IEngineService) ERManager.getService(EREngine.ERENGINE_SERVICE);


字段摘要
static java.lang.String VERSION_NUMBER
          版本號.
 
方法摘要
 IAction getAction()
          獲取Action對象實例.
 Application getApplication()
          獲取Application對象實例.
 Book getBook()
          獲取Book對象.
 EngineConfig getConfig()
          獲取配置對象實例.
 Context getContext()
          獲取Context對象實例.
 int getLastError()
          獲取最後信息碼.
 IRecorder getRecorder()
          獲取數據存儲接口對象.
 BaseRender getRender()
          獲取渲染對象實例.
 boolean getUpdateViewEnabled()
          獲取當前是否為自動更新.
 java.lang.String getVersion()
          獲取當前EREngine的版本號.
 void render()
          手動渲染.當getUpdateViewEnabled()為false時,才需要調用該方法.
 void setApplication(Application app)
          設置Application對象.
 void setBook(Book book)
          設置Book對象.
 void setConfig(EngineConfig config)
          設置自定義配置信息.
 void setContext(Context context)
          設置Context對象.
 void setErrorHandler(int code, IErrorCall handler)
          設置錯誤處理回調.
 void setRecorder(IRecorder recorder)
          設置數據存儲對象.
 void setRender(BaseRender render)
          設置渲染對象.
 void setUpdateViewEnabled(boolean enabled)
          設置是否自動更新顯示.
 

字段详细信息

VERSION_NUMBER

static final java.lang.String VERSION_NUMBER
版本號.

另请参见:
常量字段值
方法详细信息

setConfig

void setConfig(EngineConfig config)
設置自定義配置信息.

参数:
config - EngineConfig對象

getConfig

EngineConfig getConfig()
獲取配置對象實例.

返回:
the config

setRender

void setRender(BaseRender render)
設置渲染對象.

参数:
render - the new render

getRender

BaseRender getRender()
獲取渲染對象實例.

返回:
the render

setRecorder

void setRecorder(IRecorder recorder)
設置數據存儲對象.

参数:
recorder - the new recorder

getRecorder

IRecorder getRecorder()
獲取數據存儲接口對象.

返回:
the recorder

setApplication

void setApplication(Application app)
設置Application對象.

参数:
app - the new application

getApplication

Application getApplication()
獲取Application對象實例.

返回:
the application

setContext

void setContext(Context context)
設置Context對象.

参数:
context - the new context

getContext

Context getContext()
獲取Context對象實例.

返回:
the context

render

void render()
手動渲染.當getUpdateViewEnabled()為false時,才需要調用該方法.


setUpdateViewEnabled

void setUpdateViewEnabled(boolean enabled)
設置是否自動更新顯示.

参数:
enabled - true, 開啟自動更新. false, 關閉自動更新

getUpdateViewEnabled

boolean getUpdateViewEnabled()
獲取當前是否為自動更新.

返回:
the update view enabled

getAction

IAction getAction()
獲取Action對象實例.

返回:
the action

setErrorHandler

void setErrorHandler(int code,
                     IErrorCall handler)
設置錯誤處理回調.

参数:
code - 信息代碼
handler - 錯誤處理的回調接口
另请参见:
EngineCode

setBook

void setBook(Book book)
設置Book對象.

参数:
book - Book對象實例

getBook

Book getBook()
獲取Book對象.

返回:
the book
另请参见:
Book

getLastError

int getLastError()
獲取最後信息碼.

返回:
the last error
另请参见:
EngineCode

getVersion

java.lang.String getVersion()
獲取當前EREngine的版本號.

返回:
版本號的字符串