小编Mar*_*bil的帖子

如何在flutter中使用starflut导入python包?

我正在尝试将 python 脚本集成到我的 flutter 应用程序中,我需要在 python 代码中导入 cv2 但它没有找到包 cv2 ,

有没有办法在flutter中使用starflut导入python包?

这是我用来将 Python 代码链接到我的 flutter 应用程序的代码:

dynamic python = null;
String _outputString = "python 3.6";
StarSrvGroupClass SrvGroup;
String docPath;
String resPath;
StarServiceClass Service;

Future<void> testCallPython() async {
  //Initialize starecore
  StarCoreFactory starcore = await Starflut.getFactory();
  Service = await starcore.initSimple("test", "123", 0, 0, []);

  //Register callback function
  await starcore.regMsgCallBackP(
      (int serviceGroupID, int uMsg, Object wParam, Object lParam) async {
    print("FIRST PRINT $serviceGroupID  $uMsg   $wParam   $lParam");
    return null;
  });
  SrvGroup = await …
Run Code Online (Sandbox Code Playgroud)

python opencv python-import flutter

5
推荐指数
1
解决办法
486
查看次数

如何在Xamarin.Forms中获取连接的SSID?

我需要获取当前连接的网络的SSID 。

这是我用来在 Xamarin.Android 中查找 SSID 的代码:

WifiManager wifiManager = (WifiManager)(Application.Context.GetSystemService(WifiService));

if (wifiManager != null)
{
    var ssid =  wifiManager.ConnectionInfo.SSID;
}
else
{
    var str =  "WiFiManager is NULL";
}
Run Code Online (Sandbox Code Playgroud)

但我需要在Xamarin.Forms中实现这一点。

我怎样才能做到这一点 ?

c# ssid wifi xamarin.android xamarin.forms

1
推荐指数
1
解决办法
4765
查看次数