TencentWebViewDelegate
TencentWebViewDelegate为H5登录webview旋转方向回调协议,第三方应用可以根据自己APP的旋转方向限制,通过此协议设置
| // webview是否自动适应旋转方向 |
- (BOOL) tencentWebViewShouldAutorotateToInterfaceOrientation : (UIInterfaceOrientation)toInterfaceOrientation; |
| 参数 | 含义 |
| toInterfaceOrientation | 将要旋转到的方向 |
toInterfaceOrientation为UIInterfaceOrientation枚举类型。
| // webview支持的显示方向,返回值类型为UIInterfaceOrientationMask枚举类型 |
| - (NSUInteger) tencentWebViewSupportedInterfaceOrientationsWithWebkit; |
| // webview是否自动适应旋转方向 |
| - (BOOL) tencentWebViewShouldAutorotateWithWebkit; |