PDRCoreAppFrame Class Reference

Inherits from PDRNView : UIView
Declared in PDRCoreAppFrame.h

Overview

H5+应用页面

– initWithName:loadURL:frame:

创建runtime页面

- (PDRCoreAppFrame *)initWithName:(NSString *)frameName loadURL:(NSString *)pagePath frame:(CGRect)frame

Parameters

pagePath

页面地址 支持http:// file:// 本地地址

frame

页面位置

frameID

页面标示

Return Value

PDRCoreAppFrame*

Declared In

PDRCoreAppFrame.h

  frameName

页面名字用作plus.webview.findViewById()中的id

@property (nonatomic, copy) NSString *frameName

Discussion

页面名字用作plus.webview.findViewById()中的id

Declared In

PDRCoreAppFrame.h

  webEngine

HTML CSS渲染View

@property (nonatomic, readonly) H5WEWebEngine *webEngine

Discussion

HTML CSS渲染View

Declared In

PDRCoreAppFrame.h

  currenLocationHref

页面地址

@property (nonatomic, copy) NSString *currenLocationHref

Discussion

页面地址

Declared In

PDRCoreAppFrame.h

– stringByEvaluatingJavaScriptFromString:

在当前页面同步执行Javascript

- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)js

Parameters

js

javasrcipt 脚本

Return Value

NSString* 执行结果

Declared In

PDRCoreAppFrame.h

– dismissKeyboard

关闭页面中的键盘

- (void)dismissKeyboard

Declared In

PDRCoreAppFrame.h

– dispatchDocumentEvent:

触发document事件 document.addEventListener(evtName,function(e){})

- (void)dispatchDocumentEvent:(NSString *)evtName

Declared In

PDRCoreAppFrame.h