mirror of
https://github.com/hub-team/OnlineChatSdk-SwiftPM.git
synced 2026-04-15 17:06:09 +00:00
update
This commit is contained in:
@@ -73,8 +73,8 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
UIApplication.shared.openURL(navigationAction.request.url!)
|
|
||||||
decisionHandler(.cancel)
|
decisionHandler(.cancel)
|
||||||
|
self.onLinkPressed(url: navigationAction.request.url!)
|
||||||
}
|
}
|
||||||
|
|
||||||
private func getCallJsMethod(_ name: String, params: Array<Any>) -> String {
|
private func getCallJsMethod(_ name: String, params: Array<Any>) -> String {
|
||||||
@@ -229,6 +229,10 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
|
|||||||
onEvent(name, data!)
|
onEvent(name, data!)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open func onLinkPressed(url: URL) {
|
||||||
|
UIApplication.shared.openURL(url)
|
||||||
|
}
|
||||||
|
|
||||||
open func playSound(_ systemSoundId: SystemSoundID) {
|
open func playSound(_ systemSoundId: SystemSoundID) {
|
||||||
AudioServicesPlaySystemSound(systemSoundId)
|
AudioServicesPlaySystemSound(systemSoundId)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user