NERoomWhiteboardController
@objcMembers
public class NERoomWhiteboardController : NSObject, NEBaseController
extension NERoomWhiteboardController: WKUIDelegate, WKNavigationDelegate
白板控制器
-
功能是否支持
Declaration
Swift
public var isSupported: Bool { get }
-
设置白板是否可绘制
Declaration
Swift
@discardableResult public func setEnableDraw(enable: Bool) -> Int
-
设置白板
Declaration
Swift
@discardableResult public func setupWhiteboardCanvas(view: NEWhiteboardView) -> Int
-
重置白板
Declaration
Swift
@discardableResult public func resetWhiteboardCanvas(view: NEWhiteboardView?) -> Int
-
开启本端白板共享
Declaration
Swift
public func startWhiteboardShare(callback: NECallback<AnyObject>? = nil)
Parameters
callback
开启结果回调
-
停止本端白板共享
Declaration
Swift
public func stopWhiteboardShare(callback: NECallback<AnyObject>? = nil)
Parameters
callback
关闭结果回调
-
关闭成员白板
Declaration
Swift
public func stopMemberWhiteboardShare(userUuid: String, callback: NECallback<AnyObject>?)
Parameters
userUuid
成员ID
callback
回调
-
获取正在白板分享的成员Id
Declaration
Swift
public func getWhiteboardSharingUserUuid() -> String?
Return Value
成员Id
-
Declaration
Swift
public func webView(_ webView: WKWebView, createWebViewWith configuration: WKWebViewConfiguration, for navigationAction: WKNavigationAction, windowFeatures: WKWindowFeatures) -> WKWebView?
-
Declaration
Swift
public func webView(_ webView: WKWebView, runJavaScriptAlertPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping () -> Void)
-
Declaration
Swift
public func webView(_ webView: WKWebView, runJavaScriptConfirmPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping (Bool) -> Void)
-
Declaration
Swift
public func webView(_ webView: WKWebView, runJavaScriptTextInputPanelWithPrompt prompt: String, defaultText: String?, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping (String?) -> Void)
-
Declaration
Swift
public func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void)
-
Declaration
Swift
public func webView(_ webView: WKWebView, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)
-
Declaration
Swift
public func webView(_ webView: WKWebView, decidePolicyFor navigationResponse: WKNavigationResponse, decisionHandler: @escaping (WKNavigationResponsePolicy) -> Void)
-
Declaration
Swift
public func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!)
-
Declaration
Swift
public func webView(_ webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!, withError error: Error)
-
Declaration
Swift
public func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!)
-
Declaration
Swift
public func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!)
-
Declaration
Swift
public func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error)
-
Declaration
Swift
public func webViewWebContentProcessDidTerminate(_ webView: WKWebView)