PDRCore Class Reference
Inherits from | NSObject |
---|---|
Declared in | PDRCore.h |
appManager
Runtime应用管理对象
@property (nonatomic, readonly) PDRCoreAppManager *appManager
Declared In
PDRCore.h
settings
Runtime设置对象,保存设置信息
@property (nonatomic, readonly) PDRCoreSettings *settings
Declared In
PDRCore.h
coreDeleagete
Runtime代理类
@property (nonatomic, assign) id<PDRCoreDelegate> coreDeleagete
Declared In
PDRCore.h
persentViewController
设置5+Runtime ViewContoller persentViewController 未设置使用rootViewContoller
@property (nonatomic, assign) UIViewController *persentViewController
Declared In
PDRCore.h
+ initEngineWihtOptions:withRunMode:
设置shell启动参数
+ (BOOL)initEngineWihtOptions:(NSDictionary *)launchOptions withRunMode:(PDRCoreRunMode)runMode
Declared In
PDRCore.h
– setContainerView:
设置runtime根视图的父亲View
- (int)setContainerView:(UIView *)containerView
Declared In
PDRCore.h
+ handleSysEvent:withObject:
通知runtime处理指定的事件
+ (id)handleSysEvent:(PDRCoreSysEvent)evt withObject:(id)object
Declared In
PDRCore.h
– setAppsRunPath:
设置应用运行时目录
当应用 runmode为liberate时将把资源拷贝到该目录
应用运行时产生的文件在该目录下生成
默认为Library/Pandora/apps/
- (int)setAppsRunPath:(NSString *)workPath
Declared In
PDRCore.h
– setAppsInstallPath:
默认地址为?.app/Pandora/apps/
- (int)setAppsInstallPath:(NSString *)installPath
Declared In
PDRCore.h
– setDocumethPath:
设置runtime文档目录.
- (int)setDocumethPath:(NSString *)documentPath
Declared In
PDRCore.h
– setDownloadPath:
设置runtime下载目录
- (int)setDownloadPath:(NSString *)downlaodPath
Declared In
PDRCore.h
– setApp:documentPath:
设置指定app的文档目录
- (int)setApp:(NSString *)appid documentPath:(NSString *)doucmentPath
Parameters
appid |
要设置的appid |
---|---|
doucmentPath |
要设置的路径 |
Return Value
int 0 成功
Declared In
PDRCore.h
– regPluginWithName:impClassName:type:javaScript:
注册第三方扩展的插件
- (int)regPluginWithName:(NSString *)pluginName impClassName:(NSString *)impClassName type:(PDRExendPluginType)pluginType javaScript:(NSString *)javaScript
Parameters
pluginName |
插件名称JS文件中定义的名字 |
---|---|
impClassName |
插件对应的实现类名 |
pluginType |
插件类型 详情: |
javaScript |
js实现 为javascript文本 |
Return Value
int 0 成功
See Also
Declared In
PDRCore.h
– regPluginWithName:impClassName:type:javaScriptPath:
注册第三方扩展的插件
- (int)regPluginWithName:(NSString *)pluginName impClassName:(NSString *)impClassName type:(PDRExendPluginType)pluginType javaScriptPath:(NSString *)javaScript
Parameters
pluginName |
插件名称JS文件中定义的名字 |
---|---|
impClassName |
插件对应的实现类名 |
pluginType |
插件类型 详情: |
javaScript |
js实现 为javascript文件 该文件为同步加载 |
Return Value
int 0 成功
See Also
Declared In
PDRCore.h
– showLoadingPage
显示启动图 PDRCoreRunModeNormal 才支持
- (int)showLoadingPage
Return Value
int
See Also
Declared In
PDRCore.h
– setAutoStartAppid:
设置runtiem启动时自动运行的APP PDRCoreRunModeNormal 才支持
- (int)setAutoStartAppid:(NSString *)appid
Declared In
PDRCore.h