|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |
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)
設置是否自動更新顯示. |
字段详细信息 |
---|
static final java.lang.String VERSION_NUMBER
方法详细信息 |
---|
void setConfig(EngineConfig config)
config
- EngineConfig對象EngineConfig getConfig()
void setRender(BaseRender render)
render
- the new renderBaseRender getRender()
void setRecorder(IRecorder recorder)
recorder
- the new recorderIRecorder getRecorder()
void setApplication(Application app)
app
- the new applicationApplication getApplication()
void setContext(Context context)
context
- the new contextContext getContext()
void render()
void setUpdateViewEnabled(boolean enabled)
enabled
- true, 開啟自動更新. false, 關閉自動更新boolean getUpdateViewEnabled()
IAction getAction()
void setErrorHandler(int code, IErrorCall handler)
code
- 信息代碼handler
- 錯誤處理的回調接口EngineCode
void setBook(Book book)
book
- Book對象實例Book getBook()
Book
int getLastError()
EngineCode
java.lang.String getVersion()
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |