We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*shareText - 分享到第三方app,调起分享弹窗。 输入参数: { shareText: "分享的文案内容" , shareUrl: "分享的url", }
返回值 { "code":"0:成功,-1:失败", "msg":"msg" }
typealias JSCallback = (String, Bool)->Void var feedbankHandler : JSCallback? @objc func shareText( _ args:Dictionary<String, Any>){ let dic = [ "shareText": "分享的文案内容" , "shareUrl": "分享的url", ]
feedbankHandler!(convertDictionaryToString(dict: dic),true) //convertDictionaryToString字典转json字符串 }
这种写法一直报错 shareText is not invoked ,since there is not a implementation for it
The text was updated successfully, but these errors were encountered:
知道为何了,必须是 @objc func shareText( _ arg:String,completedHandler:JSCallback){ let dic = ["shareText": "112","shareUrl": "https://www.baidu.com"]
completedHandler(convertDictionaryToString(dict: dic),true) }
arg的参数就是string,不能改为其他的
Sorry, something went wrong.
No branches or pull requests
*shareText - 分享到第三方app,调起分享弹窗。
输入参数:
{
shareText: "分享的文案内容" ,
shareUrl: "分享的url",
}
typealias JSCallback = (String, Bool)->Void
var feedbankHandler : JSCallback?
@objc func shareText( _ args:Dictionary<String, Any>){
let dic = [
"shareText": "分享的文案内容" ,
"shareUrl": "分享的url",
]
这种写法一直报错 shareText is not invoked ,since there is not a implementation for it
The text was updated successfully, but these errors were encountered: