简体   繁体   English

如何从 Swift 框架回调到 Flutter 项目?

[英]How to Callback from Swift Framework to Flutter project?

I have the framework written in Swift 5 language and now i need to integrate that framework into the new flutter project and there is more number of callbacks to notify from Swift Framework to Flutter project. I have the framework written in Swift 5 language and now i need to integrate that framework into the new flutter project and there is more number of callbacks to notify from Swift Framework to Flutter project. In that I don't know how to do that, what is the way to callback/delegate to the flutter project from Swift Framework.我不知道该怎么做,从 Swift 框架回调/委托给 flutter 项目的方法是什么。

Try to use Method channels .尝试使用方法通道 You can call Flutter methods from Swift code and vise versa.您可以从 Swift 代码调用 Flutter 方法,反之亦然。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM