init method

void init({
  1. required String appKey,
  2. required String appSecret,
})

初始化sdk,在调用share sdk其它方法前初始化 ios:info.plist中配置

Implementation

void init({required String appKey, required String appSecret}) {
  if (Platform.isAndroid) {
    CloudChannelManager.instance.send(_initMethodName, arguments: {
      "appKey": appKey,
      "appSecret": appSecret,
    });
  }
}